diff --git a/rofi/powermenu/type-1/powermenu.sh b/rofi/powermenu/type-1/powermenu.sh index 283fc4d..b0068cb 100755 --- a/rofi/powermenu/type-1/powermenu.sh +++ b/rofi/powermenu/type-1/powermenu.sh @@ -18,13 +18,13 @@ uptime="$(uptime -p | sed -e 's/up //g')" host=$(hostname) # Options -shutdown=' Shutdown' -reboot=' Reboot' -lock=' Lock' -suspend=' Suspend' -logout=' Logout' -yes=' Yes' -no=' No' +shutdown=' Shutdown' +reboot='󰜉 Reboot' +lock=' Lock' +suspend='󰤄 Suspend' +logout='󰍃 Logout' +yes=' Yes' +no=' No' # Rofi CMD rofi_cmd() { @@ -70,17 +70,7 @@ run_cmd() { amixer set Master mute 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 - 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 + hyprctl dispatch exit fi else exit 0