This commit is contained in:
2025-07-29 01:29:28 +02:00
parent 299e5aa5de
commit 6d49a475b1
19 changed files with 673 additions and 585 deletions

View File

@@ -11,18 +11,18 @@ if [ -n "$1" ]; then
pid=$(pgrep -x "hypridle")
if [ -n "$pid" ]; then
killall hypridle > /dev/null 2>&1
notify-send "Caffeine enabled" "POWERRR!!!"
else
hyprctl dispatch exec hypridle > /dev/null 2>&1
notify-send "Caffeine disabled" "zzz..."
fi
exit 0
fi
sleep 0.3 # Allow hypridle to start
# sleep 0.2 # Allow hypridle to start
pid=$(pgrep -x "hypridle")
if [ -n "$pid" ]; then
output "inactive" "inactive"
notify-send "Caffeine disabled" "zzz..."
else
output "active" "active"
notify-send "Caffeine enabled" "POWERRR!!!"
fi