summaryrefslogtreecommitdiff
path: root/mousemovekbn
diff options
context:
space:
mode:
authorCharlie Root <root@fishbox.fritz.box>2022-09-07 13:24:50 +0200
committerCharlie Root <root@fishbox.fritz.box>2022-09-07 13:24:50 +0200
commit85603a1c1fb027f5fa7f4c93a99fb7a180ceaf9e (patch)
tree02d9ac155ecf600b722dda2cd2afccd5d2150274 /mousemovekbn
parent6d8da13c138455c39c135998ce18b78de06d5d31 (diff)
Adding two new scripts that might be of use.
Diffstat (limited to 'mousemovekbn')
-rwxr-xr-xmousemovekbn23
1 files changed, 23 insertions, 0 deletions
diff --git a/mousemovekbn b/mousemovekbn
new file mode 100755
index 0000000..7d13d33
--- /dev/null
+++ b/mousemovekbn
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+case $1 in
+ l|L)
+ xdotool mousemove_relative -- -27 0;;
+ r|R)
+ xdotool mousemove_relative 27 0;;
+ u|U)
+ xdotool mousemove_relative -- 0 -27;;
+ d|D)
+ xdotool mousemove_relative 0 27;;
+ 1|1)
+ xdotool click 1;;
+ 2|2)
+ xdotool click 2;;
+ 3|3)
+ xdotool click 3;;
+ h|H)
+ xdotool mousedown 1;;
+ m|M)
+ xdotool mousedown 2;;
+esac
+