diff options
author | Teddy Wing | 2019-06-14 20:02:59 +0200 |
---|---|---|
committer | Teddy Wing | 2019-06-15 20:31:33 +0200 |
commit | b6e2be3b7aedcfaf352b45f612ebf775c480c60c (patch) | |
tree | 9ad98daa946de123443607173f0385bf487c1a7b /mouse.lua | |
parent | 6d78336fd15c3add86ade3ac0c9c53079e22abb1 (diff) | |
download | dothammerspoon-b6e2be3b7aedcfaf352b45f612ebf775c480c60c.tar.bz2 |
mouse: Activate mode with num lock
Add an additional mode switch with the num lock or 'clear' key.
Diffstat (limited to 'mouse.lua')
-rw-r--r-- | mouse.lua | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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)) |