aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2022-12-27 23:21:45 +0200
committersrdusr <trevorgray@srdusr.com>2022-12-27 23:21:45 +0200
commit3cbbdd0224b6902cbc8133eb746bcd497b0f9ba3 (patch)
tree937af184e6ceffbfbb0d0d20f89965f1b8146731
parent28f48f90e2217aad6708a12e411a3180a22bc177 (diff)
downloaddotfiles-3cbbdd0224b6902cbc8133eb746bcd497b0f9ba3.tar.gz
dotfiles-3cbbdd0224b6902cbc8133eb746bcd497b0f9ba3.zip
Add more xdotool keys to control mouse clicks/selection etc...
-rwxr-xr-x.config/sxhkd/sxhkdrc40
1 files changed, 39 insertions, 1 deletions
diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc
index f5a914f..53d1825 100755
--- a/.config/sxhkd/sxhkdrc
+++ b/.config/sxhkd/sxhkdrc
@@ -295,9 +295,10 @@ XF86Audio{Raise,Lower}Volume
alt + {Right,Left}
pulsemixer --change-volume {+,-}10
+
#---------------------------------------------------------------
#
-# Xdotool
+# Xdotool keys
#
# Move mouse cursor north, west, south, east
@@ -308,6 +309,43 @@ alt + {w,a,s,d}
shift + alt + {q,e,a,d}
xdotool mousemove_relative --sync {-- -24 -24, -- 24 -24, -- -24 24,-- 24 24}
+# Emulate left mouse click
+alt + i
+ xdotool click --clearmodifiers 1
+
+# Emulate left mouse click select
+alt + shift + i
+ xdotool mousedown 1 sleep 0.5 mousemove_relative --sync {-- -8 0, 0 8, -- 0 -8, 8 0} sleep 0.5 mouseup 1
+
+# Emulate mouse right click
+alt + o
+ xdotool click --clearmodifiers 3
+
+# Emulate mouse scroll up
+alt + n
+ xdotool click --clearmodifiers 4
+
+# Emulate mouse scroll down
+alt + m
+ xdotool click --clearmodifiers 5
+
+# Emulate mouse scroll button
+alt + p
+ xdotool click --clearmodifiers 2
+
+# Emulate home key
+alt + ctrl + Left
+ xdotool keyup Left key --clearmodifiers Home
+
+# Emulate end key
+alt + ctrl + Right
+ xdotool keyup Right key --clearmodifiers End
+
+# Emulate delete key
+~alt + BackSpace
+ xte 'keyup Alt_L' 'key Delete' 'keydown Alt_L'
+
+
#---------------------------------------------------------------
#
# Programs