LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how can I toggle different keyboard layouts? (https://www.linuxquestions.org/questions/linux-newbie-8/how-can-i-toggle-different-keyboard-layouts-221053/)

kentri9 08-22-2004 06:47 PM

how can I toggle different keyboard layouts?
 
Hi

I want to toggle different keyboard types on my Fedora Core 2 with
some simple keyboard shortcuts. But I can't find out how.
It's too much to do System settings -> keyboard -> (password) ->
change keyboard, every time I want to change to different languages.

KDE seems to have such a function (I use Gnome, but I
don't mind use KDE in stead if it's something Gnome cannot) but under
Kcontrol -> Regional accessibility -> keyboard layout
there is no keyboard layout to choose. (of course, I checked 'Enable
Keyboard layout')

I have naturally installed FC2 with all the languages I want to use.

Can anyone help me?

Boby 08-22-2004 08:48 PM

Hello!

I'm heaving the same problem with keyboard layout in FC2 :( There are other posts in this forum about that and I posted this problem too...the best option for me [that I found here] was to use this command: "setxkbmap us" or "setxkbmap de" or "setxkbmap it". Maybe someone else can help more.

Boby

citrus 08-22-2004 08:51 PM

you could prolly make some kinda bash script and the run either one for whatever keyboard layout you need


not sure tho

kentri9 08-23-2004 08:46 AM

Hi Boby

That with setxkbmap... is definitely better than clicking 4 times + password!
Thanks!

Still, it would be great if anyone knows how to change layouts by
simple keyboard shortcuts. Hard to believe that all FC2 users using
more than 1 language are doing all the clickings or setxkbmap...

valencequark 08-23-2004 09:20 AM

if you can get the keymap textfiles, you can use xmodmap to toggle between diff't keyboard layouts.

assuming that you have a qwerty keyboard and that you want to go back to it at some point:

xmodmap -pke > qwerty

this pipes the output of xmodmap into a text file called 'qwerty'
now, download the keymaps for whatever you wish to use (for example, a dvorak layout).

assuming this is in a file called 'dvorak', then you type:

xmodmap dvorak

now you have a dvorak keyboard.

cheers,
--vq

kentri9 08-24-2004 03:06 PM

Hi valencequark

Thanks for your advise! but if i understand it correctly, it makes only another type of keyboard available, isn't it?

Maybe I didn't make it clear, but I have already all the keyboard types I want in my pc and I can change it, if i want.
I wanted to ask how I can toggle between those keyboard types by simple keyboard shortcuts,
without entering system settings...

I'm a newbie, (have installed FC2 4days ago and this is my first linux working) so if i misunderstand
something, my apology.

Anyone with any ideas??

kentri9

fid def 09-04-2004 11:46 AM

switching K/board layouts
 
I'm in the same boat, my wife is a qwerty touch typist and I use Dvorak, in Win. XP I hit control /shift and the kb changes. That's what we need in Linux, surely there must be a way?

Not now, John! 09-05-2004 06:24 AM

Here's extract from my xorg.conf:
Code:

    Option "XkbRules"    "xorg"
    Option "XkbModel"    "pc105"
    Option "XkbLayout"  "si,sr"
    Option "XkbOptions"  "grp:alt_shift_toggle,grp_led:scroll"

so, when I press Alt+Shift, my keybord changes to Serbian layout (Slovenian is default). Scroll Lock lights up as an indicator.

fid def 09-05-2004 10:52 AM

Thanks n n, J, Now we are getting somewhere, all we need now is the entries for Dvorak and US english.
You guys are really something, is there anything you don't know?

Not now, John! 09-05-2004 02:33 PM

Look in /usr/X11R6/lib/X11/xkb/symbols directory. There should be rules for dvorak and en_US keymaps. I have those two files.
If you use Xorg then you should put the following in your xorg.conf file:
Code:

    Option "XkbRules"    "xorg"
    Option "XkbModel"    "pc105" # or pc102 or whichever you have
    Option "XkbLayout"  "en_US,dvorak" # or dvorak,en_US
    Option "XkbOptions"  "grp:alt_shift_toggle,grp_led:scroll"

If you use Xfree86 consult other people on the forum to help you with differences.

fid def 09-06-2004 08:24 AM

THanks again.

mhearn 09-06-2004 09:50 AM

There is a keyboard switcher applet for GNOME, iirc. Can you use that?

Boby 09-11-2004 05:27 PM

Could this problem be caused by the kernel options? I just compiled a new kernel on my box and enabled there some language support...now I can add keyboard layots in control center :)

Boby

kpachopoulos 10-08-2004 06:52 AM

Gnome 2.6
I opened "keyboard preferences" and in the "layouts" tab i added Greek, after English us. Then in the panel i added utility-->keyboard indicator. A box appeared with the indication us. When i clicked on it, it changed to Grc (probably Greek), but when i tried to write anything it changed back to English and instead of Greek i wrote English. When i opened "keyboard preferences" and i pressed the button "up", Greek moved up, but exactly the opposite happened. When i changed the indicator and tried to write English, the indicator changed back to Greek and i wrote Greek instead of English. What can i do?

kentri9 10-09-2004 04:46 PM

Thank you! this really helped!


All times are GMT -5. The time now is 07:05 AM.