#!/usr/bin/env bash op=$( echo -e "ā» Poweroff\n Reboot\n Suspend\nšŸ”’ Lock\nļ‚‹ Logout" | wofi -i --dmenu -a --width 250 --height 420 | awk '{print tolower($2)}' ) case $op in poweroff) ;& reboot) ;& suspend) systemctl $op ;; lock) swaylock ;; logout) swaymsg exit ;; esac