aboutsummaryrefslogtreecommitdiffstats
path: root/init.lua
diff options
context:
space:
mode:
authorTeddy Wing2019-06-13 19:35:18 +0200
committerTeddy Wing2019-06-15 20:31:14 +0200
commitec4092a454cbacf4083115b8592d9909ce06b33e (patch)
treee3bd3d1430beed5f031876bfb17d256fe1160018 /init.lua
parentfef1cb458efd7d0b414cdc477517cddcc583c696 (diff)
downloaddothammerspoon-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.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 4760509..9f98b0f 100644
--- a/init.lua
+++ b/init.lua
@@ -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)