{"id":812,"date":"2012-07-03T12:38:49","date_gmt":"2012-07-03T11:38:49","guid":{"rendered":"http:\/\/www.fbcs.co.uk\/wp\/?p=812"},"modified":"2012-07-03T12:38:49","modified_gmt":"2012-07-03T11:38:49","slug":"arch-linux-xfce-and-uk-keyboards","status":"publish","type":"post","link":"https:\/\/wp.fbcs.co.uk\/arch-linux-xfce-and-uk-keyboards\/","title":{"rendered":"Arch Linux, XFCE, and UK Keyboards"},"content":{"rendered":"

I know Arch Linux doesn't hold your hand like other distros do, but I think it could make setting the keyboard layout easier.<\/p>\n

Firstly, set the locale in rc.conf:<\/p>\n

    ...\n    KEYMAP="uk"\n    LOCALE="en_GB.UTF-8"\n    ...<\/pre>\n

and then reboot.  Reboot?  Surely there's a better way, but I don't know what it is.<\/p>\n

Edit \/etc\/locale.gen to uncomment the ones you want to use — en_GB.UTF-8 and en_GB in my case.<\/p>\n

Then you can run<\/p>\n

    # locale > \/etc\/locale.conf<\/pre>\n

For 'normal' sorting of ls listings etc., edit \/etc\/locale.conf and set<\/p>\n

    LC_COLLATE="C"<\/pre>\n

That should sort things out on the console.<\/p>\n

For XFCE, it's tricky because the Applications Menu \/ Settings \/ Keyboard seems to be ignored.  So refer to https:\/\/wiki.archlinux.org\/index.php\/Xorg#Setting_Keyboard_Layout_With_Hot-Plugging and add this to \/etc\/X11\/xorg.conf:<\/p>\n

    Section "InputClass"\n        Identifier             "Keyboard Defaults"\n        MatchIsKeyboard        "yes"\n        Option                 "XkbLayout" "gb"\n    EndSection<\/pre>\n

and restart X.<\/p>\n","protected":false},"excerpt":{"rendered":"

I know Arch Linux doesn't hold your hand like other distros do, but I think it could make setting the keyboard layout easier. Firstly, set the locale in rc.conf: … KEYMAP="uk" LOCALE="en_GB.UTF-8" … and then reboot.  Reboot?  Surely there's a better way, but I don't know what it is. Edit \/etc\/locale.gen to uncomment the ones […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[12,7,29],"tags":[],"_links":{"self":[{"href":"https:\/\/wp.fbcs.co.uk\/wp-json\/wp\/v2\/posts\/812"}],"collection":[{"href":"https:\/\/wp.fbcs.co.uk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.fbcs.co.uk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.fbcs.co.uk\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.fbcs.co.uk\/wp-json\/wp\/v2\/comments?post=812"}],"version-history":[{"count":0,"href":"https:\/\/wp.fbcs.co.uk\/wp-json\/wp\/v2\/posts\/812\/revisions"}],"wp:attachment":[{"href":"https:\/\/wp.fbcs.co.uk\/wp-json\/wp\/v2\/media?parent=812"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.fbcs.co.uk\/wp-json\/wp\/v2\/categories?post=812"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.fbcs.co.uk\/wp-json\/wp\/v2\/tags?post=812"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}