app-timer/config.yaml
2025-11-12 23:19:09 +02:00

31 lines
1 KiB
YAML

check-interval: 1
timers:
gaming:
apps:
- minecraft
- xmcl
- mcpelauncher-ui
# how many minutes of usage
time-limit: 5
# within how many hours of interval
limit-interval: 4
# warn n minutes before reaching the limit
warn-threshold: 4
# commands run on GNOME to pre-warn/final-warn
warn-command: >
runuser -l randogoth -c 'DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus notify-send "App Timer" "Gaming time is almost up ({time_left_int} min left)" -u critical && canberra-gtk-play -i complete'
final-warn-command: >
runuser -l randogoth -c 'DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus notify-send "App Timer" "Final minute before shutdown ({time_left_seconds}s)" -u critical && canberra-gtk-play -i alarm-clock-elapsed'
websurf:
apps:
- chrome
- chromium
- firefox
time-limit: 90
limit-interval: 24
pomodoro:
apps:
- atom
- sublime_text
time-limit: 30
limit-interval: 0.7