You are not logged in.

#1 2015-10-12 13:09:58

ariskon
New Member
Registered: 2015-10-12
Posts: 4

[SOLVED] How to add keyboard language

Need some help on how to add a new keyboard language and on how to switch keyboard layouts. Thank you!

Last edited by Head_on_a_Stick (2016-11-07 07:23:21)

Offline

#2 2015-10-12 13:14:32

Bearded_Blunder
Dodging A Bullet
From: Seat: seat0; vc7
Registered: 2015-09-29
Posts: 1,146

Re: [SOLVED] How to add keyboard language

Documentation here: https://wiki.debian.org/Keyboard


Blessed is he who expecteth nothing, for he shall not be disappointed...
If there's an obscure or silly way to break it, but you don't know what.. Just ask me

Offline

#3 2015-10-12 14:51:46

nobody0
Disabled account
Registered: 2015-09-29
Posts: 664

Re: [SOLVED] How to add keyboard language

ariskon wrote:

Need some help on how to add a new keyboard language and on how to switch keyboard layouts. Thank you!

If you are using Debian Jessie,

sudo apt-get install ibus

then call ibus-setup in gmrun or in terminal. It'd ask if you want to start ibus, click yes. IBus Preferences > Input Method and add keyboard layouts. It'd appear in your system tray.

The screenshot in this thread would show how the keyboard switcher stays in system tray. https://forums.bunsenlabs.org/viewtopic … 2371#p2371

Last edited by nobody0 (2015-10-12 15:10:17)

Offline

#4 2015-10-12 14:58:31

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: [SOLVED] How to add keyboard language

Bearded_Blunder wrote:

And then in "~/.config/openbox/autostart" something like this:

### Keyboard Switcher ###
## Start keyboard with 3 language mapping by Omen
## setxkbmap -layout 'us,ua,ru' -option 'grp:alt_shift_toggle' &
##setxkbmap -layout 'latam,es' &
(sleep 3s && fbxkb && setxkbmap latam,es) &
##(sleep 1s && fbxkb) &

Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#5 2015-10-12 15:19:02

nobody0
Disabled account
Registered: 2015-09-29
Posts: 664

Re: [SOLVED] How to add keyboard language

You can find Ibus info here; https://packages.debian.org/jessie/utils/ibus

Offline

#6 2015-10-12 15:33:45

pingu
Member
Registered: 2015-09-29
Posts: 128

Re: [SOLVED] How to add keyboard language

I like setting mine in my xorg.conf.d/10-evdev.conf file:

Section "InputClass"
        Identifier "system-keyboard"
        MatchIsKeyboard "on"
        Option "XkbLayout" "us,br,gr" 
        Option "XkbModel" "pc104"
        Option "XkbVariant" ", ,polytonic"
        Option "XkbOptions" "grp:shifts_toggle"
EndSection

This way I have the same config across desktops/wms


"Chuck Norris can compile syntax errors."

Offline

#7 2015-10-12 20:27:01

ariskon
New Member
Registered: 2015-10-12
Posts: 4

Re: [SOLVED] How to add keyboard language

Thank you everybody! Everything was helpful! The easier method was to install ibus.

Offline

#8 2016-11-06 20:12:48

attila123
New Member
Registered: 2016-11-06
Posts: 1

Re: [SOLVED] How to add keyboard language

Hi,
I tried ibus, but I had 2 major problems with that:
- For some reason I could not set any variant for the keyboard, I think the "Preferences" button was disabled on the GUI
- Even if I could set alt + shift to switch the keyboards, it did not work for some reason, but alt + shift + space worked.

I wanted to set:
- us keyboard (which I already learned with Commodore 64 :) )
- hungarian keyboard but with 101 keys (so that 'z' and 'y' are in the same position as with the us keyboard, 'z' in the bottom line)
- I wanted to use alt + shift to switch between them

So ibus did not work for me and I needed to dig deeper and based on the https://wiki.debian.org/Keyboard linked above + 'man 5 keyboard' + my successful XFCE keyboard setting in Xubuntu (xfce4-settings-editor -> keyboard-layout section), I managed to come up with the following /etc/default/keyboard config file:

# KEYBOARD CONFIGURATION FILE

# Consult the keyboard(5) manual page.

XKBMODEL="pc105"
XKBLAYOUT="us,hu"
XKBVARIANT=",101_qwerty_comma_nodead"
XKBOPTIONS="grp:alt_shift_toggle"

BACKSPACE="guess"

Based on https://wiki.debian.org/Keyboard I tried

sudo service keyboard-setup restart

but I think it was somehow not enough so I also tried the following command from that page, which worked:

sudo udevadm trigger --subsystem-match=input --action=change

Then I tested that this keyboard setting is preserved across reboot, and purged the useless ibus from my system.
Now I don't have any feedback in the tint2 panel about which keyboard layout is active, but I don't need it either.
I hope this helps someone. :)

Last edited by attila123 (2016-11-06 20:15:00)

Offline

#9 2016-11-07 07:23:03

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,063
Website

Re: [SOLVED] How to add keyboard language

attila123 wrote:

I hope this helps someone.

Thanks for posting smile

I have marked the thread [SOLVED] so that people can find this more easily.

Offline

Board footer

Powered by FluxBB