Page 1 of 1

How to add keyboard layout selector in toolbar?

Posted: Thu Apr 28, 2011 5:50 pm
by catinaz
Hi all,
I am using mint fluxbox Isadora. How do I add keyboard layout selector in toolbar, so I do not have to go menu>System tools>Preferences>Keyboard and mouse to change it? As well, I have two keyboard and mouse tools there, one of them lets me to change layout another not. And where I can add keyboard short-cut to change layout (i.e. Shift+Alt)?
And since we are on keys, laptop's volume up, down, mute keys are not working (compaq presario R300). It isn't big issue, but would be nice to have it working.
Thanks
Cat

Re: How to add keyboard layout selector in toolbar?

Posted: Sat Jul 30, 2011 11:04 am
by daquirm
Hi,

switching keyboard layouts can be easily done by assigning a keyboard shortcut by adding lines to: "/home/yourname/.fluxbox/keys" for example a switch between Czech and US like this:

Code: Select all

Mod1 Shift_L :ExecCommand /usr/bin/setxkbmap -model pc104 -layout cz -variant qwerty
Control Shift_L :ExecCommand /usr/bin/setxkbmap -model pc104 -layout us
Actually by pressing Alt+Shift I switch to CZ and by pressing Ctrl+Shift I switch back to US. There is very simple way to write a script for switching the layout back a and forth, but I'm unable to write scripts at all.

There's also an app called Antico XKB, which does it in the windows style, you can download it here:
http://qt-apps.org/content/show.php?con ... 9eee365417
Then it's possible to make it autostart by adding it to "/home/yourname/.fluxbox/startup" but the problem is, that it starts wit a configure dialog, I didn't find a way how to start it minimized...