Set the check to regex

This commit is contained in:
James Dyke 2026-01-02 13:30:50 +01:00
parent 026d854905
commit c1e0090b3f

View file

@ -74,7 +74,7 @@ run_cmd() {
openbox --exit
elif [[ "$DESKTOP_SESSION" == 'bspwm' ]]; then
bspc quit
elif [[ "$DESKTOP_SESSION" == 'i3' ]]; then
elif [[ "$DESKTOP_SESSION" =~ 'i3' ]]; then
i3-msg exit
elif [[ "$DESKTOP_SESSION" == 'plasma' ]]; then
qdbus org.kde.ksmserver /KSMServer logout 0 0 0