Udev rule to handle docking/undocking on workstation remy.
Install/uninstall with make.
Events can be monitored with udevadm monitor -e.
The script can be tested with env -i UDEV_VARS=foobar zsh dock.
The script can be debugged through udevd logging
(journalctl -xfeu systemd-udevd)
enabled through udevadm control --log-priority debug
but the script must write to stderr, stdout doesn't seem to be logged by
udevd.