From e371d9edd474bcf89cf5d462eaccb8638900b390 Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Sat, 3 Oct 2020 19:27:15 -0400 Subject: Initial commit --- .local/bin/powermenu | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 .local/bin/powermenu (limited to '.local/bin/powermenu') diff --git a/.local/bin/powermenu b/.local/bin/powermenu new file mode 100755 index 0000000..994953e --- /dev/null +++ b/.local/bin/powermenu @@ -0,0 +1,11 @@ +#!/bin/sh + +choice=$(printf "Logout\\nShutdown\\nReboot\\nHibernate" | dmenu -i -p "Power Utility") + +case $choice in + *L*) $SCRIPTS/control/lockscreen ;; + *H*) systemctl suspend ;; + *R*) reboot ;; + *S*) shutdown -h now ;; + "") notify-send -i "$HOME/.fonts/svg/power-off.svg" -a Power "Operation suspended" +esac -- cgit v1.2.3