Skip to content

Preserve num lock state when loading custom keymap#3411

Open
mgabor3141 wants to merge 2 commits intoniri-wm:mainfrom
mgabor3141:feat/numlock-with-xkb
Open

Preserve num lock state when loading custom keymap#3411
mgabor3141 wants to merge 2 commits intoniri-wm:mainfrom
mgabor3141:feat/numlock-with-xkb

Conversation

@mgabor3141
Copy link
Copy Markdown

@mgabor3141 mgabor3141 commented Feb 7, 2026

Normally when you set a custom keymap, the numlock setting stops working. This patch fixes that.

Example config:

input {
    keyboard {
        xkb {
            // layout "us"
            file "~/.config/xkb/keymap.xkb"
        }
        numlock // Enable numlock on startup
    }
}

Fixes #3575

@Sempyos Sempyos added area:input Keyboard, mouse, touchpad, tablet, gestures, pointer pr kind:fix Issue fixes, code cleanups labels Mar 12, 2026
@Sonlis
Copy link
Copy Markdown

Sonlis commented Mar 18, 2026

DId you test it ? I ran it without looking at the code, and the problem persists 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:input Keyboard, mouse, touchpad, tablet, gestures, pointer pr kind:fix Issue fixes, code cleanups

Projects

None yet

Development

Successfully merging this pull request may close these issues.

set_xkb_file does not preserve NumLock state (unlike set_xkb_config)

3 participants