LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-28-2015, 01:20 PM   #1
itscience
Member
 
Registered: May 2015
Location: Lancashire UK
Distribution: arch
Posts: 37

Rep: Reputation: Disabled
i3wm uk layout; how?


I went on http://docs.slackware.com/howtos:win...d_layout_in_i3
and found this beautiful answer to change my keyboard layout from US to GB. As soon as I type setxkbmap gb I get a UK layout. The guide talks about xinitrc but I don't use that so how can I get i3 to do it automatically?

I am running Arch and can't find this answer anywhere.
Many thanks for helping :-)
 
Old 07-28-2015, 01:23 PM   #2
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
You can put the setxkbmap gb command at the end of your ~/.i3/config

Code:
exec setxkbmap gb &
 
Old 07-28-2015, 02:16 PM   #3
itscience
Member
 
Registered: May 2015
Location: Lancashire UK
Distribution: arch
Posts: 37

Original Poster
Rep: Reputation: Disabled
Awesome. Thank you.
I tried that before but I didn't use the & at the end and not at the beginning.
So, to confirm: I used sudo nano ~/.i3/config and then added the line exec setxkbmap gb &

Thanks again.
 
Old 07-28-2015, 02:20 PM   #4
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
The & at the end means that the command will be executed in the background not blocking any other processes.

Please note that if you're doing it in your own /home/ directory, you should not need to use the 'sudo' pre-command.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] i3wm - deluge is opening firefox instead of thunar moisespedro Slackware 11 01-09-2014 12:19 PM
i3wm/i3status users (Slackware) - problems with wifi status display? sycamorex Slackware 1 04-02-2013 04:23 PM
[Solved] i3wm, Pop-ups tadevokle Linux - Desktop 6 10-08-2011 05:34 PM
Fedora13 - KDE 4.4.5, KXKB won't change layout if particular layout is selected CzarEjey Linux - Desktop 0 09-03-2010 02:12 AM
Switching keyboard layout - Mandriva2006 - K.D.E. Windows Layout! itz2000 Mandriva 3 08-13-2006 06:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration