Active Topics

 


Reply
Thread Tools
Posts: 1,224 | Thanked: 1,763 times | Joined on Jul 2007
#1
*** A lot of information in this thread in now obsolete. Please read this thread instead.

I prefer touching the screen as little as possible, and I also notice that a lot of actions (such as launching a frequently launched application) can be done much quicker using the keyboard. Therefore, I work on making the N900 more keyboard friendly:

To be able to launch applications using hot keys you need to replace hildon-desktop with one that better support keyboard actions: run as root something like this

Code:
cd /root
wget http://my.arava.co.il/~matan/770/n900/kf/hildon-desktop
chmod a+x hildon-desktop
mv /usr/bin/hildon-desktop.launch /usr/bin/hildon-desktop.launch.org
mv hildon-desktop /usr/bin/hildon-desktop.launch
After a reboot the new hildon-desktop will run which has two changes: an added hot key: <shift><ctrl>H takes you to home screen. Any other <shift><ctrl>letter is advertised on the D-bus.

On option for intercepting the dbus messages and using them to launch applications is with dbus-scripts:

Install dbus-scripts (from extras-devel).
Copy the file http://my.arava.co.il/~matan/770/n900/kf/hdk-scripts to /etc/dbus-scripts.d and the file http://my.arava.co.il/~matan/770/n900/kf/hdk to /usr/local/bin (making sure it is executable).

After this, <shift><ctrl>f launches FBreader, <shift><ctrl>b opens a new browser window, and a few other shortcuts. Currently configuring shortcuts is by editing the python script /usr/local/bin/hdk.

I intend to continue working on hildon-desktop, making it possible to switch desktops and windows by keyboard.

Last edited by Matan; 2010-01-19 at 18:53. Reason: Obsolete information.
 

The Following 17 Users Say Thank You to Matan For This Useful Post:
Posts: 355 | Thanked: 566 times | Joined on Nov 2009 @ Redstone Canyon, Colorado
#2
Very cool.

Can you please post the source code?

I was kludging up something similar using xbindkeys.

Thanks,

-Jeff
http://wiki.maemo.org/User:Jebba
 

The Following User Says Thank You to jebba For This Useful Post:
Posts: 1,224 | Thanked: 1,763 times | Joined on Jul 2007
#3
The three files that I changed in hildon-desktop source package are there:

http://my.arava.co.il/~matan/770/n900/kf/
 

The Following 6 Users Say Thank You to Matan For This Useful Post:
Posts: 355 | Thanked: 566 times | Joined on Nov 2009 @ Redstone Canyon, Colorado
#4
Originally Posted by Matan View Post
The three files that I changed in hildon-desktop source package are there:

http://my.arava.co.il/~matan/770/n900/kf/
Ah, ok i get it thanks!

-Jeff
 
Posts: 1,224 | Thanked: 1,763 times | Joined on Jul 2007
#5
Current code is at http://my.arava.co.il/~matan/770/n900/kf/ (binary: hildon-desktop2, diff: hd2.diff, shortcuts file: hdk2). This now allows:
ctrl-shift-h go to desktop, ctrl-shift-l go to application launcher, and left/right arrows working in desktop (to switch desktops).

I hope other people would like to join this project.
Assistance I'd like to have:

1. If anyone can look at my code and tell me why hildon_desktop_activate() does not work as expected, please do.

2. If anyone has ideas on how to make hildon-desktop (home screen, window switcher, application launcher) more keyboard friendly, please share them.

3. Start identifying applications which can be improved (either at source level or at configuration level).
 

The Following User Says Thank You to Matan For This Useful Post:
Posts: 729 | Thanked: 155 times | Joined on Dec 2009
#6
Have you released the patches / changes to the official Hildon GIT? Maybe it will be integrated in one of the next updates...
 
fpp's Avatar
Posts: 2,853 | Thanked: 968 times | Joined on Nov 2005
#7
Is there a secret art for keying in Ctrl+Shift combinations simply and quickly ? I also prefer using the keyboard, and I don't have big fingers, but in the time it takes me to successfully type, say, ctrl-shift-x, I can tap the screen all it takes to get to the xterm icon, several times :-)
__________________
maemo blog
 

The Following User Says Thank You to fpp For This Useful Post:
Posts: 1,224 | Thanked: 1,763 times | Joined on Jul 2007
#8
I exchanged the Fn and shift keys. Again, I am open to better ideas.

About including the changes in upstream - where is the upstream maintained?
 

The Following User Says Thank You to Matan For This Useful Post:
Posts: 355 | Thanked: 566 times | Joined on Nov 2009 @ Redstone Canyon, Colorado
#9
Originally Posted by Matan View Post
About including the changes in upstream - where is the upstream maintained?
http://maemo.gitorious.org/
http://maemo.gitorious.org/fremantle-hildon-desktop
http://maemo.gitorious.org/fremantle...hildon-desktop

Tons there--I think that last one is what you want, but didn't confirm it.

-Jeff

P.S. Thx for fixes @ my wiki page.
http://wiki.maemo.org/User:Jebba
 

The Following User Says Thank You to jebba For This Useful Post:
fpp's Avatar
Posts: 2,853 | Thanked: 968 times | Joined on Nov 2005
#10
Originally Posted by Matan View Post
I exchanged the Fn and shift keys. Again, I am open to better ideas.
Ah, I'd missed that, sorry. Certainly makes the idea a whole lot more attractive ! :-)
__________________
maemo blog
 
Reply


 
Forum Jump


All times are GMT. The time now is 12:40.