From b6e2be3b7aedcfaf352b45f612ebf775c480c60c Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Fri, 14 Jun 2019 20:02:59 +0200 Subject: mouse: Activate mode with num lock Add an additional mode switch with the num lock or 'clear' key. --- mouse.lua | 5 +++++ 1 file changed, 5 insertions(+) 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)) -- cgit v1.2.3