diff options
| -rw-r--r-- | init.lua | 1 | ||||
| -rw-r--r-- | ufo.lua | 20 | 
2 files changed, 21 insertions, 0 deletions
| @@ -21,6 +21,7 @@ require('application_switch')  require('gdrive_mouseover_item')  require('mouse')  require('terminal_tab_hotkeys') +require('ufo')  hs.loadSpoon('WindowMode')  spoon.WindowMode:bindHotkeys({ mode = {{'ctrl', 'option'}, 'w'} }) @@ -0,0 +1,20 @@ +ufo_mode = hs.hotkey.modal.new({'ctrl', 'option'}, 'u', 'UFO') +ufo_mode:bind({'ctrl', 'option'}, 'u', 'UFO Off', function() +	ufo_mode:exit() +end) + +ufo_mode:bind({}, 'escape', 'UFO Off', function() +	ufo_mode:exit() +end) + +-- Reload the UFO Chrome extension +ufo_mode:bind({}, 'r', function() +	hs.eventtap.keyStroke({'command'}, '2') +	hs.eventtap.keyStroke({'shift'}, 'tab') +	hs.eventtap.keyStroke({}, 'tab') +	hs.eventtap.keyStroke({}, 'space') +	hs.eventtap.keyStroke({'command'}, '1') +	hs.eventtap.keyStroke({'command'}, 'r') + +	ufo_mode:exit() +end) | 
