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

@ -9,9 +9,12 @@
# init_displays # init_displays
#fi #fi
case $1 in CHOICE=$(printf "brightness\ncontrast" | dmenu -c -i -l 2)
VALUE=$(printf "0\n10\n20\n30\n40\n50\n60\n70\n80\n90\n100" | dmenu -c -i -p "value to set")
case $CHOICE in
"brightness") "brightness")
ddcutil setvcp 10 $2;; ddcutil setvcp 10 $VALUE;;
"contrast") "contrast")
ddcutil setvcp 12 $2;; ddcutil setvcp 12 $VALUE;;
esac esac

View File

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