Use new shared omarchy-toggle
This commit is contained in:
@@ -1,12 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
STATE_FILE=~/.local/state/omarchy/toggles/screensaver-off
|
omarchy-toggle \
|
||||||
|
--enabled-notification " Screensaver disabled" \
|
||||||
if [[ -f $STATE_FILE ]]; then
|
--disabled-notification " Screensaver enabled" \
|
||||||
rm -f $STATE_FILE
|
screensaver-off
|
||||||
notify-send -u low " Screensaver enabled"
|
|
||||||
else
|
|
||||||
mkdir -p "$(dirname $STATE_FILE)"
|
|
||||||
touch $STATE_FILE
|
|
||||||
notify-send -u low " Screensaver disabled"
|
|
||||||
fi
|
|
||||||
|
|||||||
Reference in New Issue
Block a user