#!/bin/bash # reload the inputs, as they somehow get lost when a second monitor is attached sleep 5 udevadm trigger --action=remove --subsystem-match=input sleep 0.5 udevadm trigger --action=add --subsystem-match=input