keyboard: Expand explanation for xkb_options

minus 2023-03-31 17:50:37 +00:00
parent 57feb2db62
commit 65664f9ffb

@ -189,6 +189,8 @@ See `man 7 xkeyboard-config` for options you can use with the `xkb_layout`, `xkb
User-specific settings such as symbols will be loaded from their respective directories in `~/.xkb/` or `$XDG_CONFIG_HOME/xkb/`. User-specific settings such as symbols will be loaded from their respective directories in `~/.xkb/` or `$XDG_CONFIG_HOME/xkb/`.
A lot of modifications are available through `xkb_options`. They can be found in `/usr/share/X11/xkb/symbols/{altwin,capslock,compose,ctrl}` and the respective option name in `/usr/share/X11/xkb/rules/base`.
**Examples**: **Examples**:
* Make caps lock work as escape: `xkb_options caps:escape` * Make caps lock work as escape: `xkb_options caps:escape`
@ -196,6 +198,7 @@ User-specific settings such as symbols will be loaded from their respective dire
* Make caps lock work as control: `xkb_options ctrl:nocaps` * Make caps lock work as control: `xkb_options ctrl:nocaps`
* Make caps lock work as additional control `xkb_options caps:ctrl_modifier` * Make caps lock work as additional control `xkb_options caps:ctrl_modifier`
* Swap left alt and super, *and* set caps lock to escape: `xkb_options altwin:swap_lalt_lwin,caps:escape` * Swap left alt and super, *and* set caps lock to escape: `xkb_options altwin:swap_lalt_lwin,caps:escape`
* Make the menu key work as additional super: `xkb_options altwin:menu_win`
Note that to trigger several options, you need to list them separated with a comma, e.g. `xkb_options caps:escape,altwin:swap_lalt_lwin`; if you instead write several `xkb_options`-lines, only the last one will take effect. Note that to trigger several options, you need to list them separated with a comma, e.g. `xkb_options caps:escape,altwin:swap_lalt_lwin`; if you instead write several `xkb_options`-lines, only the last one will take effect.