dot/scripts/ddc-switch-inputs

20 lines
307 B
Text
Raw Normal View History

2021-10-09 21:20:41 +00:00
#!/bin/bash
# Usage: ddc-switch-inputs 1
case $1 in
1 )
# Config 1: Main PC
OUT=("0x0f" "0x20")
;;
2 )
# Config 2: Virtual machine
OUT=("0x11" "0x21")
;;
* )
echo "Unknown input '$1'"
exit 1
;;
esac
2022-07-31 21:09:31 +00:00
ddcutil --bus=23 setvcp 60 ${OUT[0]} &
2021-10-09 21:20:41 +00:00
wait