[Hyprland] Migrates to new lua-based config
This commit is contained in:
@@ -66,21 +66,25 @@ run_cmd() {
|
||||
amixer set Master mute
|
||||
systemctl suspend
|
||||
elif [[ $1 == '--logout' ]]; then
|
||||
if [[ "$DESKTOP_SESSION" == 'openbox' ]]; then
|
||||
openbox --exit
|
||||
elif [[ "$DESKTOP_SESSION" == 'bspwm' ]]; then
|
||||
bspc quit
|
||||
elif [[ "$DESKTOP_SESSION" == 'i3' ]]; then
|
||||
i3-msg exit
|
||||
elif [[ "$DESKTOP_SESSION" == 'plasma' ]]; then
|
||||
qdbus org.kde.ksmserver /KSMServer logout 0 0 0
|
||||
elif [[ "$DESKTOP_SESSION" == 'plasma' ]]; then
|
||||
qdbus org.kde.ksmserver /KSMServer logout 0 0 0
|
||||
elif [[ "$DESKTOP_SESSION" == 'hyprland-uwsm' ]]; then
|
||||
hyprctl dispatch exit
|
||||
elif [[ "$DESKTOP_SESSION" == 'hyprland' ]]; then
|
||||
hyprctl dispatch exit
|
||||
fi
|
||||
hyprctl dispatch 'hl.dsp.exec_cmd("uwsm stop")'
|
||||
# DESKTOP_SESSION appears to be empty right now. I'm not going
|
||||
# to bother setting it until I'm using more than one manager.
|
||||
#
|
||||
# if [[ "$DESKTOP_SESSION" == 'openbox' ]]; then
|
||||
# openbox --exit
|
||||
# elif [[ "$DESKTOP_SESSION" == 'bspwm' ]]; then
|
||||
# bspc quit
|
||||
# elif [[ "$DESKTOP_SESSION" == 'i3' ]]; then
|
||||
# i3-msg exit
|
||||
# elif [[ "$DESKTOP_SESSION" == 'plasma' ]]; then
|
||||
# qdbus org.kde.ksmserver /KSMServer logout 0 0 0
|
||||
# elif [[ "$DESKTOP_SESSION" == 'plasma' ]]; then
|
||||
# qdbus org.kde.ksmserver /KSMServer logout 0 0 0
|
||||
# elif [[ "$DESKTOP_SESSION" == 'hyprland-uwsm' ]]; then
|
||||
# hyprctl dispatch 'exec, uwsm stop'
|
||||
# elif [[ "$DESKTOP_SESSION" == 'hyprland' ]]; then
|
||||
# hyprctl dispatch exit
|
||||
# fi
|
||||
fi
|
||||
else
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user