powermenu script

This commit is contained in:
DarthMooMancer committed 2025-09-10 14:44:05 -04:00
1 parent 3a68a688de
commit 0661c134ab
6 files changed
+13 -10

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
#!/usr/bin/env bash
output=$(echo -e "Poweroff\nReboot\nQuit Dwm" | dmenu -p "Power Actions: " -l 3)
if [ $output == "Poweroff" ]; then
st -e sh -c "doas poweroff"
else if [ $output == "Reboot"]; then
st -e sh -c "doas reboot"
else if [ $output == "Quit Dwm"]; then
st -e sh -c "pkill X"
fi