From decabccb24214d5c93f5bf8b17ebc21244eb733a Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Fri, 15 Nov 2019 19:54:05 +0100 Subject: init: Fix condition in F8 mapping We want to restore the brightness when the external monitor is connected. Probably wrote the inverse condition in order to test it without the monitor connected and forgot to inverse it. --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'init.lua') diff --git a/init.lua b/init.lua index 4d7d713..d82012b 100644 --- a/init.lua +++ b/init.lua @@ -36,7 +36,7 @@ hs.hotkey.bind({}, 'f8', function() -- Counteract a Catalina bug where sometimes inverting screen colours with -- an external monitor connected makes the internal monitor's brightness -- change to 100%. - if hs.screen.primaryScreen():name() ~= 'G247HL' then + if hs.screen.primaryScreen():name() == 'G247HL' then cbb_brightness_restore() end end) -- cgit v1.2.3