/[scripts]/trunk/mouse-teleport.sh
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /trunk/mouse-teleport.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 117 - (hide annotations)
Thu Jul 9 13:04:15 2009 UTC (14 years, 8 months ago) by dpavlin
File MIME type: application/x-sh
File size: 407 byte(s)
teleport mouse pointer

1 dpavlin 117 #!/bin/sh -x
2    
3     w=`xrandr -q | grep ' connected [0-9]*x' | sed 's/.*connected \([0-9]*\)x.*/\1/' | head -1`
4     h=`xrandr -q | grep ' connected [0-9]*x' | sed 's/.*connected [0-9]*x\([0-9]*\).*/\1/' | head -1`
5    
6     echo "# screen $w * $h"
7    
8     case "$1" in
9     l) xdotool mousemove_relative -$w 0 ;;
10     r) xdotool mousemove_relative $w 0 ;;
11     u) xdotool mousemove_relative 0 -$h ;;
12     d) xdotool mousemove_relative 0 $h ;;
13     esac
14    

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26