{"id":607,"date":"2011-11-06T23:58:05","date_gmt":"2011-11-06T22:58:05","guid":{"rendered":"https:\/\/www.hutsky.cz\/blog\/?p=607"},"modified":"2011-11-27T15:16:11","modified_gmt":"2011-11-27T14:16:11","slug":"add-a-keyboard-layout-in-lxde","status":"publish","type":"post","link":"https:\/\/www.hutsky.cz\/blog\/2011\/11\/add-a-keyboard-layout-in-lxde\/","title":{"rendered":"Add a keyboard layout in LXDE"},"content":{"rendered":"<p>With the latast Ubuntu 11.10 out, I had to go for something that would be less resource hungry than Unity on my laptop. After considering a downgrade to one of the older releases, or switching to Mint or Debian, I chose Lubuntu as it seemed to combine up-to-date Ubuntu software sources that contain all I&#8217;m used to having on my laptop, and a more lightweight desktop environment.<\/p>\n<p>I have to say I took to it immediately as there are no lags or glitches that I experienced before. All configuration was easy to find, with the only exception of adding a <strong>secondary keyboard layout<\/strong>. I added Keyboard Layout Switcher to the panel and then went to the general Preferences -> Keyboard and Mouse -> Keyboard section. But there was no way to add another layout, I could only go to LXKeymap application from there and change to another layout system-wide, but not to add a secondary layout.<\/p>\n<p>After some time, I found help on this forum:<br \/>\nhttp:\/\/forums.linuxmint.com\/viewtopic.php?f=175&#038;t=62681<\/p>\n<p>One has to go to this configuration file:<\/p>\n<pre>\/etc\/xdg\/lxsession\/LXDE\/autostart<\/pre>\n<p>and add the following:<\/p>\n<pre>@setxkbmap -option grp:switch,grp:alt_shift_toggle,grp_led:scroll us,cz<\/pre>\n<p>Naturally, you add whatever locales you need instead of <em>us,cz<\/em>. You can switch between the layouts using Alt + Shift after you&#8217;ve logged out and in.<\/p>\n<p>I also prefer qwerty version of the Czech layout so there was one minor thing to change:<\/p>\n<pre>@setxkbmap -option grp:switch,grp:alt_shift_toggle,grp_led:scroll us,cz_qwerty<\/pre>\n<p>Apart from this small drawback, I have to say I&#8217;ve become quite partial to LXDE so far.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Adding a secondary keyboard layout in LXDE proved to be tricky<\/p>\n<div class=\"read-more\"><a href=\"https:\/\/www.hutsky.cz\/blog\/2011\/11\/add-a-keyboard-layout-in-lxde\/\">Read more &#8250;<\/a><\/div>\n<p><!-- end of .read-more --><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[28,9],"class_list":["post-607","post","type-post","status-publish","format-standard","hentry","category-operatingsystems","tag-lxde","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/www.hutsky.cz\/blog\/wp-json\/wp\/v2\/posts\/607","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hutsky.cz\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hutsky.cz\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hutsky.cz\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hutsky.cz\/blog\/wp-json\/wp\/v2\/comments?post=607"}],"version-history":[{"count":11,"href":"https:\/\/www.hutsky.cz\/blog\/wp-json\/wp\/v2\/posts\/607\/revisions"}],"predecessor-version":[{"id":609,"href":"https:\/\/www.hutsky.cz\/blog\/wp-json\/wp\/v2\/posts\/607\/revisions\/609"}],"wp:attachment":[{"href":"https:\/\/www.hutsky.cz\/blog\/wp-json\/wp\/v2\/media?parent=607"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hutsky.cz\/blog\/wp-json\/wp\/v2\/categories?post=607"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hutsky.cz\/blog\/wp-json\/wp\/v2\/tags?post=607"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}