mirror of
https://github.com/adi1090x/rofi.git
synced 2024-11-21 21:58:21 -05:00
Added kde support to logout on Powermenu
This commit is contained in:
parent
67b037e31f
commit
96f0fe75bc
@ -78,6 +78,8 @@ run_cmd() {
|
|||||||
bspc quit
|
bspc quit
|
||||||
elif [[ "$DESKTOP_SESSION" == 'i3' ]]; then
|
elif [[ "$DESKTOP_SESSION" == 'i3' ]]; then
|
||||||
i3-msg exit
|
i3-msg exit
|
||||||
|
elif [[ "$DESKTOP_SESSION" == 'plasma' ]]; then
|
||||||
|
qdbus org.kde.ksmserver /KSMServer logout 0 0 0
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
@ -79,6 +79,8 @@ run_cmd() {
|
|||||||
bspc quit
|
bspc quit
|
||||||
elif [[ "$DESKTOP_SESSION" == 'i3' ]]; then
|
elif [[ "$DESKTOP_SESSION" == 'i3' ]]; then
|
||||||
i3-msg exit
|
i3-msg exit
|
||||||
|
elif [[ "$DESKTOP_SESSION" == 'plasma' ]]; then
|
||||||
|
qdbus org.kde.ksmserver /KSMServer logout 0 0 0
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
@ -73,6 +73,8 @@ run_cmd() {
|
|||||||
bspc quit
|
bspc quit
|
||||||
elif [[ "$DESKTOP_SESSION" == 'i3' ]]; then
|
elif [[ "$DESKTOP_SESSION" == 'i3' ]]; then
|
||||||
i3-msg exit
|
i3-msg exit
|
||||||
|
elif [[ "$DESKTOP_SESSION" == 'plasma' ]]; then
|
||||||
|
qdbus org.kde.ksmserver /KSMServer logout 0 0 0
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
@ -73,6 +73,8 @@ run_cmd() {
|
|||||||
bspc quit
|
bspc quit
|
||||||
elif [[ "$DESKTOP_SESSION" == 'i3' ]]; then
|
elif [[ "$DESKTOP_SESSION" == 'i3' ]]; then
|
||||||
i3-msg exit
|
i3-msg exit
|
||||||
|
elif [[ "$DESKTOP_SESSION" == 'plasma' ]]; then
|
||||||
|
qdbus org.kde.ksmserver /KSMServer logout 0 0 0
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
@ -82,6 +82,8 @@ run_cmd() {
|
|||||||
bspc quit
|
bspc quit
|
||||||
elif [[ "$DESKTOP_SESSION" == 'i3' ]]; then
|
elif [[ "$DESKTOP_SESSION" == 'i3' ]]; then
|
||||||
i3-msg exit
|
i3-msg exit
|
||||||
|
elif [[ "$DESKTOP_SESSION" == 'plasma' ]]; then
|
||||||
|
qdbus org.kde.ksmserver /KSMServer logout 0 0 0
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
@ -82,6 +82,8 @@ run_cmd() {
|
|||||||
bspc quit
|
bspc quit
|
||||||
elif [[ "$DESKTOP_SESSION" == 'i3' ]]; then
|
elif [[ "$DESKTOP_SESSION" == 'i3' ]]; then
|
||||||
i3-msg exit
|
i3-msg exit
|
||||||
|
elif [[ "$DESKTOP_SESSION" == 'plasma' ]]; then
|
||||||
|
qdbus org.kde.ksmserver /KSMServer logout 0 0 0
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user