summaryrefslogtreecommitdiff
path: root/.local/bin/dmenu_shudown
blob: ed868e7b71e6f930222166ddf0d1f88001425ff4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

choice=$(printf "no\\nYES" | dmenu -p "Shutdown?")

if [ "$choice" = "YES" ]; then

    choice=$(printf "no\\nYES" | dmenu -p "Are you sure?")
    if [ "$choice" = "YES" ]; then
        echo "Shutting down"
        # shutdown -h now
    fi
fi