dotfiles/eww/scripts/toggle_screensaver.sh

8 lines
116 B
Bash
Executable file

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