summaryrefslogtreecommitdiff
path: root/.local/bin/dmenu_shudown
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/dmenu_shudown')
-rwxr-xr-x.local/bin/dmenu_shudown12
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