You are not logged in.

#1 2017-11-27 23:50:53

ambalex
Member
Registered: 2004-11-17
Posts: 87

switching keyboard layouts

Hello to all

this is a bit embarrassing, but here it goes:
I am learning Greek and need to easily switch between keyboard layouts. I remember I set that up some time ago on my old machine and it was working just fine.
Now, I am taking that machine again and I can't remember the key combination I had set up.

I ran grep -rnw on the whole filesystem with the string I thought would be pertinent, but could not find anything...

I am running arch on an eee pc with wmii.
Anyone can help me remember which is the file where that is defined?

Thank you very much!

Offline

#2 2017-11-27 23:56:42

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: switching keyboard layouts


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2017-11-28 09:25:31

Alber
Member
From: Spain - España
Registered: 2011-11-11
Posts: 227

Re: switching keyboard layouts

Maybe...
setxkbmap gr

EDIT
DON'T TRY
Unless you know how type setxkbmap xx after that.

EDIT 2:
I did something like that time ago.
https://wiki.archlinux.org/index.php/Ke … rd_layouts

EDIT 3:
In the same address, a little above, you can find how change it using ALT+SHIFT:

setxkbmap -layout es,gr -option grp:alt_shift_toggle

Change es for your language layout.

Last edited by Alber (2017-11-28 10:00:59)


Because not all of us are native English speakers, try no to use slang or abbreviations, thank you.

Offline

#4 2017-11-28 13:31:54

GordonGR
Member
From: Thessaloniki, Greece
Registered: 2011-11-07
Posts: 276

Re: switching keyboard layouts

I used localectl, as per the wiki, and it gave me the file /etc/X11/xorg.conf.d/00-keyboard.conf:

# Written by systemd-localed(8), read by systemd-localed and Xorg. It's
# probably wise not to edit this file manually. Use localectl(1) to
# instruct systemd-localed to update it.
Section "InputClass"
        Identifier "system-keyboard"
        MatchIsKeyboard "on"
        Option "XkbLayout" "us,gr"
        Option "XkbModel" "pc104"
        Option "XkbVariant" "euro,polytonic"
        Option "XkbOptions" "grp:ctrl_shift_toggle,terminate:ctrl_alt_bksp,compose:lwin"
EndSection

It works flawlessly. If you are now learning Greek, you don't need the polytonic version (althought you'll probably like the extended).

So, in your case, you want something like

$ localectl --no-convert set-x11-keymap us,gr pc104 euro,extended grp:ctrl_shift_toggle,terminate:ctrl_alt_bksp,compose:lwin

adjusted to your needs, of course.


Intel(R) Celeron(R) CPU E3400 @ 2.60GHz, x86_64. AURs.

“No one without the knowledge of geometry may enter.“ Plato.

Offline

#5 2017-11-29 22:06:56

ambalex
Member
Registered: 2004-11-17
Posts: 87

Re: switching keyboard layouts

Thanks Alber, that's what I did way back, I mapped the switch to Shift+Alt

Offline

Board footer

Powered by FluxBB