Skip to content

Commit 35439e2

Browse files
committed
Update README.md
* Added a KDE Settings kxkbrc file example for Wayland * An example like this one was kindly provided by Bojdar Marinov * Switched other examples from misc:cmk_curl_dh to the cmk_ed_dh variant
1 parent e991744 commit 35439e2

1 file changed

Lines changed: 26 additions & 5 deletions

File tree

README.md

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Wayland & Friends
7777
-----------------
7878
Wayland has a somewhat different tack: It uses xkb-data files, but not an X server. So the setkb script won't work there, but the BigBag as such will.
7979

80-
It depends on which Wayland Compositor you're using. See its docs for more info?
80+
It depends on which Wayland Compositor you're using. Sorry, but I don't know them all. See its docs for more info?
8181

8282
For the popular Sway compositor, add a piece like this example to your `~/.config/sway/config` file:
8383
```
@@ -95,21 +95,42 @@ input {
9595
kb_rules=evdev
9696
kb_model=pc105awide
9797
kb_layout=us
98-
kb_variant=cmk_ed_us
99-
kb_options=misc:extend,lv5:caps_switch_lock,misc:cmk_curl_dh,compose:menu
98+
kb_variant=cmk_ed_dh
99+
kb_options=misc:extend,lv5:caps_switch_lock,compose:menu
100100
repeat_rate=40
101101
repeat_delay=200
102102
}
103103
```
104104
The repeat settings are of course optional. Some like a higher repeat rate and a lower delay, and this is how to get that.
105105

106+
Here's a KDE Settings `~/.config/kxkbrc` file. It can be set via the Settings GUI, or edited directly:
107+
```
108+
[$Version]
109+
update_info=kxkb_variants.upd:split-variants,kxkb.upd:remove-empty-lists,kxkb.upd:add-back-resetoptions
110+
111+
[Layout]
112+
DisplayNames=,
113+
LayoutList=us,us
114+
LayoutLoopCount=-1
115+
Model=pc104awide
116+
Options=grp:alt_shift_toggle,grp:win_space_toggle,caps:backspace,lv3:ralt_switch_multikey,compose:menu
117+
ResetOldOptions=true
118+
ShowFlag=false
119+
ShowLabel=true
120+
ShowLayoutIndicator=true
121+
ShowSingle=true
122+
Use=true
123+
VariantList=cmk_ed_dh,
124+
```
125+
This one uses Caps as a Backspace. See the example above to upgrade it to an Extend key.
126+
106127
In NixOS without Wayland/Sway, [services.xserver](https://nixos.wiki/wiki/Keyboard_Layout_Customization) should work:
107128
```
108129
services.xserver = {
109130
layout = "us";
110-
xkbVariant = "cmk_ed_us";
131+
xkbVariant = "cmk_ed_dh";
111132
xkbModel = "pc105awide";
112-
xkbOptions = "misc:extend,lv5:caps_switch_lock,misc:cmk_curl_dh,compose:menu";
133+
xkbOptions = "misc:extend,lv5:caps_switch_lock,compose:menu";
113134
};
114135
```
115136
To get the xserver layout in your console as well, use `console.useXkbConfig` in your `configuration.nix` file.

0 commit comments

Comments
 (0)