aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mouse.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/mouse.lua b/mouse.lua
index 1f6659b..4b9bb79 100644
--- a/mouse.lua
+++ b/mouse.lua
@@ -80,6 +80,11 @@ mouse_mode:bind({'ctrl', 'option', 'shift'}, 'm', 'Mouse Off', function()
mouse_mode:exit()
end)
+mouse_mode = hs.hotkey.modal.new({}, 'padclear', 'Mouse')
+mouse_mode:bind({}, 'padclear', 'Mouse Off', function()
+ mouse_mode:exit()
+end)
+
mouse_mode:bind({}, 'pad1', mouse.bottom_left(100), nil, mouse.bottom_left(100))
mouse_mode:bind({}, 'pad2', mouse.bottom(100), nil, mouse.bottom(100))
mouse_mode:bind({}, 'pad3', mouse.bottom_right(100), nil, mouse.bottom_right(100))