18 lines
307 B
Bash
Executable File
18 lines
307 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# unused for now, repurposing for ddcutil control
|
|
#DISPLAY_STATUS=$(xrandr | grep DP-2)
|
|
#
|
|
#if [ "$DISPLAY_STATUS" = *"1440x3440"* ]; then
|
|
# xrandr --output DP-2 --off
|
|
#else
|
|
# init_displays
|
|
#fi
|
|
|
|
case $1 in
|
|
"brightness")
|
|
ddcutil setvcp 10 $2;;
|
|
"contrast")
|
|
ddcutil setvcp 12 $2;;
|
|
esac
|