diff --git a/.config/rofi/logout b/.config/rofi/logout new file mode 100644 --- /dev/null +++ b/.config/rofi/logout @@ -0,0 +1,11 @@ +if [ "$XDG_SESSION_DESKTOP" == "bspwm" ]; then + bspc quit +fi + +if [ "$XDG_SESSION_DESKTOP" == "i3" ]; then + i3-msg exit +fi + +if [ "$XDG_SESSION_DESKTOP" == "i3-gnome" ]; then + i3-msg exit +fi diff --git a/.config/rofi/rofi-power-menu b/.config/rofi/rofi-power-menu --- a/.config/rofi/rofi-power-menu +++ b/.config/rofi/rofi-power-menu @@ -40,7 +40,7 @@ declare -A actions actions[lockscreen]="loginctl lock-session ${XDG_SESSION_ID-}" #actions[switchuser]="???" -actions[logout]="i3-msg exit" +actions[logout]="/home/eli/.config/rofi/logout" actions[suspend]="systemctl suspend" actions[hibernate]="systemctl hibernate" actions[reboot]="systemctl reboot"