LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

mk_modmap

translate a Linux keytable file into an xmodmap file

TLDR

Translate a Linux console keymap to xmodmap format
$ mk_modmap [keymap_file]
copy
Save the output to a file
$ mk_modmap [keymap_file] > [keymap.xmodmap]
copy
Translate with verbose output
$ mk_modmap -v [keymap_file]
copy
Dump the current keymap and convert it
$ dumpkeys | mk_modmap
copy

SYNOPSIS

mk_modmap [-v] keymapfile_

DESCRIPTION

mk_modmap translates a Linux console keytable file into a file that can be parsed by xmodmap and used within X11. The translated result is written to standard output. It requires the X11 header files to be installed at build time.The tool is part of the xkeycaps package. Modern X.Org versions initialize their keymap from the active Linux keymap, so mk_modmap is rarely needed on contemporary systems.

PARAMETERS

-v

Verbose output during conversion.
keymapfile_
A Linux console keytable file (as produced by `dumpkeys` or shipped under `/usr/share/keymaps`).

INSTALL

sudo apt install kbd
copy
sudo dnf install kbd
copy
sudo pacman -S kbd
copy
sudo zypper install kbd
copy
nix profile install nixpkgs#kbd
copy

CAVEATS

X11 specific. Output for xmodmap. Not all console key actions have a direct xmodmap equivalent. Largely obsolete on modern X.Org and Wayland setups.

HISTORY

mk_modmap ships with xkeycaps, originally written by Jamie Zawinski. It dates to early X11/Linux days when keyboard layouts were configured separately for the console and X server.

SEE ALSO

xmodmap(1), xev(1), setxkbmap(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid