1 title: Announcing Xhotplug 2 author: Daniel Moch 3 copyright: 2020, Daniel Moch 4 date: 2020-07-04 13:54:52 UTC-04:00 5 category: announcements 6 description: An X11 monitor attach/detach responder 7 8 I'm pleased to announce the initial, beta release of 9 [xhotplug](https://dl.danielmoch.com/xhotplug), a small utility for 10 automatically responding to X11 montor attach/detach events. 11 12 I've recently switch to OpenBSD from Linux, and one small annoyance 13 has been the lack of udev, which I was able to pair with 14 [autorandr](https://github.com/phillipberndt/autorandr) on my laptop 15 to automatically reconfigure my X11 screen whenever I attached a new 16 monitor. I recently came across an IRC comment linking to a 17 [Gist](https://gist.github.com/mafrasi2/4ee01e0ba4dad20cf7a80ae463f32fca 18 ) that showed the guts of a little C program that did the trick. From 19 there it was a small effort to wrap that logic in something a bit more 20 user friendly and capable of being launched from `.xinitrc`. xhotplug 21 pairs well with autorandr, or you can write your own script to respond 22 to events. 23 24 If you have any feedback, or just find it useful, please reach out 25 an let me know. 26 27 Cheers!