diff --git a/home/.config/hypr/hyprland.conf b/home/.config/hypr/hyprland.conf index dcb364b..5e956f6 100644 --- a/home/.config/hypr/hyprland.conf +++ b/home/.config/hypr/hyprland.conf @@ -160,7 +160,7 @@ $MOUSE_EX1 = mouse:275 $MOUSE_EX2 = mouse:276 # DE/WM control -bind = SUPER_SHIFT, Q, exec, menuprompt --yesno -p "Quit Hyprland?" && hyprctl dispatch exit "" +bind = SUPER_SHIFT, Q, exec, menuquit bind = SUPER_CTRL, L, exec, loginctl lock-session bind = SUPER_SHIFT, L, exec, wlogout -p layer-shell bind = SUPER_SHIFT, T, exec, toggle-idle diff --git a/home/.local/bin/scripts/gui/prompt/menuquit b/home/.local/bin/scripts/gui/prompt/menuquit new file mode 100755 index 0000000..5336f52 --- /dev/null +++ b/home/.local/bin/scripts/gui/prompt/menuquit @@ -0,0 +1,25 @@ +#!/bin/bash + +action="$(printf 'Quit WM\nLock session\nLock TTYs\nPoweroff\nReboot\nNothing' | menuprompt -c --app wofi -p "Select Action" -- -O default)" + +case "$action" in + "Quit WM") + hyprctl dispatch exit "" + ;; + "Lock session") + loginctl lock-session + ;; + "Lock TTYs") + physlock + ;; + "Poweroff") + systemctl poweroff + ;; + "Reboot") + systemctl reboot + ;; + "Nothing") ;& + *) + exit 1 + ;; +esac