Update monitor-hotplug.sh

Tiny modification to make the script work if the X session has not been started using the current user id
Merge pull request #1 from ticlem/master

A little improvment for systems that start the X server with a non-standard uid