You are not logged in.

#1 2013-01-17 06:04:20

timsch75
Member
Registered: 2013-01-13
Posts: 11

Problem switching between keyboard layouts

I just installed Arch w/ Xfce4 a couple of days ago.  I need to have two keyboard layout options with an easy way to switch between the two.  I recently came from DE's that had a manager with an icon in the panel that could be clicked to switch. 

I found that many people using arch are modifying their xorg.conf files and toggling specified keys.  I wanted to do this, but couldn't find the xorg.conf file.   I  looked in /etc/X11, but it is not there.

Yesterday I found the xfce4-keyboard-settings application which I setup with English (us) & English (us) Dvorak.  It did not give me a clickable icon that I could find, but no problem.  I just opened the application, clicked the layout tab, selected the layout, closed the application and I had whichever layout I selected.  I switched back and forth several times last evening without a problem.

Today I rebooted into the Phoronix test suite live CD to run a test and then rebooted back into Xfce.  Now the keyboard settings application will not switch to Dvorak as it did last night.  As long as I have both the qwerty & dvorak layouts listed, only qwerty will be in effect no matter which I choose.

I'd be happy with solutions to either of these problems....


Xfce4

Offline

#2 2013-01-17 07:57:30

t0m5k1
Member
From: overthere
Registered: 2012-02-10
Posts: 326

Re: Problem switching between keyboard layouts

xfce comes with a panel plugin which enables you to change the layout.

you will need to install xfce-goodies to get it,
more details:

https://www.archlinux.org/packages/extr … kb-plugin/
http://goodies.xfce.org/projects/panel- … xkb-plugin

Last edited by t0m5k1 (2013-01-17 07:59:05)


Aurora R10 (0TYR0X) - Ryzen 7 5800X - 16GB - RX6700XT 12GB - Hyprland (occasionally XFCE) - AOC Q27G3XMN 1440P
EFI Stub Boot
PROUD XLIBRE USER
Linux User: 401820  Steam-Reddit

Offline

#3 2013-01-17 09:25:59

hcjl
Member
From: berlin
Registered: 2007-06-29
Posts: 330

Re: Problem switching between keyboard layouts

i'm switching xserver keyboard layout with setxkbmap. here are some examples.

setxkbmap us
setxkbmap dvorak
setxkbmap us -variant dvorak
setxkbmap de -variant nodeadkeys
setxkbmap de

Last edited by hcjl (2013-01-17 09:29:59)

Offline

#4 2013-01-17 12:55:39

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: Problem switching between keyboard layouts

Maybe related (I don't use Xfce): https://wiki.archlinux.org/index.php/Xf … ings_issue


This is what I use: https://wiki.archlinux.org/index.php/Xo … t-plugging

My "/etc/X11/xorg.conf.d/10-keyboard.conf" file:

Section "InputClass"
    Identifier             "Keyboard Defaults"
    MatchIsKeyboard        "yes"
    Option                 "XkbLayout"   "us, ro(std)"
    Option                 "XkbOptions"  "grp:alt_shift_toggle, grp_led:scroll, terminate:ctrl_alt_bksp, keypad:pointerkeys"
EndSection

"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#5 2013-01-17 23:47:34

rhoit
Member
From: 977
Registered: 2012-07-05
Posts: 62
Website

Re: Problem switching between keyboard layouts

I was never able to solve the /etc/X11/xorg.conf.d/10-keyboard.conf

later i settle with adding following code to .xinitrc

setxkbmap -layout "dvorak, us" -option "grp:ralt_rshift_toggle,grp_led:caps,compose:caps"

Offline

#6 2013-01-18 00:44:17

timsch75
Member
Registered: 2013-01-13
Posts: 11

Re: Problem switching between keyboard layouts

Thanks alot for these suggestions.  I'm using the one in post #3 and it works perfectly.  I'll probably install the post #2 solution for my wife and the one in #4 or 5 for myself since I really want the keyboard toggle option

Last edited by timsch75 (2013-01-18 00:46:12)


Xfce4

Offline

Board footer

Powered by FluxBB