aboutsummaryrefslogtreecommitdiff
path: root/en_US.ISO8859-1/books/handbook/x11
diff options
context:
space:
mode:
authorWarren Block <wblock@FreeBSD.org>2015-10-16 00:39:04 +0000
committerWarren Block <wblock@FreeBSD.org>2015-10-16 00:39:04 +0000
commit61dc685a766c1bf8c6bc23d219bce856b1ab1d03 (patch)
tree31e56e42754c7ace84df7859189c63757e464a9f /en_US.ISO8859-1/books/handbook/x11
parent18020b068cfbc0696c3f093da781c42d6c3f6e4d (diff)
downloaddoc-61dc685a766c1bf8c6bc23d219bce856b1ab1d03.tar.gz
doc-61dc685a766c1bf8c6bc23d219bce856b1ab1d03.zip
Add a multi-layout keyboard example courtesy of ak@.
Notes
Notes: svn path=/head/; revision=47581
Diffstat (limited to 'en_US.ISO8859-1/books/handbook/x11')
-rw-r--r--en_US.ISO8859-1/books/handbook/x11/chapter.xml22
1 files changed, 21 insertions, 1 deletions
diff --git a/en_US.ISO8859-1/books/handbook/x11/chapter.xml b/en_US.ISO8859-1/books/handbook/x11/chapter.xml
index ef5640de91..2535fe1546 100644
--- a/en_US.ISO8859-1/books/handbook/x11/chapter.xml
+++ b/en_US.ISO8859-1/books/handbook/x11/chapter.xml
@@ -662,7 +662,7 @@ EndSection</programlisting>
the <literal>oss</literal> variant.</para>
<example>
- <title>Setting Keyboard Layout</title>
+ <title>Setting A Keyboard Layout</title>
<para><filename>/usr/local/etc/X11/xorg.conf.d/keyboard-fr-oss.conf</filename></para>
@@ -674,6 +674,26 @@ EndSection</programlisting>
Option "XkbVariant" "oss"
EndSection</programlisting>
</example>
+
+ <example>
+ <title>Setting Multiple Keyboard Layouts</title>
+
+ <para>Set United States, Spanish, and Ukrainian
+ keyboard layouts. Cycle throught these layouts by
+ pressing
+ <keycombo action="simul">
+ <keycap>Alt</keycap>
+ <keycap>Shift</keycap>
+ </keycombo>.</para>
+
+ <para><filename>/usr/local/etc/X11/xorg.conf.d/kbd-layout-multi.conf</filename></para>
+
+ <programlisting>Section "InputClass"
+ Identifier "All Keyboards"
+ MatchIsKeyboard "yes"
+ Option "XkbLayout" "us, es, ua"
+EndSection</programlisting>
+ </example>
</listitem>
</varlistentry>