aboutsummaryrefslogtreecommitdiffstats
path: root/catalina_invert_screen_bullshit.lua
diff options
context:
space:
mode:
authorTeddy Wing2021-03-07 19:23:19 +0100
committerTeddy Wing2021-03-07 19:23:19 +0100
commit3135531426cfc2abc057ad085e39022617cd8689 (patch)
tree23f8b2fec5f5ed19ac3ac279bc12e997da2f19fe /catalina_invert_screen_bullshit.lua
parent487ff34d75b034814a9b8bdd352e2ede38395c25 (diff)
downloaddothammerspoon-3135531426cfc2abc057ad085e39022617cd8689.tar.bz2
Try correcting Catalina invert screen colours
Tried setting up a correction for Mac OS X 10.15 Catalina's invert screen colours bug on February 7, 2020. I never committed it because I never got it working. Committing the work here for reference. It's supposed to reactivate inverted colours using the Accessibility Options panel.
Diffstat (limited to 'catalina_invert_screen_bullshit.lua')
-rw-r--r--catalina_invert_screen_bullshit.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/catalina_invert_screen_bullshit.lua b/catalina_invert_screen_bullshit.lua
new file mode 100644
index 0000000..d473cf4
--- /dev/null
+++ b/catalina_invert_screen_bullshit.lua
@@ -0,0 +1,15 @@
+-- If F8 is pressed twice in under X seconds, do:
+-- Press Apple-Option-F5, Shift-Tab 5 times, Space, Enter
+
+function cisb_invert_screen()
+ hs.eventtap.keyStroke({'cmd', 'option'}, 'F5')
+
+ for _ = 1, 5 do
+ hs.eventtap.keyStroke({'shift'}, 'tab')
+ end
+
+ hs.eventtap.keyStroke({}, 'space')
+ hs.eventtap.keyStroke({}, 'return')
+end
+
+hs.hotkey.bind({'shift'}, 'F8', cisb_invert_screen)