Posts: 3
revbish
Joined: 16 Apr 2015
#1
Hello! I just installed anti-X on an old computer and it's great! Does anyone know how to setup several keyboard layouts for different languages that can switched among by a simple press of a key, like the Windows key for example? I need to use at least 2, the standard English one and a Spanish-Portuguese one? Thanks very much.
Sincerely,
revbish
Last edited by revbish on 28 Feb 2016, 03:39, edited 1 time in total.
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#2
I just installed anti-X on an old computer and it's great
Howdy and Welcome.

How about posting from terminal for us

Code: Select all

inxi -Fxz
So we can see what you are running first.

Post readout inside of code tags under the advanced reply box, You will see the button for it.

Then in terminal

Code: Select all

locale
Happy Trails, Rok
Posts: 3
revbish
Joined: 16 Apr 2015
#3
inxi -Fxz
System: Host: stinkpad Kernel: 4.0.5-antix.2-amd64-smp x86_64 (64 bit gcc: 4.9.2)
Desktop: IceWM 1.3.8
Distro: antiX-15-V_x64-full Killah P 30 June 2015
Machine: System: LENOVO product: 23208VU v: ThinkPad X230
Mobo: LENOVO model: 23208VU
Bios: LENOVO v: G2ET33WW (1.13 ) date: 07/24/2012
CPU: Dual core Intel Core i5-3210M (-HT-MCP-) cache: 3072 KB
flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 9981
clock speeds: max: 3100 MHz 1: 1200 MHz 2: 1200 MHz 3: 1208 MHz
4: 1204 MHz
Graphics: Card: Intel 3rd Gen Core processor Graphics Controller
bus-ID: 00:02.0
Display Server: X.Org 1.16.4 drivers: intel (unloaded: fbdev,vesa)
Resolution: 1366x768@60.10hz
GLX Renderer: Mesa DRI Intel Ivybridge Mobile
GLX Version: 3.0 Mesa 10.3.2 Direct Rendering: Yes
Audio: Card Intel 7 Series/C210 Series Family High Definition Audio Controller
driver: snd_hda_intel bus-ID: 00:1b.0
Sound: ALSA v: k4.0.5-antix.2-amd64-smp
Network: Card-1: Intel 82579LM Gigabit Network Connection
driver: e1000e v: 2.3.2-k port: 5080 bus-ID: 00:19.0
IF: eth0 state: up speed: 100 Mbps duplex: full mac: <filter>
Card-2: Intel Centrino Wireless-N 2200
driver: iwlwifi bus-ID: 03:00.0
IF: wlan0 state: down mac: <filter>
Drives: HDD Total Size: 516.0GB (1.0% used)
ID-1: /dev/sda model: TOSHIBA_MQ01ABF0 size: 500.1GB
ID-2: USB /dev/sdb model: Patriot_Memory size: 15.9GB
Partition: ID-1: / size: 40G used: 4.6G (13%) fs: ext4 dev: /dev/sda7
Sensors: System Temperatures: cpu: 48.0C mobo: N/A
Fan Speeds (in rpm): cpu: 0
Info: Processes: 142 Uptime: 16 min Memory: 193.1/7711.4MB
Init: SysVinit runlevel: 5 Gcc sys: 4.9.2
Client: Shell (bash 4.3.301) inxi: 2.2.25
Posts: 2,238
dolphin_oracle
Joined: 16 Dec 2007
#4
you can add layout in / etc/default/keyboard like this (I added gb)

Code: Select all

XKBMODEL="pc105"
XKBLAYOUT="us,gb"
XKBVARIANT=""
XKBOPTIONS="grp:alt_shift_toggle,terminate:ctrl_alt_bksp,grp_led:scroll"
reboot your machine and youshould then be able to use Alt+Shift to toggle keyboards.

if there is a flag in your system tray, then clicking the flag will also toggle keyboards, after the above edits are made.
Posts: 3
revbish
Joined: 16 Apr 2015
#5
Thanks dolphin_oracle, that's exactly the file I edited last night. While you posted this, I was searching around again for the file I changed but couldn't find it and couldn't remember it, so I've been looking at my browsing History of last night trying to find where I may have found the info to do it. It was on an ArchWiki, and I used several other sites to get the info I needed. But it works great now, and yes, the little flags are down there on the bottom right. Clicking on them changes to the 4 keyboards I chose.
My memory's getting really lousy lately! But thank you!