From fd1f1013e3335bdddb6aed705c6819f9dc010fad Mon Sep 17 00:00:00 2001 From: rafa_99 Date: Sat, 10 Oct 2020 22:56:00 +0100 Subject: Dots Upgrade to use GNU Stow Organization --- scripts/.local/bin/powermenu | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 scripts/.local/bin/powermenu (limited to 'scripts/.local/bin/powermenu') diff --git a/scripts/.local/bin/powermenu b/scripts/.local/bin/powermenu new file mode 100755 index 0000000..5784a90 --- /dev/null +++ b/scripts/.local/bin/powermenu @@ -0,0 +1,15 @@ +#!/bin/sh + +OPERATION=$(printf "Reboot\nShutdown\nSuspend" | dmenu -i -c -l 15 -p "Power Menu:") + +case $OPERATION in + Reboot) + doas reboot + ;; + Shutdown) + doas poweroff + ;; + Suspend) + slock & + loginctl suspend +esac -- cgit v1.2.3