mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Add tweak to bring back suspend option to system menu
This commit is contained in:
13
bin/omarchy-toggle-suspend
Executable file
13
bin/omarchy-toggle-suspend
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
STATE_FILE=~/.local/state/omarchy/toggles/suspend-on
|
||||
|
||||
if [[ ! -f $STATE_FILE ]]; then
|
||||
mkdir -p "$(dirname $STATE_FILE)"
|
||||
touch $STATE_FILE
|
||||
notify-send " Suspend now available in system menu"
|
||||
else
|
||||
mkdir -p "$(dirname $STATE_FILE)"
|
||||
rm -f $STATE_FILE
|
||||
notify-send " Suspend removed from system menu"
|
||||
fi
|
||||
Reference in New Issue
Block a user