From 0a9053c2902adab8b94eaacdb15390441143078c Mon Sep 17 00:00:00 2001
From: Timmy Keller <tjk@tjkeller.xyz>
Date: Sat, 11 Sep 2021 00:36:13 -0500
Subject: redid repo cus of fucking chromium rip old commit messages

---
 keyboard/shutdownprompt | 8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100755 keyboard/shutdownprompt

(limited to 'keyboard/shutdownprompt')

diff --git a/keyboard/shutdownprompt b/keyboard/shutdownprompt
new file mode 100755
index 0000000..2b97be1
--- /dev/null
+++ b/keyboard/shutdownprompt
@@ -0,0 +1,8 @@
+#!/bin/sh
+#option=`echo "Cancel\nSuspend\nShutdown\nRestart" | dmenu -p "Power Menu " -nb "#AA0000" -nf "#FFF" -sb "#FF0000" -sf "#FFF" || exit` # Run this separately from the case statement so dmenu prompt closes before running the command
+[ -n "$1" ] && option="$1" || option=`echo "Cancel\nSuspend\nShutdown\nRestart" | dmenu -p "Power Menu " -nb "#AA0000" -nf "#FFF" -sb "#FF0000" -sf "#FFF" -nhb "#AA0000" -shb "#FF0000" -shf "#FAA" || exit` # Run this separately from the case statement so dmenu prompt closes before running the command
+case $option in
+	Suspend)  launch zzz 	;;
+	Shutdown) launch off	;;
+	Restart)  launch res	;;
+esac
-- 
cgit v1.2.3