diff options
author | Teddy Wing | 2019-06-13 19:35:18 +0200 |
---|---|---|
committer | Teddy Wing | 2019-06-15 20:31:14 +0200 |
commit | ec4092a454cbacf4083115b8592d9909ce06b33e (patch) | |
tree | e3bd3d1430beed5f031876bfb17d256fe1160018 /init.lua | |
parent | fef1cb458efd7d0b414cdc477517cddcc583c696 (diff) | |
download | dothammerspoon-ec4092a454cbacf4083115b8592d9909ce06b33e.tar.bz2 |
Add <F8> shotcut to invert screen colours
Makes it a bit quicker with a single key instead of a two-handed
shortcut with modifiers. Allows me to keep the existing shortcut.
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -29,3 +29,9 @@ hs.hotkey.bind({'ctrl', 'alt'}, 'z', function() f.h = hs.screen.mainScreen():frame().h win:setFrame(f) end) + + +-- Shortcut to invert screen colours +hs.hotkey.bind({}, 'f8', function() + hs.eventtap.keyStroke({'cmd', 'option', 'ctrl'}, '8') +end) |