Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/strogonoff/macos-grayscale
An executable that forces display to grayscale on macOS.
https://github.com/strogonoff/macos-grayscale
accessibility macos
Last synced: 8 days ago
JSON representation
An executable that forces display to grayscale on macOS.
- Host: GitHub
- URL: https://github.com/strogonoff/macos-grayscale
- Owner: strogonoff
- License: cc-by-sa-4.0
- Created: 2020-05-22T22:00:39.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-06-18T06:00:30.000Z (over 4 years ago)
- Last Synced: 2025-01-18T21:04:27.009Z (10 days ago)
- Topics: accessibility, macos
- Language: C
- Homepage:
- Size: 25.4 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
An executable that forces display to grayscale on macOS.
This repo exists so that I don’t forget it next time I set up a Mac.
Based on
`StackExchange post by Lucas Wiman `_
(see also `this one `_
on enabling grayscale effect based on current app).Licensed under CC BY-SA 4.0 like StackExchange requires.
Why
===* Works together with color inversion.
* Can be assigned a keyboard shortcut.
As of Catalina, the above is impossible with native macOS
accessibility options.Usage
=====To compile, run ``make toggle-grayscale``.
To assign it a shortcut:
1. Copy compiled binary to a sane location
2. Using Automator, create a workflow (quick action)
which receives no input in any application.
In it, add “Run AppleScript” action with contents like::do shell script "~/bin/toggle-grayscale"
3. Assign preferred shortcut to that action in keyboard preferences.
Tested with
===========OS: macOS Catalina 10.15.5
Compiler::
Apple clang version 11.0.3 (clang-1103.0.32.59)
Target: x86_64-apple-darwin19.4.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/binKnown issues
============Turning grayscale on and off this way does not toggle the Accessibility checkbox in Preferences.
Losing grayscale when switching to another display: `Issue `_.