{"version":"1.0","type":"rich","title":"Disable touchpad on mouse detection on Ubuntu 14.04.04","description":"This example shows a udev rules configuration that automatically disables the touchpad when an external mouse is connected and re-enables it when the mouse is removed. The code defines two rules in `/etc/udev/rules.d/01-touchpad.rules`, using the `SUBSYSTEM`, `KERNEL`, `ACTION`, and `RUN` parameters to trigger the `synclient` command on mouse add or remove events. It sets the `TouchpadOff` property to 1 or 0, and explicitly passes the `DISPLAY` and `XAUTHORITY` environment variables to ensure the command reaches the correct X session. The rules follow the Arch Linux wiki’s Touchpad Synaptics documentation.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-0645059dfd93e7f713db7ab481b8cd8a?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}