I am trying to automate some functions when a monitor is plugged in or or unplugged. I am using Ubuntu 15.04. How can I detect when the monitor changes? Is it possible to execute a shell script when an external monitor is plugged/unplugged in?
Asked
Active
Viewed 23 times