From 9b03e41acfcf22e1ba3449a03a693996bb204bdc Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Thu, 4 Mar 2021 23:54:54 +0100 Subject: Reset colours to their original state Found an easy function to remove the colour inversion. Now I need to enable toggling between the two with a keyboard shortcut. --- main.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.m b/main.m index 6613b2a..9ea3d37 100644 --- a/main.m +++ b/main.m @@ -30,7 +30,9 @@ int main(int argc, const char * argv[]) { } } - for (;;) {} + sleep(4); + + CGDisplayRestoreColorSyncSettings(); return 0; } -- cgit v1.2.3