Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]Fluxbox keyboard layout
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
tomtomp
Tux's lil' helper
Tux's lil' helper


Joined: 10 Oct 2011
Posts: 89

PostPosted: Fri Oct 14, 2011 1:52 pm    Post subject: [SOLVED]Fluxbox keyboard layout Reply with quote

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
View user's profile Send private message
sebaro
Veteran
Veteran


Joined: 03 Jul 2006
Posts: 1052
Location: Romania

PostPosted: Fri Oct 14, 2011 2:12 pm    Post subject: Reply with quote

Read http://www.gentoo.org/doc/en/fluxbox-config.xml how to set fluxbox keyboard shortcuts.
Back to top
View user's profile Send private message
tclover
Guru
Guru


Joined: 10 Apr 2011
Posts: 512

PostPosted: Fri Oct 14, 2011 2:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
tomtomp
Tux's lil' helper
Tux's lil' helper


Joined: 10 Oct 2011
Posts: 89

PostPosted: Fri Oct 14, 2011 4:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
sebaro
Veteran
Veteran


Joined: 03 Jul 2006
Posts: 1052
Location: Romania

PostPosted: Sat Oct 15, 2011 6:41 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum