From 3a2cd83df27b27f365a8974ee7818db2248f5357 Mon Sep 17 00:00:00 2001 From: self Date: Mon, 19 Sep 2022 11:37:02 +0100 Subject: powermenu --- scripts/powermenu | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 scripts/powermenu diff --git a/scripts/powermenu b/scripts/powermenu new file mode 100755 index 0000000..d8f7891 --- /dev/null +++ b/scripts/powermenu @@ -0,0 +1,7 @@ +#!/bin/sh + +resp=$(printf "♻️ shutdown\n⏼ reboot\n lock\nrestart dwm\nclose dwm" | dmenu) + +[ "$resp" = "♻️ shutdown" ] && sudo poweroff +[ "$resp" = "⏼ reboot" ] && sudo reboot +[ "$resp" = " lock" ] && slock -- cgit v1.2.1