added screensaver scripts to eww config

This commit is contained in:
Valerie Wolfe 2023-07-28 15:59:21 -04:00
parent 48bff4b697
commit b59cb9d671
2 changed files with 18 additions and 0 deletions

10
eww/scripts/screensaver.sh Executable file
View file

@ -0,0 +1,10 @@
#!/usr/bin/bash
if [ "$(pgrep -x xscreensaver)" ]; then
#echo "󰍹"
echo "󱄄"
else
#echo "󱎴"
echo "󰍹"
fi

View file

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