blob: 095b1d8e991a62809aff12d295d9cfabec3eb62f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
[Unit]
Description=Execute events on X11 idle
StartLimitBurst=5
StartLimitIntervalSec=600
[Service]
Type=simple
IOWeight=60
CPUQuota=60%
RestartSec=5
Restart=always
SyslogIdentifier=events-idle
ExecStartPre=/usr/bin/env sh -c '%h/.local/bin/scripts/events-idle'
ExecStart=/usr/bin/env sh -c 'while true; do sleep 300 && [ "$(xprintidle)" -gt 120000 ] && %h/.local/bin/scripts/events-idle; done'
[Install]
WantedBy=default.target
|