summaryrefslogtreecommitdiff
path: root/scripts/ddc-switch-inputs
blob: b6f8d0af80a6fd31a3a2e53a3846b65410b5cd4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/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

ddcutil --bus=10 setvcp 60 ${OUT[0]} &
wait