#!/bin/sh options() { selection=$(printf "Cancel\nSuspend\nPower Off\nLogout" | dmenu -p "Logout Dialog") [ "$selection" = "Suspend" ] && systemctl suspend && exit [ "$selection" = "Power Off" ] && poweroff && exit [ "$selection" = "Logout" ] && loginctl terminate-session self && exit } case $BLOCK_BUTTON in 1) options;; esac printf "%s\n" "⏻"