KBMAP(1)KBMAP(1)
NAME
kbmap, kbremap – show a list of available keyboard maps and switch between them.
SYNOPSIS
kbmap
[
file...
]
kbremap
[
-m
mod
]
[
-k
scancode
]
map1 map2 ...
DESCRIPTION
Kbmap
shows a single column consisting of the names of keyboard maps for different
alphabets available on the system. With no arguments
kbmap
will look for files in
/sys/lib/kbmap.
Clicking the right mouse button will highlight the entry and force the
keyboard mapping defined in the corresponding file to become current
for the system; typing ’q’ quits.
Kbremap
reads keyboard events from standard input, filters out a shortcut
to change the keyboard map, and writes the result to standard
output. The shortcut cycles through the keyboard maps provided
as arguments. By default this shortcut is mapped to
Ctrl
+
Space.
The
-m
and
-k
flags change the default mod and key used respectfully.
Mod
is given as a numeric shift layer as understood by
kbdfs(8).
Kbmap
and
kbremap
require that the file
/dev/kbmap
served by
kbdfs(8)
exists and is writable.
EXAMPLES
Use
kbremap
with
/dev/kbdtap
provided by
rio(4):
kbremap us de uk </dev/kbdtap >/dev/kbdtap
FILES
/sys/lib/kbmap/*
SOURCE
/sys/src/cmd/kbmap.c
/sys/src/cmd/kbremap.c
SEE ALSO
kbdfs(8)