#!/bin/sh # movemouse # # Copyright 2004, Michael T. Dean # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Moves the mouse cursor using the X Windows XTrap extension # (Originally created to overcome focus problems for MythTV.) # # # Usage: # movemouse # or # DISPLAY= movemouse # # You must have a valid DISPLAY (either set as an environment variable or # specified as above). You must also load the XTrap extension to X Windows # using a line such as: # Load "xtrap" # in the "Module" section of your XF86Config or xorg.conf file. # xtrapin << "EOF" Event: MotionNotify (6):det=0 scr=0 (0,0) root=9 Msk=10 TS=10 Event: MotionNotify (6):det=0 scr=0 (25,25) root=9 Msk=10 TS=10 Event: MotionNotify (6):det=0 scr=0 (25,455) root=9 Msk=10 TS=10 Event: MotionNotify (6):det=0 scr=0 (615,455) root=9 Msk=10 TS=10 Event: MotionNotify (6):det=0 scr=0 (615,25) root=9 Msk=10 TS=10 Event: MotionNotify (6):det=0 scr=0 (320,240) root=9 Msk=10 TS=10 EOF