12 lines
453 B
Desktop File
12 lines
453 B
Desktop File
[Unit]
|
|
Description=Inhibit sleep for some period of time
|
|
|
|
[Service]
|
|
Type=exec
|
|
ExecStartPre=-pkill -f -SIGUSR1 '^(.*/)?emacs +-Q +--script +(.*/)?sb-manual-sleep-locks( +.+)?$'
|
|
ExecStart=systemd-inhibit --what=sleep:idle "--who=manual-inhibit-sleep@%i.service" --mode=block "--why=User manually inhibited sleep" sleep %i
|
|
ExecStopPost=-pkill -f -SIGUSR1 '^(.*/)?emacs +-Q +--script +(.*/)?sb-manual-sleep-locks( +.+)?$'
|
|
|
|
[Install]
|
|
WantedBy=default.target
|