blob: c52ff411c67cd00810f195c65e2b75d9bc849a78 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/bash
set -uo pipefail
idleprog="hypridle"
isactive="$(systemctl --user is-active $idleprog)"
if [ "$isactive" = "active" ]; then
systemctl --user stop $idleprog
notify-send "Idle Inhibitor" "$idleprog suspended (systemd)"
else
systemctl --user start $idleprog
notify-send "Idle Inhibitor" "$idleprog resumed (systemd)"
fi
|