fix readme format
This commit is contained in:
parent
f9fb39bfcc
commit
fbd5ca62a7
2 changed files with 26 additions and 17 deletions
11
config.yaml
11
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
|
||||
|
|
|
|||
32
readme.md
32
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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue