keyboard - bunnyamin/bunnix GitHub Wiki
- Windows manager, for example Awesome.
xbindkeys
xinput --test <"id" of the "Virtual core keyboard">
# loadkeys <keymap>
keymap = usr/share/kbd/keymaps/<isa>/<layout>/*[.map.gz]- Available keymaps
localectl list-keymaps
Example
isa = <amiga, atari, i386, mac, ppc, sun>i386/layout = <azerty, bepo, carpalx, colemak, dvorak, fgGIod, olpc, qwerty, qwertz>i386/qwerty = <... sv-latin1 ...>
Temporarily set the keyboard layout for the current X session.
setxkbmap [-model xkb_model] [-layout xkb_layout] [-variant xkb_variant] [-option xkb_options]
Permanently set the keyboard layout
ISO 3166-1 alpha-2 code- Available layouts
localectl list-x11-keymap-layouts - The source file
/usr/share/X11/xkb/rules/evdev.xml/xkbConfigRegistry/layoutList/layout[0-]/configItem/name.
- Available models
localectl list-x11-keymap-models
- Create a udev rule. For example:
/etc/udev/rules.d/90-keychron.rules
- Content:
KERNEL=="hidraw*", ATTRS{idVendor}=="3434", ATTRS{idProduct}=="02a1", MODE="600" - Change "mode" to
666 - Enable changes
udevadm trigger --type=devices --sysname-match=hidraw[0-9] - Connect to keychron and configure as needed
- Change "mode" back to
600 - Enable changes
udevadm trigger --type=devices --sysname-match=hidraw[0-9]