Navigatrix.net - A Voyager's Companion http://navigatrix.net/ |
|
keyboard layout switch combination http://navigatrix.net/viewtopic.php?f=4&t=757 |
Page 1 of 1 |
Author: | nautic [ 15 Jan 2015, 14:51 ] |
Post subject: | keyboard layout switch combination |
Just installed new version. There is no key combination to switch between languages again. Same one was occured in some previous releases but then was fixed. So, i have installed language i need and can switch it going to scat-preferences-keyboard layout but this is abnormal, complicated way.. there are no any key combinations work.. Are anybode know the way to fix? |
Author: | Moe [ 15 Jan 2015, 20:36 ] |
Post subject: | Re: keyboard layout switch combination |
I was not aware there was a 'key-combination' to change languages (like <ctrl><alt><t> to open a terminal, or <ctrl><window><down> to invert the display, etc.). All key bindings are located ~/.config/openbox/navigatrix-rc.xml as The Other David (CapCouillon) pointed out in his post Turn Laptop Screen On and Off While Machine Stays Running Do you remember what the key stroke combination was? ...and in the interim, you can always change languages via Menu> Preferences> Language Support |
Author: | nautic [ 16 Jan 2015, 01:20 ] |
Post subject: | Re: keyboard layout switch combination |
Yes, i meant key bindings. What exact string should i change to assign like Ctrl+Shft binding to switch between languages? I mean keyboard input lang. Actually i have not found any strings assigning any for switching between languages. |
Author: | Moe [ 16 Jan 2015, 02:59 ] |
Post subject: | Re: keyboard layout switch combination |
The application on Navigatrix responsible for language selection is /usr/bin/gnome-language-selector. You can either use Menu> Preferences> Language Support edit the ~/.config/openbox/navigatrix-rc.xml file, find a vacant key binding, or commandeer a key binding you do not mind loosing. It would have a structure similar to: Line 362-371 wrote: <!-- Keybindings for running applications on Home + E --> where you replace the command (pcmanfm) with gnome-language-selector, or some such. I've not tested it.<keybind key="W-e"> <action name="Execute"> <startupnotify> <enabled>true</enabled> <name>PCManFM</name> </startupnotify> <command>pcmanfm</command> </action> </keybind> I know of no way to change the system language "on the fly" (without logging off). Maybe someone else does. I don't. This will give you better guidance than I could.... http://openbox.org/wiki/Help:Bindings#Key_bindings |
Author: | nautic [ 16 Jan 2015, 03:33 ] |
Post subject: | Re: keyboard layout switch combination |
Have i understood you correct, i need to make following changes in ...-rc.xml file: Code: <!-- Keybindings for running applications on Home + E --> <keybind key="Shft-Ctrl"> <action name="Execute"> <startupnotify> <enabled>true</enabled> <name>PCManFM</name> </startupnotify> <command>gnome-language-selector</command> </action> </keybind> Has avobe proper synax (mainly in scope of "Shft-Ctrl") and if it will work to request language change dialog from keyboard? Or i need to use modifiers like "S-C" instead of "Shft-Ctrl"? |
Author: | Moe [ 16 Jan 2015, 04:20 ] |
Post subject: | Re: keyboard layout switch combination |
That's the general idea, except <keybind key="Shft-Ctrl"> is not the proper syntax. Look at other examples and imitate them. For example Lines 410-415 wrote: <!-- Turn Off Screen on Ctrl + Alt + S--> Ooops, sorry, S is not Shift, at least for me it didn't work. (It wasn't upper case "S" at all, but lower case "s"...go figure.)<keybind key="C-A-S"> <action name="Execute"> <command>scroff</command> </action> </keybind> That's the thing...you can set it up with what ever works in any key combination you want. It just has to work. You will still need to use the same application that you would use via the Menu. ...and I recommend making a backup before you start Code: cp ~/.config/openbox/navigatrix-rc.xml{,.backup}
|
Page 1 of 1 | All times are UTC - 5 hours |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |