Files
dotfiles/bspwm/prevent_suspend.sh
2025-06-03 14:16:01 +03:00

10 lines
211 B
Bash
Executable File

# Check if xset q has "timeout" equal to 0 and if so, return 1
if xset q | grep "timeout: 0" >/dev/null; then
xset s 580 10
echo "Suspend lock disabled"
else
xset s off
echo "Suspend lock enabled"
fi