Skip to content

Load custom xkb keymap #3999

@Pu-Anlai

Description

@Pu-Anlai

I use a custom keyboard layout defined in ~/.config/xkb/custom.xkb which I upload to X using xkbcomp ~/.config/xkb/custom.xkb $DISPLAY. Is there any way to do the same in Sway? I tried input * xkb_layout ~/.config/xkb/custom.xkb but that didn't work.

I guess I could register my layout globally and then just load it with input * xkb_layout custom but a) I'd like to do this from within my home folder and b) making a layout available like that is unexpectedly complicated; I edited both the .lst and .xml files in /usr/share/X11/xkb/rules and that didn't work. Those changes could also be gone with the next system update.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or incremental improvement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions