logout menu update
This commit is contained in:
parent
5cc4901b0c
commit
bb41d9ca40
1 changed files with 8 additions and 18 deletions
|
|
@ -18,13 +18,13 @@ uptime="$(uptime -p | sed -e 's/up //g')"
|
||||||
host=$(hostname)
|
host=$(hostname)
|
||||||
|
|
||||||
# Options
|
# Options
|
||||||
shutdown=' Shutdown'
|
shutdown=' Shutdown'
|
||||||
reboot=' Reboot'
|
reboot=' Reboot'
|
||||||
lock=' Lock'
|
lock=' Lock'
|
||||||
suspend=' Suspend'
|
suspend=' Suspend'
|
||||||
logout=' Logout'
|
logout=' Logout'
|
||||||
yes=' Yes'
|
yes=' Yes'
|
||||||
no=' No'
|
no=' No'
|
||||||
|
|
||||||
# Rofi CMD
|
# Rofi CMD
|
||||||
rofi_cmd() {
|
rofi_cmd() {
|
||||||
|
|
@ -70,17 +70,7 @@ run_cmd() {
|
||||||
amixer set Master mute
|
amixer set Master mute
|
||||||
systemctl suspend
|
systemctl suspend
|
||||||
elif [[ $1 == '--logout' ]]; then
|
elif [[ $1 == '--logout' ]]; then
|
||||||
if [[ "$DESKTOP_SESSION" == 'openbox' ]]; then
|
hyprctl dispatch exit
|
||||||
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" == 'hyprland' ]]; then
|
|
||||||
hyprctl dispatch exit
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
exit 0
|
exit 0
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue