Typing glyphs on Linux: Difference between revisions

Jump to navigation Jump to search
Added instructions for persisting layout changes using localectl.
(Added instructions for persisting layout changes using localectl.)
Line 26: Line 26:


* If you want to specify a different language, say for United Kingdom, specify <source lang=console inline>gb</source> instead of <source lang=console inline>us</source> (not <source lang=console inline>uk</source>)
* If you want to specify a different language, say for United Kingdom, specify <source lang=console inline>gb</source> instead of <source lang=console inline>us</source> (not <source lang=console inline>uk</source>)
* If you want to specify a different layout, dvorak, bepo, etc, change the variant flag to <source lang=console inline>dvorak,dyalog</source>.
== localectl ==
A way to display server agnostic way to persist keyboard changes is though systemd's <source lang=console inline>localectl</source>. To achieve the same effect as shown under <source lang=console inline>setxkbmap</source> run this in a terminal:
<source lang=console inline>
localectl set-x11-keymap us,apl pc105 ,dyalog grp:switch
</source>
This does not affect the current session, with it just writing the changes to <source lang=console inline>/etc/X11/xorg.conf.d/00-keyboard.conf</source>. <source lang=console inline>setxkbmap</source> should be used for testing if the layout is as desired.
Unlike <source lang=console inline>setxkbmap</source>, <source lang=console inline>localectl set-x11-keymap</source> doesn't use flags so the keyboard model must be specified to change variant and options settings. <source lang=console inline>pc105</source> is a general catch all for common keyboards, a full list layouts can be found using <source lang=console inline>localectl list-x11-keymap-models</source>.


== GNOME ==
== GNOME ==
4

edits

Navigation menu