New variables/text fields for NumLock and CapsLock.
Description
What I need
I’d like to have $NUMLOCK and $CAPSLOCK variables available in the config, which would take values "on" or "off".
Optionally, dedicated fields like numlock_text and capslock_text could be added — these would override or supplement the regular text field, allowing custom labels or characters for each state.
Why I need it
It can be difficult to rely solely on color changes to indicate NumLock or CapsLock status. Having text-based indicators would make it easier to confirm the current state, especially in setups where color differences are subtle or hard to distinguish.
Related issues / PRs
I’ve only found #182 , which implements numlock_color and capslock_color. However, this PR differs by adding colors rather than textual variables.
Feedback / Current progress
I’ve started working on adding $NUMLOCK and $CAPSLOCK variables to the configuration.
Right now, it seems that in CSeatManager::registerSeat, the timers don’t update when the NumLock or CapsLock state changes.
I’d appreciate feedback on whether this feature aligns with the maintainers’ vision for hyprlock and if there’s interest in a PR.
I hate the system with the timer force updates, but I have nothing against a $NUMLOCK and $CAPSLOCK variable.
I just wonder if it would be more versatile if you would have a method to hide/unhide a widget based on such states.
That way you could even have an image pop up as an indicator for keyboard states.