From e41b64c0ab1b8764bc100b968d47f2f904bcab61 Mon Sep 17 00:00:00 2001 From: Maximilian Wagner Date: Mon, 29 Dec 2025 23:21:50 +0100 Subject: [PATCH] added suspend action --- scripts/power-menu.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/power-menu.sh b/scripts/power-menu.sh index e3bc58c..7df4ee6 100755 --- a/scripts/power-menu.sh +++ b/scripts/power-menu.sh @@ -5,6 +5,7 @@ dmenu_command=(wofi -dmenu -p "Power Menu" -i) # Define menu options and corresponding actions options=( "Lock" + "Suspend" "Logout" "Shutdown" "Reboot" @@ -13,6 +14,7 @@ options=( # Create associative array mapping text to actions declare -A actions actions["Lock"]="sleep 0.2 && hyprlock" +actions["Suspend"]="sleep 0.2 && systemctl suspend" actions["Logout"]="hyprctl dispatch exit" actions["Shutdown"]="systemctl poweroff" actions["Reboot"]="systemctl reboot"