mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-12-25 20:54:34 +00:00
Add quit menu instead of yes/no prompt on hyprland exit
This commit is contained in:
parent
7a81a38d10
commit
6d8590b0dc
|
@ -160,7 +160,7 @@ $MOUSE_EX1 = mouse:275
|
||||||
$MOUSE_EX2 = mouse:276
|
$MOUSE_EX2 = mouse:276
|
||||||
|
|
||||||
# DE/WM control
|
# 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_CTRL, L, exec, loginctl lock-session
|
||||||
bind = SUPER_SHIFT, L, exec, wlogout -p layer-shell
|
bind = SUPER_SHIFT, L, exec, wlogout -p layer-shell
|
||||||
bind = SUPER_SHIFT, T, exec, toggle-idle
|
bind = SUPER_SHIFT, T, exec, toggle-idle
|
||||||
|
|
25
home/.local/bin/scripts/gui/prompt/menuquit
Executable file
25
home/.local/bin/scripts/gui/prompt/menuquit
Executable file
|
@ -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
|
Loading…
Reference in a new issue