Topic: Temporarily switch Keyboard layouts in Openbox [Resolved]
Hey all, I have seen a number of posts on here about changing the keyboard layout from one language to another, but I have not seen any suggestions on temporarily switching the layout. I have a Spanish penpal and would like to be able to toggle between US keyboard (default) Spanish Macintosh via a keyboard shortcut.
I have found that I can switch the layouts via a programmed keyboard shortcut if I start up:
gnome-keyboard-propertiesor
xfce-setting-show keyboard
However, the shortcut doesn't work unless one of these two managers is first started up. This presents some problems as both Gnome and xfce4 take over the font, theme, and panel display settings and change my overall openbox theme (which I love btw ;-). I want to use Openbox and would prefer to not have to use something else in order to switch the layouts. I noticed that Gnome has a Keyboard Indicator panel option. Is this possible with Openbox?
I see that there are some keyboard layout entries in autostart.sh. If I enable one for Spanish, can I set a shortcut to switch layouts via Preferences>OpenBox config>Edit rc.xml?
# Set keyboard map if different than UK
# Uncomment one to enable, or define your own.
#setxkbmap us & # United States
# setxkbmap ca & # Canada
# setxkbmap fr & # Francais
# setxkbmap br & # Brazil
# setxkbmap de & # Germany
# setxkbmap cz & # Czech Republic
# setxkbmap it & # Italy
# setxkbmap pl & # Poland
# setxkbmap nl & # Netherlands
# etc.
How can I set a shortcut to quickly switch between keyboard layouts? Do I have to use Gnome, xfce4-mcs-manager or is there another way? Thanks, there has gotta be a way to do this that doesn't require the use of another desktop manager (at least I hope so...)
Last edited by nabilalk (2009-02-26 21:44:58)