Use cage for the display manager

This commit is contained in:
marc
2024-03-02 23:03:20 +01:00
parent d1b63fe326
commit f2b20c7acd
7 changed files with 45 additions and 11 deletions

View File

@@ -58,14 +58,10 @@ run_cmd() {
elif [[ $1 == '--suspend' ]]; then
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
if [[ "$DESKTOP_SESSION" == 'i3' ]]; then
i3-msg exit
elif [[ "$DESKTOP_SESSION" == 'plasma' ]]; then
qdbus org.kde.ksmserver /KSMServer logout 0 0 0
elif [[ ! -z $HYPRLAND_INSTANCE_SIGNATURE ]]; then
hyprctl dispatch exit
fi
fi
else