{"id":141,"date":"2009-05-28T08:22:23","date_gmt":"2009-05-28T13:22:23","guid":{"rendered":"http:\/\/hoolihan.net\/blog-tim\/?p=141"},"modified":"2009-05-29T08:28:56","modified_gmt":"2009-05-29T13:28:56","slug":"caps-lock-to-control-key-in-ubuntu","status":"publish","type":"post","link":"http:\/\/hoolihan.net\/blog-tim\/2009\/05\/28\/caps-lock-to-control-key-in-ubuntu\/","title":{"rendered":"Caps Lock to Control Key in Ubuntu"},"content":{"rendered":"<p>I like to remap my caps lock key to an extra control key (this can be common practice in the emacs world).\u00a0 It&#8217;s closer to the common keys that are paired with control.\u00a0 And besides, I only ever turn on caps lock by mistake.\u00a0<\/p>\n<p>Recently, while installing\u00a0Ubuntu on a box, I was looking for the way to do this.\u00a0 I found a piece of code that remaps the key with calls to xmodmap.\u00a0 You put the snippet in your ~\/.profile file.\u00a0 It worked, sort of.\u00a0 I would get errors about the script when logging in via ssh remotely.\u00a0 (There are ways to script around that).\u00a0 And bouncing back and forth from a local screen to connecting via vnc would sometimes remove the setting.\u00a0<\/p>\n<p>Instead of finding ways around those issues, I found &#8220;the way&#8221;.\u00a0 Just go in to your preferences menu and to the keyboard.\u00a0 Under control key, there is an option to make the caps lock and additional control key.\u00a0 It doesn&#8217;t affect remote connections (the ssh client uses the local key mapping).\u00a0\u00a0 And the setting never seems to get lost.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I like to remap my caps lock key to an extra control key (this can be common practice in the emacs world).\u00a0 It&#8217;s closer to the common keys that are paired with control.\u00a0 And besides, I only ever turn on caps lock by mistake.\u00a0 Recently, while installing\u00a0Ubuntu on a box, I was looking for the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[22,68,69,67],"class_list":["post-141","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-emacs","tag-keys","tag-linkedin","tag-linux"],"_links":{"self":[{"href":"http:\/\/hoolihan.net\/blog-tim\/wp-json\/wp\/v2\/posts\/141","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/hoolihan.net\/blog-tim\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/hoolihan.net\/blog-tim\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/hoolihan.net\/blog-tim\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/hoolihan.net\/blog-tim\/wp-json\/wp\/v2\/comments?post=141"}],"version-history":[{"count":0,"href":"http:\/\/hoolihan.net\/blog-tim\/wp-json\/wp\/v2\/posts\/141\/revisions"}],"wp:attachment":[{"href":"http:\/\/hoolihan.net\/blog-tim\/wp-json\/wp\/v2\/media?parent=141"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/hoolihan.net\/blog-tim\/wp-json\/wp\/v2\/categories?post=141"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/hoolihan.net\/blog-tim\/wp-json\/wp\/v2\/tags?post=141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}