dmenupoweroff (525B)
#!/bin/bash MENU="dmenu_bind" OPT=$(echo -e "0: Cancel\n1: Lock\n2: Suspend\n3: Poweroff\n4: Reboot\n5: Logout\n6: Refresh i3" | dmenu -p "Select an option..." | awk 'BEGIN{FS=":"}{print $1}') if [[ "$OPT" = "0" ]]; then exit elif [[ "$OPT" = "1" ]]; then slock elif [[ "$OPT" = "2" ]]; then systemctl suspend elif [[ "$OPT" = "3" ]]; then poweroff elif [[ "$OPT" = "4" ]]; then reboot elif [[ "$OPT" = "5" ]]; then i3-msg exit elif [[ "$OPT" = "6" ]]; then i3-msg reload && i3-msg restart fi