@@ -77,7 +77,7 @@ Wayland & Friends
7777-----------------
7878Wayland 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
8282For 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```
104104The 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+
106127In NixOS without Wayland/Sway, [ services.xserver] ( https://nixos.wiki/wiki/Keyboard_Layout_Customization ) should work:
107128```
108129services.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```
115136To get the xserver layout in your console as well, use ` console.useXkbConfig ` in your ` configuration.nix ` file.
0 commit comments