diff options
author | Jackson Taylor <jackson@jacksontaylor.xyz> | 2021-02-01 19:04:54 -0500 |
---|---|---|
committer | Jackson Taylor <jackson@jacksontaylor.xyz> | 2021-02-01 19:04:54 -0500 |
commit | aa3f11586147f2a9528e59688a6607d386d2b818 (patch) | |
tree | e2b26ad9c82fcd1163df4c6acf6a4cce89527cbe /.local/bin/dmenu_shudown | |
parent | 445f6eaeb94d97aa271970b0fdbbb6841dd349a4 (diff) |
Add local bin folder
Diffstat (limited to '.local/bin/dmenu_shudown')
-rwxr-xr-x | .local/bin/dmenu_shudown | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/.local/bin/dmenu_shudown b/.local/bin/dmenu_shudown new file mode 100755 index 0000000..ed868e7 --- /dev/null +++ b/.local/bin/dmenu_shudown @@ -0,0 +1,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 |