Skip to content

Instantly share code, notes, and snippets.

@lazypower
Created June 3, 2017 21:49
Show Gist options
  • Save lazypower/5f36375244839319ee9c1a2954daf81d to your computer and use it in GitHub Desktop.
Save lazypower/5f36375244839319ee9c1a2954daf81d to your computer and use it in GitHub Desktop.
#/etc/udev/rules.d/98-monitor-hotplug.rule
KERNEL=="card0", SUBSYSTEM=="drm", ACTION=="change",
ENV{DISPLAY}=":0", ENV{XAUTHORITY}="/home/charles/.Xauthority",
RUN+="/bin/bash /home/charles/monitor-hotplug.sh"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment