app-timer/config.yaml

35 lines
1.1 KiB
YAML
Raw Normal View History

2019-03-11 23:48:40 -03:00
check-interval: 1
2025-11-13 15:22:30 +02:00
status-server:
host: 127.0.0.1
port: 8090
2019-03-11 23:48:40 -03:00
timers:
gaming:
apps:
- minecraft
2025-11-12 23:19:09 +02:00
- xmcl
- mcpelauncher-ui
2019-03-11 23:48:40 -03:00
# how many minutes of usage
time-limit: 120
2019-03-11 23:48:40 -03:00
# within how many hours of interval
limit-interval: 12
2025-11-12 23:19:09 +02:00
# warn n minutes before reaching the limit
warn-threshold: 5
2025-11-12 23:19:09 +02:00
# 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'
2019-03-13 10:00:57 -03:00
websurf:
apps:
- chrome
- chromium
- firefox
time-limit: 90
limit-interval: 24
2019-03-11 23:52:49 -03:00
pomodoro:
apps:
- atom
- sublime_text
time-limit: 30
2019-03-13 10:00:57 -03:00
limit-interval: 0.7