This commit is contained in:
2026-01-11 16:09:49 -08:00
parent d230adf3aa
commit 05f4f7cc8d
2 changed files with 12 additions and 7 deletions

View File

@ -1,14 +1,12 @@
#!/bin/sh
CORE="suspend\nsuspend in 5 minutes\nreboot\nshutdown\n"
EXTRA="key repeat rate\nvolume mixer"
CORE="suspend\nreboot\nshutdown\nkey repeat rate\nvolume mixer"
#EXTRA="display settings\nrgb off"
ACTION=$(printf "$CORE$EXTRA" | dmenu -c -i -l 10 -p "manager")
case "$ACTION" in
"suspend")
systemctl suspend;;
"suspend in 5 minutes")
sleep 300;systemctl suspend;;
"reboot")
systemctl reboot;;
"shutdown")
@ -17,4 +15,8 @@ case "$ACTION" in
xset r rate 200 40;;
"volume mixer")
st -i -g 60x20-200+200 -e pulsemixer;;
"rgb off")
openrgb --mode direct --color 000000;;
"display settings")
displayctl;;
esac