diff options
author | Teddy Wing | 2021-03-07 19:23:19 +0100 |
---|---|---|
committer | Teddy Wing | 2021-03-07 19:23:19 +0100 |
commit | 3135531426cfc2abc057ad085e39022617cd8689 (patch) | |
tree | 23f8b2fec5f5ed19ac3ac279bc12e997da2f19fe | |
parent | 487ff34d75b034814a9b8bdd352e2ede38395c25 (diff) | |
download | dothammerspoon-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.
-rw-r--r-- | catalina_invert_screen_bullshit.lua | 15 | ||||
-rw-r--r-- | init.lua | 1 |
2 files changed, 16 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) @@ -19,6 +19,7 @@ require("hs.ipc") require('application_switch') require('catalina_brightness_bullshit') +require('catalina_invert_screen_bullshit') require('gdrive_mouseover_item') require('mouse') require('terminal_tab_hotkeys') |