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