Update waybar sleep stuff

This commit is contained in:
2026-02-18 19:32:13 -08:00
parent 44145ecfde
commit df69a5b1ea
3 changed files with 27 additions and 3 deletions

View File

@ -3,8 +3,9 @@ Description=Inhibit sleep for some period of time
[Service]
Type=exec
Environment=TIME=%I
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
ExecStart=systemd-inhibit --what=sleep:idle "--who=manual-inhibit-sleep@%I.service" --mode=block "--why=User manually inhibited sleep" sleep $TIME
ExecStopPost=-pkill -f -SIGUSR1 '^(.*/)?emacs +-Q +--script +(.*/)?sb-manual-sleep-locks( +.+)?$'
[Install]