Rofi script that uses ddcutil to show an input source menu for all connected monitors. This lets you change the input source of any connected monitor without actually touching said monitor.
Copy monitor-input.sh
to ~/.config/rofi/scripts
.
Inside the script, edit the DDC_I2C_BUSES
variable to contain the i2c bus addresses of your monitors.
Run this to find out what those are:
ddcutil detect -t | grep -o "i2c-[0-9]$" | grep -o "[0-9]$" | sort | uniq
rofi -show monitor-input