dotfiles/home/.local/bin/scripts/gui/hyprland/toggle-idle

10 lines
192 B
Bash
Executable file

#!/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