scripts/poweroff

8 lines
107 B
Bash
Executable File

#!/bin/bash
ans=$(printf "no\nyes" | dmenu -p "Shutdown?")
if [ "$ans" = "yes" ]; then
/bin/poweroff
fi