feat(keyboard_locks): add Caps/Num/Scroll lock indicators#755
Open
noirbizarre wants to merge 1 commit into
Open
feat(keyboard_locks): add Caps/Num/Scroll lock indicators#755noirbizarre wants to merge 1 commit into
noirbizarre wants to merge 1 commit into
Conversation
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
Adds a new bar module displaying Caps/Num/Scroll Lock state, with click-to-toggle support.
/dev/input/event*via evdev (compositor-agnostic — works on both Hyprland and Niri).inputsubsystem./dev/uinputvirtual keyboard. If/dev/uinputcannot be opened, the display still works and clicks become no-ops with a single warning.enabled,visibility(ActiveOnlydefault /AlwaysVisible), and an optionaliconoverride (Nerd Font glyph or plain text). Default glyphs bundled (no extra font install required).Permissions
Both
/dev/input/event*and/dev/uinputare typically owned by theinputgroup, so a singlesudo usermod -aG input \"\$USER\"is enough. The user docs cover the manual udev-rule fallback for systems where/dev/uinputis not in theinputgroup by default.Testing
make check(fmt + cargo check + clippy-D warnings) is clean.bar_style = \"Islands\"and all three locks set toAlwaysVisible: glyphs render flush inside one island, click toggles the corresponding lock, LED state updates after the kernel synthesizes the press./dev/uinputaccess the display still updates from external lock presses; clicks log a single warning and no-op.Docs
website/docs/configuration/modules/keyboard.mdadds a new "Keyboard Locks" section. Versioned docs underwebsite/versioned_docs/are untouched per the project policy.Screenshots
Notes