dot_testing/.config/sxhkd/mouse

51 lines
775 B
Plaintext
Raw Normal View History

2023-11-22 16:53:33 -06:00
# exit mouse mode
2023-12-05 21:43:38 -06:00
Escape
2023-11-15 21:04:50 -06:00
mode sxhkdrc
w
mode sxhkdrc
# send the escape key
]
xdotool key Escape
2023-11-22 16:53:33 -06:00
# move left
2023-11-15 21:04:50 -06:00
{ctrl +,shift +,_} h
xdotool mousemove_relative -- {-5,-50,-20} 0
2023-11-22 16:53:33 -06:00
# move down
2023-11-15 21:04:50 -06:00
{ctrl +,shift +,_} j
2023-11-21 11:09:16 -06:00
xdotool mousemove_relative -- 0 {5,50,20}
2023-11-15 21:04:50 -06:00
2023-11-22 16:53:33 -06:00
# move up
2023-11-15 21:04:50 -06:00
{ctrl +,shift +,_} k
2023-11-21 11:09:16 -06:00
xdotool mousemove_relative -- 0 {-5,-50,-20}
2023-11-15 21:04:50 -06:00
2023-11-22 16:53:33 -06:00
# move right
2023-11-15 21:04:50 -06:00
{ctrl +,shift +,_} l
xdotool mousemove_relative -- {5,50,20} 0
2023-11-22 16:53:33 -06:00
# left, middle, right click
2023-11-15 21:04:50 -06:00
{ctrl +,_} {a,s,d}
xdotool {mousedown,click} {1,2,3}
2023-11-22 16:53:33 -06:00
# let go of clicked button
2023-12-05 21:43:38 -06:00
q
2023-11-15 21:04:50 -06:00
xdotool mouseup 1; xdotool mouseup 2; xdotool mouseup 3
2023-12-05 21:43:38 -06:00
# move the mouse to the top of the window
g ; g
mousehelper top
# ditto for bottom
G
mousehelper bottom
# ditto for left
0
mousehelper left
# ditto for right
dollar
mousehelper right