Command Line Fu

A few weeks back i bought a new monitor Dell U2312HM, its a brilliant monitor with support for portrait/landscape switching. so as it always happens after buying a new monitor i planned a movie night and ran into the screen lock problem, i have set 2 minute timeout for screen lock and some why changing screen settings didn’t work, i knew i had to find a solution and fast or the above xkcd might actually happen with me

so this is what i came up with, having worked with X bindings before for Game-on this was done in under 5 mins (after reading some docs) , another day saved all thanks to Linux, X11 and previous X11 binding experience :P

This code moves the mouse pointer back and forth every few seconds, which is defined in DURATION

Published: November 13 2011

  • category:
blog comments powered by Disqus