#!/bin/sh options="Lock\nLogout\nShutdown\nReboot\nCancel" chosen=$(echo -e "$options" | rofi -dmenu \ -p "╔═[ POWER MENU ]═╗" \ -lines 5) case "$chosen" in *Lock) i3lock -c 000000 ;; *Logout) i3-msg exit ;; *Shutdown) systemctl poweroff ;; *Reboot) systemctl reboot ;; *Cancel) exit 0 ;; esac