choice=$(printf "Shutdown\nReboot\nSuspend\nLogout" | rofi -dmenu -config ~/.config/rofi/config.rasi -p "╔═[ SYSTEM MENU ]═╗") case "$choice" in " Shutdown") systemctl poweroff ;; " Reboot") systemctl reboot ;; " Suspend") systemctl suspend ;; " Logout") i3-msg exit ;; # adjust for your WM esac