From 28f48f90e2217aad6708a12e411a3180a22bc177 Mon Sep 17 00:00:00 2001 From: srdusr Date: Tue, 27 Dec 2022 23:11:12 +0200 Subject: Add xdotool keys to control mouse cursor via keyboard --- .config/sxhkd/sxhkdrc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index 7b6704a..f5a914f 100755 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -295,6 +295,18 @@ XF86Audio{Raise,Lower}Volume alt + {Right,Left} pulsemixer --change-volume {+,-}10 +#--------------------------------------------------------------- +# +# Xdotool +# + +# Move mouse cursor north, west, south, east +alt + {w,a,s,d} + xdotool mousemove_relative --sync {-- 0 -24, -- -24 0, 0 24, 24 0} + +# Move mouse cursor diagonally north-west, north-east, south-west, south-east +shift + alt + {q,e,a,d} + xdotool mousemove_relative --sync {-- -24 -24, -- 24 -24, -- -24 24,-- 24 24} #--------------------------------------------------------------- # -- cgit v1.2.3