Add an opt-in setting to hide the Caps Lock indicator - #89
Open
manovotny wants to merge 2 commits into
Open
Conversation
macOS shows a Caps Lock indicator in text fields whenever Caps Lock is on, which is constant noise for Capsomnia users who keep Caps Lock on for hours. The new Advanced Settings toggle suppresses it through the system redesigned_text_cursor feature-flag override, shows a reminder until the required restart happens, and clears the reminder if the setting is toggled back first. The privileged helper gains argument-restricted indicator-hide and indicator-show modes that edit only /Library/Preferences/FeatureFlags/Domain/UIKit.plist, preserve unrelated flags, and delete the file when nothing else remains. The uninstaller restores the macOS default. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…ndicator-toggle-8775ee # Conflicts: # CHANGELOG.md # README.ja.md # README.ko.md # README.md # README.zh-Hans.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
macOS shows a Caps Lock indicator in text fields whenever Caps Lock is on. For Capsomnia users that's constant noise — Caps Lock stays on for hours, and the indicator appears even with "Prevent all-caps typing" enabled.
This adds an opt-in "Hide the Caps Lock indicator" toggle to Advanced Settings that suppresses it through the system
redesigned_text_cursorfeature-flag override.The override only takes effect after a restart, so the toggle shows a localized reminder until the current boot reflects the on-disk state. Toggling back before restarting clears the reminder, and the state survives app relaunches by comparing against a
kern.boottimesnapshot.Changes
indicator-hideandindicator-showmodes. They edit only/Library/Preferences/FeatureFlags/Domain/UIKit.plist, preserve unrelated flags in that file, and delete it when nothing else remains. The sudoers rules ininstall.shand the pkg postinstall stay argument-exact, now five commands instead of three.Notes
./scripts/install.shor the next pkg to pick up the new sudoers entries; until then the toggle reverts and logs the denied helper call.