{"id":179,"date":"2010-11-14T19:49:26","date_gmt":"2010-11-15T00:49:26","guid":{"rendered":"http:\/\/bda.ath.cx\/blog\/?p=179"},"modified":"2011-03-28T16:01:14","modified_gmt":"2011-03-28T21:01:14","slug":"windows-key-in-aptosidsiduxdebian","status":"publish","type":"post","link":"https:\/\/bda.ath.cx\/blog\/2010\/11\/14\/windows-key-in-aptosidsiduxdebian\/","title":{"rendered":"Windows key in aptosid\/sidux\/debian"},"content":{"rendered":"<p>The default install of aptosid (formerly sidux) maps the windows key to compose (Multi_Key), which is used for entering special characters with key combinations. This drives me nuts, because (a) I use the windows key as a modifier for launching my most common applications and (b) I never need to enter the special characters. Today I finally figured out why this is happening, and how to resolve it properly without an xmodmap band-aid.<\/p>\n<p><!--more--><\/p>\n<p>Looking in \/var\/log\/Xorg.0.log, I noticed this:<br \/>\n<code><br \/>\nOption \"xkb_options\" \"lv3:ralt_switch,compose:lwin\"<br \/>\n<\/code><\/p>\n<p>Turns out this can be changed by running <tt>dpkg-reconfigure keyboard-configuration<\/tt> or by editing <tt>\/etc\/default\/keyboard<\/tt> manually, and then <strong>restarting the entire system<\/strong>. That&#8217;s right, restarting hal and X, as suggested in the config file, was not enough. Makes me feel nostalgic for windows&#8230;<\/p>\n<p>The problem with using xmodmap is that if the keyboard is hotplugged, the settings are lost. It&#8217;s also a pain to get xmodmap to run consistently when X starts across all login managers and manual startx. However because of the bizarre restart requirement, it may be useful. The keycode can be determed by running <tt>xev<\/tt> and pressing the windows key; mine was 133. Then run xmodmap:<br \/>\n<code><br \/>\nxmodmap -e 'keycode 133 = Super_L'<br \/>\n<\/code><br \/>\nThis issue seems like a bug in the aptosid installer (or maybe the debian packages); if a user chooses US american keyboard layout, it&#8217;s very unlikely that they will use the compose key. At the very least the user should be prompted for this during install.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The default install of aptosid (formerly sidux) maps the windows key to compose (Multi_Key), which is used for entering special characters with key combinations. This drives me nuts, because (a) I use the windows key as a modifier for launching my most common applications and (b) I never need to enter the special characters. Today [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[85],"class_list":["post-179","post","type-post","status-publish","format-standard","hentry","category-linux","tag-xorg-keyboard-map"],"_links":{"self":[{"href":"https:\/\/bda.ath.cx\/blog\/wp-json\/wp\/v2\/posts\/179","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bda.ath.cx\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bda.ath.cx\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bda.ath.cx\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bda.ath.cx\/blog\/wp-json\/wp\/v2\/comments?post=179"}],"version-history":[{"count":12,"href":"https:\/\/bda.ath.cx\/blog\/wp-json\/wp\/v2\/posts\/179\/revisions"}],"predecessor-version":[{"id":195,"href":"https:\/\/bda.ath.cx\/blog\/wp-json\/wp\/v2\/posts\/179\/revisions\/195"}],"wp:attachment":[{"href":"https:\/\/bda.ath.cx\/blog\/wp-json\/wp\/v2\/media?parent=179"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bda.ath.cx\/blog\/wp-json\/wp\/v2\/categories?post=179"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bda.ath.cx\/blog\/wp-json\/wp\/v2\/tags?post=179"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}