dotfiles/eww/scripts/toggle_screensaver.sh

9 lines
116 B
Bash
Raw Normal View History

#!/usr/bin/bash
if [ "$(pgrep -x xscreensaver)" ]; then
killall xscreensaver
else
xscreensaver --no-splash &
fi