Use Hyprland's 'exec-shutdown'
This commit is contained in:
parent
ee07633f80
commit
6e6070b7b7
3 changed files with 4 additions and 7 deletions
|
@ -41,3 +41,6 @@ exec-once = udiskie
|
|||
|
||||
# XWayland
|
||||
exec-once = xprop -root -f _XWAYLAND_GLOBAL_OUTPUT_SCALE 32c -set _XWAYLAND_GLOBAL_OUTPUT_SCALE 2
|
||||
|
||||
|
||||
exec-shutdown = $HOME/.config/zsh/.zlogout
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
}
|
||||
{
|
||||
"label" : "logout",
|
||||
"action" : "~/.config/zsh/.zlogout",
|
||||
"action" : "hyprctl dispatch exit",
|
||||
"text" : "Logout",
|
||||
"keybind" : "e"
|
||||
}
|
||||
|
|
|
@ -12,10 +12,4 @@ if [[ $(who | grep "$USER" | wc -l) -le 1 ]]; then
|
|||
pkill -u "$USER" -9 ssh-agent
|
||||
fi
|
||||
|
||||
if [[ -n $HYPRLAND_INSTANCE_SIGNATURE ]]; then
|
||||
HYPRCMDS=$(hyprctl -j clients | jq -j '.[] | "dispatch closewindow address:\(.address); "')
|
||||
hyprctl -q --batch "$HYPRCMDS"
|
||||
hyprctl dispatch exit
|
||||
fi
|
||||
|
||||
loginctl terminate-session $XDG_SESSION_ID
|
||||
|
|
Loading…
Reference in a new issue