memory-leaks

Still reachable: lots of words in many pages.
git clone https://git.kevinlegouguec.net/memory-leaks
Log | Files | Refs | README | LICENSE

console.org (777B)


      1 * Keyboard settings
      2 Debian's =console-setup= package provides =setupcon=, a neat utility
      3 that reads XKB settings from =/etc/default/keyboard= and translates
      4 them to whatever format the Linux console understands.
      5 
      6 To get something similar to =ctrl:nocaps= on distros that do not
      7 feature this utility:
      8 #+begin_src sh
      9 $ localectl | grep "VC Keymap"  # To spot the current KEYMAP.
     10 $ sudo mkdir -p /usr/local/share/kbd/keymaps
     11 # KEYMAPS_DIR: depending on the distro:
     12 # - /usr/share/kbd/keymaps/xkb
     13 # - /lib/kbd/keymaps/xkb
     14 $ gunzip --stdout ${KEYMAPS_DIR}/${KEYMAP}.map.gz   |
     15     sed 's/^keycode 58 = .*$/keycode 58 = Control/' |
     16     sudo tee /usr/local/share/kbd/keymaps/${KEYMAP}-nocaps.map
     17 # In /etc/vconsole.conf, change KEYMAP to ^this^ absolute filename.
     18 # Reboot.
     19 #+end_src