#!/usr/bin/env bash op=$( echo -e " Poweroff\n Reboot\n Suspend\n Lock\n Logout" | wofi -i --dmenu | awk '{print tolower($2)}' ) case $op in poweroff) ;& reboot) ;& suspend) systemctl $op ;; lock) #loginctl lock-session swaylock -f -c 221122 ;; logout) swaymsg exit ;; esac