Add shortcut for toggling swayidle

This commit is contained in:
ItsDrike 2022-10-30 19:33:47 +01:00
parent 1f6ad7f0b6
commit 1e534616c7
No known key found for this signature in database
GPG key ID: B014E761034AF742
2 changed files with 10 additions and 0 deletions

View file

@ -0,0 +1,9 @@
#!/bin/sh
if pgrep swayidle >/dev/null; then
killall swayidle
notify-send "Idle" "Idle timeouts disabled"
else
swayidle & disown
notify-send "Idle" "Idle timeouts enabled"
fi