{"id":7191,"date":"2022-11-29T11:50:34","date_gmt":"2022-11-29T09:50:34","guid":{"rendered":"http:\/\/www.kameli.net\/marq\/?p=7191"},"modified":"2022-12-04T00:27:25","modified_gmt":"2022-12-03T22:27:25","slug":"libibus-dont-mess-up-my-keyboard","status":"publish","type":"post","link":"http:\/\/www.kameli.net\/marq\/?p=7191","title":{"rendered":"Libibus, don&#8217;t mess up my keyboard"},"content":{"rendered":"\n<p>Even if you&#8217;re not running the actual <em>IBus <\/em>daemon to handle your keyboard mapping, there is another way <em>IBus<\/em> can still mess up your customized layout. Personally I use a script which loads my own customizations using <em>xkbcomp<\/em>, but after starting either <em>Teams<\/em> or <em>Zoom<\/em> the layout is immediately fouled up. On <em>MATE<\/em> I could still quickly reset it back, but since <em>Cinnamon<\/em> seems to handle the keyboard differently, the old script doesn&#8217;t work any longer. Setting the layout manually to Finnish using <em>Cinnamon<\/em> settings and then running <em>xkbcomp<\/em> works, but is unnecessarily clumsy.<\/p>\n\n\n\n<p>As far as I&#8217;ve understood, the culprit is <em>libibus<\/em>, which is used by both <em>Teams<\/em> and <em>Zoom<\/em> to read the keyboard. Initializing the library seems to proactively overwrite the current keymap, causing unnecessary headaches. Simply removing <em>libibus<\/em> isn&#8217;t possible, as it&#8217;s needed, so let&#8217;s start googling for a possible solution. A promising clue lead to <em>dconf<\/em>:<\/p>\n\n\n\n<p><code>dconf dump \/desktop\/ibus\/ > ibus.dconf<\/code><\/p>\n\n\n\n<p>Not much there, but let&#8217;s add to [general] the following:<\/p>\n\n\n\n<p><code>use-system-keyboard-layout=true<\/code><\/p>\n\n\n\n<p>And then save the settings (hopefully permanently):<\/p>\n\n\n\n<p><code>dconf load \/desktop\/ibus\/ &lt; ibus.dconf<\/code><\/p>\n\n\n\n<p>So far so good. After starting the aforementioned troublemakers\/programs, the keyboard layout still seems to be fine i.e. my own modifications are not overwritten. Should have done this years ago! It remains to be seen if <em>dconf<\/em> settings are retained between system restarts, but if not, I&#8217;ll just add the above magic to the script. I&#8217;ll edit this post if there&#8217;s any trouble in the future.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Even if you&#8217;re not running the actual IBus daemon to handle your keyboard mapping, there is another way IBus can still mess up your customized layout. Personally I use a script which loads my own customizations using xkbcomp, but after starting either Teams or Zoom the layout is immediately fouled up. On MATE I could [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,24],"tags":[],"class_list":["post-7191","post","type-post","status-publish","format-standard","hentry","category-linux","category-softat"],"_links":{"self":[{"href":"http:\/\/www.kameli.net\/marq\/index.php?rest_route=\/wp\/v2\/posts\/7191","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.kameli.net\/marq\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.kameli.net\/marq\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.kameli.net\/marq\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.kameli.net\/marq\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7191"}],"version-history":[{"count":4,"href":"http:\/\/www.kameli.net\/marq\/index.php?rest_route=\/wp\/v2\/posts\/7191\/revisions"}],"predecessor-version":[{"id":7201,"href":"http:\/\/www.kameli.net\/marq\/index.php?rest_route=\/wp\/v2\/posts\/7191\/revisions\/7201"}],"wp:attachment":[{"href":"http:\/\/www.kameli.net\/marq\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7191"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.kameli.net\/marq\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7191"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.kameli.net\/marq\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7191"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}