#!/bin/bash test=$(echo -e "Shutdown\nLogout\nSuspend\nReboot\nCancel" | dmenu -i -p "$1" -h 25) case "$test" in Shutdown) poweroff ;; Logout) #herbstclient quit killall xinit ;; Suspend) systemctl suspend ;; Reboot) reboot ;; esac