Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
05-11-2005, 09:47 AM
|
#1
|
Member
Registered: Apr 2004
Distribution: Slackware 11.0, OpenBSD 4.0
Posts: 58
Rep:
|
XFCE: how to change the keyboard layout?
Hi!
I am using Slackware 10.1 and XFCE and I love it. The only thing to bother is that I don't know how to change the keyboard layout (i am using a german keyboard). The strange thing is, that when I exit XFCE, I am able to use the german keyboard in the konsole. So it is just XFCE where I can not use the german keyboard. I have been asked about the keyboard layout during the installation, and i have chosen the german keyboard. So please, help me, how can I use a german keyboard layout with XFCE? I have tried to go to Settings --> Keyboard, but there is just the options Default and Emacs. What file do I have to edit in order to gain support for my german keyboard in XFCE?
Thanks for any help!
|
|
|
05-11-2005, 10:49 AM
|
#2
|
Member
Registered: Apr 2004
Distribution: Slackware 11.0, OpenBSD 4.0
Posts: 58
Original Poster
Rep:
|
Nevermind, I have the answere now. So, if someone has the same problem, here is what to do: you have to add a XkbLayout to the /etc/X11/xorg.conf file. Just open the file as root with your favourite editor and find the section "InputDevice" Identifier "Keyboard0". Then replace it with
Code:
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc105"
Option "XkbLayout" "de,ru"
EndSection
for example if you have a german or russian keyboard and a 105 key keyboard.
I just have a german keyboard so I simply did
Code:
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc105"
Option "XkbLayout" "de"
EndSection
and it works perfectly.
I have found that information on the XFCE-Wiki: http://www.myoo.de/xfce/index.php/Ti..._configure_Xkb
cheers, athanatos
|
|
|
09-07-2007, 07:05 AM
|
#3
|
Member
Registered: Apr 2007
Location: Argentina
Distribution: Slackware
Posts: 48
Rep:
|
Hi!
I have the same problem.
I change the xorg.conf and the layout changes ok, but there is a key that dont works in xfce, but it does in the console.
the key is the '>' and '<' (the same key).
In the console works fine, but in X dont.
Whith KDE dont happens this
The layout that i use is "latam".
Any idea?
Thank you!!
PD:Sorry my bad english
|
|
|
09-07-2007, 08:13 AM
|
#4
|
Member
Registered: Jul 2004
Distribution: Void Linux, former Slackware
Posts: 498
Rep:
|
athanatos:>
In addition you may set keys combination that alter selected layouts.
In Input device section of xorg.conf
Code:
...
Option "XkbOptions" "grp:alt_shift_toggle"
...
Alt+Shift combination switches between layouts. You may use instead of alt_shift_toggle many other options like ctrl_shift_toggle, shifts_toggle, ctrl_alt_toggle, lwin_toggle, rctrl_toggle etc. See documentation for more.
There is also a handy plugin for Xfce panel for graphical representation of the selected layout and allows to change it with mouse or other pointing device :-)
|
|
|
09-29-2007, 02:08 PM
|
#5
|
Member
Registered: Apr 2007
Location: Argentina
Distribution: Slackware
Posts: 48
Rep:
|
I solved my problem changing pc101 to pc105 option in xorg.conf.
Thanks!
|
|
|
08-06-2008, 02:55 AM
|
#6
|
Member
Registered: Jul 2008
Posts: 48
Rep:
|
layout problem
hi all
i have shch as this problem in xfce4 .i have 2 problem with my keyboard language.
there is a part of my /etc/X11/xorg.conf :
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc105"
Option "XkbLayout" "us,ara"
Option "XkbOptions" "grp:alt_shifts_toggle,grp_led:scroll"
Option "XkbVariant" "azerty_digits"
EndSection
and in Settings --> Keyboard, there is just the options Default and Emacs
1-i select Arabic language from system-->keyboard but it didn't change and i can,t type Arabic (for example in word processor) . any suggestion?
2 -how can i add a new language? (i have my desired language in gnome and can select and use it, but not in xfce)
tanks for any help!
Last edited by mjalalynia; 08-06-2008 at 03:02 AM.
|
|
|
08-06-2008, 04:01 AM
|
#7
|
Senior Member
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687
Rep:
|
Click on the panel --> add new object --> and select the keyboard-layout-switcher to be added as a new panel-applet.
It is worth a try - althoug it only gives me the option to switch between german and US-english, but that might be because those two are the only two locales I have installed on my system and the only two I will ever need.
[edit]
I knew I was looking for something else that I had used before - and I found it:
http://www.sabayonlinux.org/forum/vi...p?f=53&p=82050
I don't now (now) how to acces it through any of the menus - but from a terminal:
xfkc
will launch it and give you the option to select any keyboard-layout you like.
I'm on Gentoo and there it is installed by:
emerge x11-misc/xfkc
The website is here:
http://gauvain.tuxfamily.org/code/xfkc.html
Last edited by jomen; 08-06-2008 at 04:21 AM.
|
|
|
08-06-2008, 04:45 AM
|
#8
|
Member
Registered: Jul 2008
Posts: 48
Rep:
|
tanks jomen
i install xfce4-xkb-plugin from this link:
http://goodies.xfce.org/projects/pan...lugin#xfce-4.2
and i add XKB Layout Switcher to my panel as a new object.now my first problem solved .but what a bout second problem?
|
|
|
08-06-2008, 04:56 AM
|
#9
|
Senior Member
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687
Rep:
|
Quote:
but what a bout second problem?
|
Maybe someone else will know - give it some time...
Did you see my [edit] about xfkc ?
The availability of languages should not be the problem as you are able to use them in Gnome as you say.
[edit]
You also should consider opening a new thread instead (with a link to this) - since you took over this one which was almost one year old and posted in a slackware-specific forum. You might get more attention that way.
Last edited by jomen; 08-06-2008 at 05:05 AM.
|
|
|
09-15-2008, 08:17 PM
|
#10
|
LQ Newbie
Registered: Sep 2008
Location: San Jose, Costa Rica
Distribution: Xubuntu
Posts: 7
Rep:
|
Quote:
Originally Posted by athanatos
Nevermind, I have the answere now. So, if someone has the same problem, here is what to do: you have to add a XkbLayout to the /etc/X11/xorg.conf file. Just open the file as root with your favourite editor and find the section "InputDevice" Identifier "Keyboard0". Then replace it with
Code:
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc105"
Option "XkbLayout" "de,ru"
EndSection
for example if you have a german or russian keyboard and a 105 key keyboard.
I just have a german keyboard so I simply did
Code:
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc105"
Option "XkbLayout" "de"
EndSection
and it works perfectly.
cheers, athanatos
|
I have a problema: my text editor won't let me save any changes. Do you know why this happen? Any ideas on how to fix it?
Thanks!
|
|
|
09-16-2008, 01:09 AM
|
#11
|
Senior Member
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687
Rep:
|
Quote:
Originally Posted by Espina
I have a problema: my text editor won't let me save any changes. Do you know why this happen? Any ideas on how to fix it?
|
Do you mean: while editing the file /etc/X11/xorg.conf?
Or generally any file?
In the former case: the editor has to be run as root to be able to save changes to the file.
In the latter: where do you want to save to? Check the permissions there. What editor is it?
This thread is pretty old - is this really related to the topic of it? Consider opening a new thread on your topic if you don't get help after a few days here.
|
|
|
09-16-2008, 12:07 PM
|
#12
|
LQ Newbie
Registered: Sep 2008
Location: San Jose, Costa Rica
Distribution: Xubuntu
Posts: 7
Rep:
|
Quote:
Originally Posted by jomen
Do you mean: while editing the file /etc/X11/xorg.conf?
Or generally any file?
In the former case: the editor has to be run as root to be able to save changes to the file.
In the latter: where do you want to save to? Check the permissions there. What editor is it?
This thread is pretty old - is this really related to the topic of it? Consider opening a new thread on your topic if you don't get help after a few days here.
|
I just fixed the problem. It seems that in order to make any changes in the xorg.conf file you must have sudo access (I don't know if its correct to say "sudo access").
That gave me another problem: I didn't know how to edit the file at all, because I'm new to Linux and I know nothing.
So, a friend told me to use this line in the terminal:
gksudo gedit /etc/X11/xorg.conf
The problem was that I was running xubuntu, and it doesn't come with gedit...it comes with mousepad, but I spent hours looking how to change the file and wondering why nothing happened when I typed the line above.
At the end, I just swapped the "gedit" part with "mousepad", making it possible for me to edit the xorg.config file.
And Voila! it ran perfectly, except for a little thing: In the spanish keyboard, the button on the right of the left-shift button is a bigger than/lesser than button, but that's not what it types whenever I hit it, it types this:
|
It's a little foolish thing, but if you could help me with that I'll be very grateful.
Oh, and thank you for the last post!!
Last edited by Espina; 09-16-2008 at 01:57 PM.
|
|
|
09-16-2008, 02:26 PM
|
#13
|
Senior Member
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687
Rep:
|
Did you read through the thread and tried the possible solutions given there?
There is a plugin for the panel in xfce - and also a way to configure it via the "Settings" menu.
An alternative solution could be:
Code:
sudo dpkg-reconfigure console-setup
and going through the menus you are presented with
|
|
|
09-16-2008, 02:50 PM
|
#14
|
LQ Newbie
Registered: Sep 2008
Location: San Jose, Costa Rica
Distribution: Xubuntu
Posts: 7
Rep:
|
So, Do I only change PC101 to PC105?
|
|
|
09-16-2008, 02:58 PM
|
#15
|
Senior Member
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687
Rep:
|
I don't know through what menus you are asked exactly and what you have to answer to each question.
Count the keys and you have the answer to one question.
|
|
|
All times are GMT -5. The time now is 01:10 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|