PDA

View Full Version : Menu items placement and keyboard layout


pituCaleya
2007-07-18, 05:42
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.

Poikanen
2007-07-18, 20:15
Tools > Control Panel > Personalization > Navigation > Organize :D

Could this help with your menu problem?

pituCaleya
2007-07-18, 21:16
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.