Add tweak to bring back suspend option to system menu

This commit is contained in:
David Heinemeier Hansson
2026-01-06 16:45:12 +01:00
parent 0b8bbdf01d
commit 9ae225a15a
2 changed files with 40 additions and 7 deletions

13
bin/omarchy-toggle-suspend Executable file
View 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