memos
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user