View previous topic :: View next topic |
Author |
Message |
tomtomp Tux's lil' helper
Joined: 10 Oct 2011 Posts: 89
|
Posted: Fri Oct 14, 2011 1:52 pm Post subject: [SOLVED]Fluxbox keyboard layout |
|
|
Hi, is there any way to change keyboard layout (like us,cz...) in fluxbox by shortcut?
I was searching in google but didnt find anything :S .
Thanx for help
Last edited by tomtomp on Fri Nov 04, 2011 5:39 pm; edited 1 time in total |
|
Back to top |
|
|
sebaro Veteran
Joined: 03 Jul 2006 Posts: 1141 Location: Romania
|
|
Back to top |
|
|
tclover Guru
Joined: 10 Apr 2011 Posts: 516
|
Posted: Fri Oct 14, 2011 2:14 pm Post subject: |
|
|
You merge setxkbmap and then be able to change keyboard layout with something like `setxkbmap cz' etc. Afaik, I don't know if there's an applet like pkg that you could merge and combine it with a panel? Is that you want? |
|
Back to top |
|
|
tomtomp Tux's lil' helper
Joined: 10 Oct 2011 Posts: 89
|
Posted: Fri Oct 14, 2011 4:31 pm Post subject: |
|
|
Thanx for link and command, but I already read theese 2 on google... maybe I said my question wrong, I want that one combination will change my keyboard layout to cz if us is on and to us if cz is on... |
|
Back to top |
|
|
sebaro Veteran
Joined: 03 Jul 2006 Posts: 1141 Location: Romania
|
Posted: Sat Oct 15, 2011 6:41 am Post subject: |
|
|
You need a layout toggle script. Here's a simple one in bash:
Code: | #! /bin/sh
CURR_LAYOUT=$(setxkbmap -query | grep layout | cut -d ":" -f 2 | sed -e 's/ //g')
[[ $CURR_LAYOUT == "us" ]] && setxkbmap -layout cz || setxkbmap -layout us |
Save it as layout_toggle, make it executable and add
Code: | Shift k :ExecCommand /path/to/layout_toggle |
in ~/.fluxbox/keys. |
|
Back to top |
|
|
|