From ec4092a454cbacf4083115b8592d9909ce06b33e Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Thu, 13 Jun 2019 19:35:18 +0200 Subject: Add 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. --- init.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'init.lua') 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) -- cgit v1.2.3