lk/hardware/keyboard/keyboard.md

47 lines
968 B
Markdown
Raw Normal View History

2022-01-16 18:20:39 +00:00
---
title: "keyboard"
2022-10-22 01:16:18 +00:00
tags: [ "Documentation", "keyboard" ]
2022-01-16 18:20:39 +00:00
---
2022-10-22 01:16:18 +00:00
# Set Layout with X Display
2020-01-02 00:04:35 +00:00
Set layout to British English.
> setxkbmap -layout gb
2021-05-15 14:41:45 +00:00
Or Polish with:
> setxkbmap -layout pl
2020-01-02 00:04:35 +00:00
| Language | short |
|:--------|:------|
| Polish | pl |
| Serbian | rs |
Set 'alt + shift', as the command which cycles through the British English, Polish and Serbian keyboard layout.
> setxkbmap -layout gb,pl,rs -option grp:alt_shift_toggle
2022-06-05 09:14:48 +00:00
## Alt_GR
Remap, e.g., the right Windows key, to Alt_Gr.
```
key <RWIN> {[ ISO_Level3_Shift ]};
```
2022-10-22 01:16:18 +00:00
# Set Global Keymap
Copy your keymap, e.g. if it's polish-1, then:
> cp /usr/share/kbd/keymaps/i386/qwerty/pl1.map.gz /usr/share/kbd/keymaps/*custom*.map.gz
Then change that map:
> sudo -e /usr/share/kbd/keymaps/custom.map.gz
Change the default keyboard mapping to the custom map:
> echo 'KEYMAP="/usr/share/kbd/keymaps/custom/*custom*.map.gz"' | sudo tee /etc/vconsole.conf
Reboot to have changes take effect.