SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2014-08-26 12:23:06

mrR00t
Member
From: Greece
Registered: 2014-01-23
Posts: 11

(Solved) How to make Super key to change the keyboard language.

Hello everybody i have a problem how to change keyboard layout.
I am used to change layout with Super key.
I edited the ~/.config/openbox/rc.xml and make all shorcuts to use alt key instead of super key.
Now i am trying to make my keyboard layout to change with the super key but icant.
I edit the ~/.config/openbox/autostart file and add at the end this line

##Εναλλαγή πληκτρολογίου
setxkbmap -option "grp:switch,grp:alt_shift_toggle,grp_led:scroll" -layout "us,el" &
(sleep 1s && fbxkb) &

Now its working just fine with Alt+Shift keys but i want only super key.
I change the "alt_shift_toggle"  to "W_toggle" but it is not working
i also tried with "Super_L_toggle"
Any ideas how to make it work?

P.S Sorry for my English   ops

Last edited by mrR00t (2014-09-02 09:09:53)


In a world without walls and fenches
     who needs Windows and Gates?

Offline

Be excellent to each other!

#2 2014-08-26 16:12:16

nore
>2^9
From: Lakeland
Registered: 2009-11-28
Posts: 618

Re: (Solved) How to make Super key to change the keyboard language.

Super is a modifier key in Openbox, which means that it can be used only in combination with other keys. In your rc.xml you can use

<keybind key="0x85">
...

0x85 is the left Super key, 0x86 the right, if you have one on your keyboard.

Offline

#3 2014-08-27 05:48:36

ohnonot
...again
Registered: 2012-05-22
Posts: 1,747
Website

Re: (Solved) How to make Super key to change the keyboard language.

mrROOT, are you saying that it was working before with the super key? and you are trying to change it back?

Offline

#4 2014-08-27 08:27:05

mrR00t
Member
From: Greece
Registered: 2014-01-23
Posts: 11

Re: (Solved) How to make Super key to change the keyboard language.

Thank you for your answers!

@ohnonot
No it never worked with the Super key.


@nore
Where should i put this line? At the begining of the file or at the end of the file?

Last edited by mrR00t (2014-08-27 08:29:45)


In a world without walls and fenches
     who needs Windows and Gates?

Offline

#5 2014-08-27 14:27:31

nore
>2^9
From: Lakeland
Registered: 2009-11-28
Posts: 618

Re: (Solved) How to make Super key to change the keyboard language.

Find a section in your ~/.config/openbox/rc.xml between

<keyboard>...</keyboard>

tags. It is full of keybindings:

<keybind>...</keybind>

Read http://openbox.org/wiki/Help:Bindings#Key_bindings and after some trial and error don't hesitate to come back.
What you are going to do is bind the Super key to your command.  It might be a good idea to put your layout toggling commands in a bash script and bind that to the key.

After editing remember to reconfigure Openbox to see the result.
Important: backup your ~/.config/openbox/rc.xml before editing it.

Last edited by nore (2014-08-27 14:35:54)

Offline

#6 2014-09-02 09:11:58

mrR00t
Member
From: Greece
Registered: 2014-01-23
Posts: 11

Re: (Solved) How to make Super key to change the keyboard language.

Thank you for your answers!!
The solution was very simple i deleted the line i wrote in autostart.sh
then i opened a terminal and gave:

sudo dpkg-reconfigure keyboard-configuration

And i changed it from the dialog.

Now i have another problem, systray does not appear the selected language.
Actualy it doesn't appear any language at all

Last edited by mrR00t (2014-09-02 09:15:57)


In a world without walls and fenches
     who needs Windows and Gates?

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo