LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   change keyboard layout in console (http://www.linuxquestions.org/questions/slackware-14/change-keyboard-layout-in-console-187987/)

danielfisica 05-31-2004 08:58 AM

change keyboard layout in console
 
hello everybody :Pengy: ,

I'd like to know how I can change keyboard layout in console mode :newbie: , could you please help me?

thanks for your time
:D

slaken 05-31-2004 10:36 AM

man loadkeys

PJota 05-31-2004 01:52 PM

It doesn`t work to me
 
I've tried to do this, but it didn't work.

I have the Slackware 9.0 and a ABNT2 keyboard,

I decompressed an ABNT2 map.gz and reading the .map,
this file has the CCedilha key (code 38 with keymaps), that's ok.

But running loadkeys <kbmap> nothing changes.



Thanks,

PJota

Raskolnikov 05-31-2004 02:03 PM

Try loading the keymap without uncompress it...

I have a french keymap, and loadkeys /usr/share/keymaps/i386/azerty/fr-latin1.map.gz works fine :)

pethead 03-21-2013 07:50 AM

What is a hotkey to switch between languages?

mina86 03-21-2013 12:51 PM

Quote:

Originally Posted by pethead (Post 4915927)
What is a hotkey to switch between languages?

In console? There's none.

And back to the question, take a look at /etc/rc.d/rc.keymap.

Didier Spaier 03-21-2013 06:51 PM

I was about to answer when I realized that this thread is almost 9 years old...

pethead 03-21-2013 10:05 PM

Even MS-DOS has a hotkey to switch between languages. But Linux console hasn't?
May be hotkey is right Ctrl-Alt?

gor0 06-09-2014 06:28 PM

Quote:

Originally Posted by Didier Spaier (Post 4916257)
I was about to answer when I realized that this thread is almost 9 years old...

:D ...

Soderlund 06-10-2014 09:22 AM

Quote:

Originally Posted by pethead (Post 4916326)
Even MS-DOS has a hotkey to switch between languages. But Linux console hasn't?
May be hotkey is right Ctrl-Alt?

The closest thing I can think of is adding loadkeys to sudoers and creating aliases, but note that the language will change for all users when you use loadkeys.

Code:

alias q="sudo loadkeys qwerty"
alias d="sudo loadkeys dvorak"

Or you can use "su -c 'loadkeys ...'", but that will prompt for the root password.

In X you use setxkbmap.

BryanFRitt 08-05-2014 09:44 AM

asdf and aoeu cycle
 
# in ~/.bashrc aka $HOME/.bashrc aka /home/$USER/.bashrc, add something like (add `sudo` if needed?)

http://www.linuxquestions.org/questi...21#post5215521
# to switch between keyboards use the first 4 keys on the 'home' row.
Code:

alias asdf="loadkeys dvorak" # to go from qwerty to the next keyboard layout, dvorak
alias aoeu="loadkeys qwerty" # to go from dvorak to the next keyboard layout, qwerty

# You can do this to cycle between several keyboard layouts, so long as the first for keys are different

# or you could try one of these commands:

Code:

alias asdf="loadkeys /usr/lib/kbd/keytables/dvorak.map"
alias aoeu="loadkeys /usr/lib/kbd/keytables/us.map"

Code:

alias asdf="setxkbmap -layout us -variant dvorak"
alias aoeu="setxkbmap -layout us -variant basic"

---
Quote:

I was about to answer when I realized that this thread is almost 9 years old...
sounds like a contradiction somewhere


All times are GMT -5. The time now is 05:36 PM.