From b4463015b97912658d630377fafbf630f7588d1e Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Wed, 21 May 2025 22:01:35 -0500 Subject: moving arch dotfiles into archsetup --- dotfiles/system/.local/bin/exitmenu | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 dotfiles/system/.local/bin/exitmenu (limited to 'dotfiles/system/.local/bin/exitmenu') diff --git a/dotfiles/system/.local/bin/exitmenu b/dotfiles/system/.local/bin/exitmenu new file mode 100755 index 0000000..2c55b34 --- /dev/null +++ b/dotfiles/system/.local/bin/exitmenu @@ -0,0 +1,16 @@ +#!/bin/sh + +CHOICES="Shutdown\nReboot\nLock\nHibernate\nSuspend\nToggle Airplane Mode\nToggle Powersave Mode" +CHOSEN=$(echo -e "$CHOICES" | dmenu -i) + +case $CHOSEN in + "Shutdown") shutdown now ;; + "Reboot") reboot ;; + "Lock") xscreensaver-command --lock ;; + "Hiberbate") systemctl hibernate ;; + "Suspend") systemctl suspend ;; + "Toggle Airplane Mode") airplanemodetoggle ;; + "Toggle Powersave Mode") lowpowertoggle && notify-send "Battery Status" "$(acpi -b)" ;; +esac + +dwmstatus -- cgit v1.2.3