From b59cb9d67176936022139b725afba74bc4eabaea Mon Sep 17 00:00:00 2001 From: Valerie Date: Fri, 28 Jul 2023 15:59:21 -0400 Subject: [PATCH] added screensaver scripts to eww config --- eww/scripts/screensaver.sh | 10 ++++++++++ eww/scripts/toggle_screensaver.sh | 8 ++++++++ 2 files changed, 18 insertions(+) create mode 100755 eww/scripts/screensaver.sh create mode 100755 eww/scripts/toggle_screensaver.sh diff --git a/eww/scripts/screensaver.sh b/eww/scripts/screensaver.sh new file mode 100755 index 0000000..caf3559 --- /dev/null +++ b/eww/scripts/screensaver.sh @@ -0,0 +1,10 @@ +#!/usr/bin/bash + +if [ "$(pgrep -x xscreensaver)" ]; then + #echo "󰍹" + echo "󱄄" +else + #echo "󱎴" + echo "󰍹" +fi + diff --git a/eww/scripts/toggle_screensaver.sh b/eww/scripts/toggle_screensaver.sh new file mode 100755 index 0000000..d4434a6 --- /dev/null +++ b/eww/scripts/toggle_screensaver.sh @@ -0,0 +1,8 @@ +#!/usr/bin/bash + +if [ "$(pgrep -x xscreensaver)" ]; then + killall xscreensaver +else + xscreensaver --no-splash & +fi +