Merge pull request #68310 from rnhmjoj/xkb
services.xserver.extraLayouts fixes
This commit is contained in:
commit
c8c04bc96c
|
@ -279,6 +279,12 @@ xkb_symbols "media"
|
||||||
<programlisting>
|
<programlisting>
|
||||||
<xref linkend="opt-services.xserver.displayManager.sessionCommands"/> = "setxkbmap -keycodes media";
|
<xref linkend="opt-services.xserver.displayManager.sessionCommands"/> = "setxkbmap -keycodes media";
|
||||||
</programlisting>
|
</programlisting>
|
||||||
|
<para>
|
||||||
|
If you are manually starting the X server, you should set the argument
|
||||||
|
<literal>-xkbdir /etc/X11/xkb</literal>, otherwise X won't find your layout files.
|
||||||
|
For example with <command>xinit</command> run
|
||||||
|
<screen><prompt>$ </prompt>xinit -- -xkbdir /etc/X11/xkb</screen>
|
||||||
|
</para>
|
||||||
<para>
|
<para>
|
||||||
To learn how to write layouts take a look at the XKB
|
To learn how to write layouts take a look at the XKB
|
||||||
<link xlink:href="https://www.x.org/releases/current/doc/xorg-docs/input/XKB-Enhancing.html#Defining_New_Layouts">
|
<link xlink:href="https://www.x.org/releases/current/doc/xorg-docs/input/XKB-Enhancing.html#Defining_New_Layouts">
|
||||||
|
|
|
@ -158,7 +158,10 @@ in
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
services.xserver.xkbDir = "${pkgs.xkb_patched}/etc/X11/xkb";
|
services.xserver = {
|
||||||
|
xkbDir = "${pkgs.xkb_patched}/etc/X11/xkb";
|
||||||
|
exportConfiguration = config.services.xserver.displayManager.startx.enable;
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -468,7 +468,7 @@ self: super:
|
||||||
<model>
|
<model>
|
||||||
<configItem>
|
<configItem>
|
||||||
<name>${name}</name>
|
<name>${name}</name>
|
||||||
<_description>${layout.description}</_description>
|
<description>${layout.description}</description>
|
||||||
<vendor>${layout.description}</vendor>
|
<vendor>${layout.description}</vendor>
|
||||||
</configItem>
|
</configItem>
|
||||||
</model>
|
</model>
|
||||||
|
@ -484,8 +484,8 @@ self: super:
|
||||||
<layout>
|
<layout>
|
||||||
<configItem>
|
<configItem>
|
||||||
<name>${name}</name>
|
<name>${name}</name>
|
||||||
<_shortDescription>${name}</_shortDescription>
|
<shortDescription>${name}</shortDescription>
|
||||||
<_description>${layout.description}</_description>
|
<description>${layout.description}</description>
|
||||||
<languageList>
|
<languageList>
|
||||||
${concatMapStrings (lang: "<iso639Id>${lang}</iso639Id>\n") layout.languages}
|
${concatMapStrings (lang: "<iso639Id>${lang}</iso639Id>\n") layout.languages}
|
||||||
</languageList>
|
</languageList>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user