alpine-linuxkeyboard-layout

How-To get the current keyboard layout on Alpine Linux?


We work on many machines, direct or via SSH, not on all machines we are using the same keyboard layout. I found solutions for ArchLinux and Ubuntu (and Windows), but no solution works on Alpine-Linux.

How can I get the current keyboard-layout on Alpine-Linux? On Terminal (/bin/ash) or via script?

The layout can configured with setup-keymap us us but I found no solution to get the current layout back.


Solution

  • The currently used keymap is in the configuration file /etc/conf.d/loadkmap