Commit | Line | Data |
---|---|---|
21c4e167 H |
1 | #!/usr/bin/perl |
2 | ||
3 | $half = 1600; | |
4 | ||
5 | $line = `xwarppointer get`; | |
6 | chomp $line; | |
7 | @c = split(/ /, $line); | |
8 | ||
9 | if ($c[0] > $half) { | |
10 | $c[0] -= $half; | |
11 | } else { | |
12 | $c[0] += $half; | |
13 | } | |
14 | ||
15 | `xwarppointer abspos $c[0] .`; |