From aa3f11586147f2a9528e59688a6607d386d2b818 Mon Sep 17 00:00:00 2001 From: Jackson Taylor Date: Mon, 1 Feb 2021 19:04:54 -0500 Subject: Add local bin folder --- .local/bin/dmenu_shudown | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 .local/bin/dmenu_shudown (limited to '.local/bin/dmenu_shudown') 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 -- cgit v1.2.3