This repository has been archived on 2026-10-07. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
omarchy/bin/omarchy-toggle-suspend
T

14 lines
335 B
Bash
Executable File

#!/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