keyboard - bunnyamin/bunnix GitHub Wiki

Custom shortcuts

  • Windows manager, for example Awesome.
  • xbindkeys

Identify key codes

  • xinput --test <"id" of the "Virtual core keyboard">

Load keymap

Load keys

# 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 ...>

Xorg

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

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.

Models

  • Available models localectl list-x11-keymap-models

Key-chrone

  1. Create a udev rule. For example:
    • /etc/udev/rules.d/90-keychron.rules
  2. Content: KERNEL=="hidraw*", ATTRS{idVendor}=="3434", ATTRS{idProduct}=="02a1", MODE="600"
  3. Change "mode" to 666
  4. Enable changes udevadm trigger --type=devices --sysname-match=hidraw[0-9]
  5. Connect to keychron and configure as needed
  6. Change "mode" back to 600
  7. Enable changes udevadm trigger --type=devices --sysname-match=hidraw[0-9]
⚠️ **GitHub.com Fallback** ⚠️