From 6d5076609de0f891216160e114bb5733aaf6c3f8 Mon Sep 17 00:00:00 2001 From: stupidcomputer Date: Mon, 18 Nov 2024 17:44:29 -0600 Subject: [PATCH] add some mouse keybindings to sxhkd --- .config/sxhkd/sxhkdrc | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index 5ac2372..255832f 100644 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -96,3 +96,26 @@ shift + Insert # phone specific -- send the escape key since we can't use it super + b; [ xdotool key Escape + +# mouse keybindings on the keypad +# move left +{ctrl +,shift +} KP_6 + xdotool mousemove_relative -- {5,50} 0 + +# move down +{ctrl +,shift +} KP_2 + xdotool mousemove_relative -- 0 {5,50} + +# move up +{ctrl +,shift +} KP_8 + xdotool mousemove_relative -- 0 {-5,-50} + +# move right +{ctrl +,shift +} KP_4 + xdotool mousemove_relative -- {-5,-50} 0 + +KP_Divide + xdotool click 1 + +KP_Subtract + xdotool click 2