#!/bin/bash choice=$(echo -e "shutdown\nrestart\nlogoff\nscreenlock" | dmenu) case $choice in shutdown) sudo shutdown now ;; restart) sudo shutdown -r now ;; logoff) pkill qtile ;; screenlock) i3lock -c 000000 ;; esac