Make suspend opt-out rather than opt-in
This commit is contained in:
1 parent
d52ae29e66
commit
e140badbb2
3 files changed
+21
-9
No files matched your search
@@ -1,13 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
STATE_FILE=~/.local/state/omarchy/toggles/suspend-on
|
||||
STATE_FILE=~/.local/state/omarchy/toggles/suspend-off
|
||||
|
||||
if [[ ! -f $STATE_FILE ]]; then
|
||||
mkdir -p "$(dirname $STATE_FILE)"
|
||||
touch $STATE_FILE
|
||||
if [[ -f $STATE_FILE ]]; then
|
||||
rm -f $STATE_FILE
|
||||
notify-send " Suspend now available in system menu"
|
||||
else
|
||||
mkdir -p "$(dirname $STATE_FILE)"
|
||||
rm -f $STATE_FILE
|
||||
touch $STATE_FILE
|
||||
notify-send " Suspend removed from system menu"
|
||||
fi
|
||||
Reference in new issue
Block a user