fix readme format

This commit is contained in:
Thiago Macedo 2019-03-11 23:52:49 -03:00
parent f9fb39bfcc
commit fbd5ca62a7
2 changed files with 26 additions and 17 deletions

View file

@ -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.