From 4d0bd914e7c1ee65f4036e60149a7b891906a5d3 Mon Sep 17 00:00:00 2001 From: George Abbott Date: Tue, 31 Oct 2023 17:54:07 +0000 Subject: Commit all to date. --- sys/powermenu | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 sys/powermenu (limited to 'sys/powermenu') diff --git a/sys/powermenu b/sys/powermenu new file mode 100755 index 0000000..e9d6a2a --- /dev/null +++ b/sys/powermenu @@ -0,0 +1,9 @@ +#!/bin/sh + +resp=$(printf "♻️ shutdown\n⏼ reboot\n lock\nrestart dwm\nclose X" | dmenu) + +[ "$resp" = "♻️ shutdown" ] && sudo poweroff +[ "$resp" = "⏼ reboot" ] && sudo reboot +[ "$resp" = " lock" ] && slock +[ "$resp" = "restart dwm" ] && pkill dwm +[ "$resp" = "close X" ] && pkill xinit -- cgit v1.2.1