![]() |
Menu items placement and keyboard layout
Hi everyone,
To make a long story short, I needed to quickly switch between two keyboard layouts, "us" and "es", so I followed the instructions on the Maemo tutorial page and created a small script to switch between these two layouts. Then I created the .desktop entry in /usr/share/applications/hildon, and the link in /etc/others-menu. I've tried with a couple position numbers for the link, but I can't place the script icon on the main menu, it goes directly to bottom of "Extras" folder. Another thing, the script works, I can be writing in MaemoPad, call the script, and the layout is changed inmediately, but the small "Loading chgLayout" window stays for about 15 seconds, as if it was "doing" something. If it is of any use, here is the script (please bear with a newbie's approach to this problem): Nokia-N800-26:~# cat changeLayout.sh #!/bin/sh setxkbmap -print > $HOME/_currentLayout if grep "pc+us" $HOME/_currentLayout; then setxkbmap es else setxkbmap us fi And the .desktop entry: Nokia-N800-26:/usr/share/applications/hildon# cat chgLayout.desktop [Desktop Entry] Encoding=UTF-8 Version=1.0 Type=Application Name=ChangeLayout Comment=Swap between us and es layouts Exec=/home/user/changeLayout.sh Icon=qgn_list_gene_default_app X-Osso-Service=org.maemo.chgLayout X-Osso-Type=application/x-executable Well, I guess the long story short wasn't that short after all, :-) Any advice??. Thanks in advance. |
Re: Menu items placement and keyboard layout
Quote:
|
Re: Menu items placement and keyboard layout
Oh God!:o :o :o
Yes, that helps me, thanks :) , and I also tried the Simple Launcher application, it's great, when I use it to call my script I don't get that little "loading script" screen staying on for 15 seconds. I guess I should try to learn how to use the thing before trying to "code" on it... These forums are great, thanks again. |
All times are GMT. The time now is 05:04. |
vBulletin® Version 3.8.8