aboutsummaryrefslogtreecommitdiffstats
path: root/init.lua
diff options
context:
space:
mode:
authorTeddy Wing2019-11-15 19:54:05 +0100
committerTeddy Wing2019-11-15 19:54:05 +0100
commitdecabccb24214d5c93f5bf8b17ebc21244eb733a (patch)
tree584c88d46d6631fd1f0b33616306e238f3708e9b /init.lua
parentc24dd5d3a0d9c38d52cd86f391315c066f9011ea (diff)
downloaddothammerspoon-decabccb24214d5c93f5bf8b17ebc21244eb733a.tar.bz2
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.
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua2
1 files changed, 1 insertions, 1 deletions
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)