Typing glyphs on Linux: Difference between revisions

Jump to navigation Jump to search
(Added instructions for persisting layout changes using localectl.)
Line 31: Line 31:
== localectl ==
== 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:
A server agnostic way to persist keyboard changes is though [[wikipedia:systemd|systemd]]'s <source lang=console inline>localectl</source>. To achieve the same effect as with [[#setxkbmap|setxkbmap]] run this in a terminal:
 
<source lang=console>
<source lang=console inline>
localectl set-x11-keymap us,apl pc105 ,dyalog grp:switch
localectl set-x11-keymap us,apl pc105 ,dyalog grp:switch
</source>
</source>
This does not affect the current session, since it just writes 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.


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>.
 
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 ==

Navigation menu