diff --git a/config.yaml b/config.yaml index 8436f68..006aa48 100644 --- a/config.yaml +++ b/config.yaml @@ -4,8 +4,13 @@ timers: apps: - retroarch - minecraft - - atom # how many minutes of usage - time-limit: 3 + time-limit: 60 # within how many hours of interval - limit-interval: 0.1 + limit-interval: 12 + pomodoro: + apps: + - atom + - sublime_text + time-limit: 30 + limit-interval: 45 diff --git a/readme.md b/readme.md index 3d947f7..96560aa 100644 --- a/readme.md +++ b/readme.md @@ -8,26 +8,30 @@ I'm using this at a raspberry pi gaming station to enforce usage limits. ## Config - # how often should the script check for apps runtime? - check-interval: 1 - # timers: list of apps that will be watched - timers: - # the app name (list key) - gaming: - # list of the app executables - apps: - - retroarch - - minecraft - # how many minutes of usage - time-limit: 60 - # within how many hours of interval - limit-interval: 12 +```yaml +# how often should the script check for apps runtime? +check-interval: 1 +# timers: list of apps that will be watched +timers: + # the app name (list key) + gaming: + # list of the app executables + apps: + - retroarch + - minecraft + # how many minutes of usage + time-limit: 60 + # within how many hours of interval + limit-interval: 12 +``` ## Installation There's a systemd service file ready for use. +```bash cp ./timer.service /etc/systemd/system/app-timer.service systemctl enable app-timer +``` Update this file to point `ExecStart` into your setup folder.