# /etc/kbd_disp.conf — per-host configuration for kbd_disp_switch
#
# Copy this file to /etc/kbd_disp.conf on EACH host and adjust.
# The two hosts are asymmetric: one is the "active" host (queries the peer
# over ssh), the other is "passive" (reads a state file pushed by the peer).
# See README.md "Architecture" for why.
# Which monitor input this host is wired to.
# 1 -> x0090 (monitor HDMI 1) 2 -> x0091 (monitor HDMI 2)
MY_INPUT=2
# Seconds to wait after a dongle attach before deciding. Gives a quick
# unplug/replug (flap) time to cancel the pending decision.
SETTLE=2
# --- Active host (the one that can ssh to the peer) ---
# ssh target for querying the peer's last departure time.
PEER_QUERY=user@peer-host
# ssh target for pushing our departure time to the peer.
PEER_PUSH=user@peer-host
# Dedicated passphrase-less key for the automation (udev runs as root and
# must not require interaction). Restrict it on the peer with command=...
SSH_KEY=/root/.ssh/kbd_disp
# --- Passive host (leave these commented out) ---
# Local file that the active host's pushes land in (written by kbd_disp_peer).
#PEER_STATE_FILE=/var/lib/kbd_disp/peer_detach
# --- Optional: override the DDC write command ---
# %s is replaced with the input value (x0090 / x0091 for MY_INPUT 1 / 2).
# Default (LG side-channel, see README):
#DDC_CMD='ddcutil setvcp xF4 %s --i2c-source-addr=x50 --noverify'
# Most other monitors (standard VCP 60):
#DDC_CMD='ddcutil setvcp 60 %s --noverify'