|
Page 1 of 2 |
|
1
2
|
Next
N900 keyboard friendly
*** 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 /rootOn 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. |
Re: N900 keyboard friendly
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 |
Re: N900 keyboard friendly
The three files that I changed in hildon-desktop source package are there:
http://my.arava.co.il/~matan/770/n900/kf/ |
Re: N900 keyboard friendly
Quote:
-Jeff |
Re: N900 keyboard friendly
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). |
Re: N900 keyboard friendly
Have you released the patches / changes to the official Hildon GIT? Maybe it will be integrated in one of the next updates...
|
Re: N900 keyboard friendly
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 :-)
|
Re: N900 keyboard friendly
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? |
Re: N900 keyboard friendly
Quote:
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 |
Re: N900 keyboard friendly
Quote:
|
Re: N900 keyboard friendly
Quote:
|
Re: N900 keyboard friendly
Edit the file /usr/share/X11/xkb/symbols/nokia_vndr/rx-51
find: Code:
key <LFSH> {Then find Code:
include "level3(ralt_switch)"Code:
key <LFSH> {After editing rx-51, use the command setxkbmap to activate it. |
Re: N900 keyboard friendly
Thanks Matan!
I was already using your modified keyboard from here. In your modified file I'm assuming the code to switch input methods using Fn + VolumeKeys is from this part: Code:
key <FK07> { [ F8, F8, ISO_Level5_Lock, ISO_Level5_Lock ] };Code:
// Fn key (right alt) switches to 3rd levelOr is there a way to enable switching the input methods using Ctrl + Space, without modifying the VolumeKeys? |
Re: N900 keyboard friendly
I am not sure about switching input methods. What you see works for my Hebrew keymap, which uses EIGHT_LEVEL. ctrl-space interpretation is done at a higher level, not at xkb level.
|
Re: N900 keyboard friendly
Quote:
|
Re: N900 keyboard friendly
Another step in making hildon-desktop keyboard friendly:
http://my.arava.co.il/~matan/770/n90...ildon_desktop3 http://my.arava.co.il/~matan/770/n900/kf/hd3.diff Now keys work in the application menu (launcher) and window switcher: q - selects the top left thumbnail/icon w - selects the top, second from left ... a - selects the left of the second row And so on. In addition, in the window switcher pressing shift or FN together with the letter closes the window instead of moving to it. |
Re: N900 keyboard friendly
So how would one by editing /usr/share/X11/xkb/symbols/nokia_vndr/rx-51 make the Euro or Sterling symbol into tab?
|
Re: N900 keyboard friendly
Quote:
Code:
key <AB01> { [ z, Z, sterling, sterling ] };Code:
key <AB01> { [ z, Z, Tab, Tab ] }; |
Re: N900 keyboard friendly
Here's the latest version: http://my.arava.co.il/~matan/770/n90...ildon-desktop4
Source: http://my.arava.co.il/~matan/770/n900/kf/hd4.diff To install, run as root: Code:
cd /root
|
Re: N900 keyboard friendly
Fantastic work, Matan!
Can you clarify how to re-order the launcher applications? I assumed it was through /etc/xdg/menus/hildon.menu, but the order there doesn't correspond with the current order in the launcher. Also, any chance of a config option for the speed of the transition between desktops? It takes a while at the moment. |
Re: N900 keyboard friendly
A .desktop or .directory file may have a line like:
X-Osso-User-Position=1 And the icons are ordered by the values, with smaller first. |
Re: N900 keyboard friendly
Thank you, that was exactly what I needed.
|
Re: N900 keyboard friendly
A new version is available: http://my.arava.co.il/~matan/770/n90...ildon-desktop5
Source: http://my.arava.co.il/~matan/770/n900/kf/hd5.diff This new version also includes a new hdk file: http://my.arava.co.il/~matan/770/n900/kf/hdk5 which should be copied to /usr/local/bin/hdk Changes from previous version include:
About the speed of desktop switching, faster switching (not configurable) will be in the next version. |
Re: N900 keyboard friendly
Quote:
In my opionion this shourtcuts wouldn't work at this devices. |
Re: N900 keyboard friendly
Haha, ooops - just managed to bork my n900 by replacing hildon-desktop with hildon-desktop5, rather than replacing hildon-desktop.launch... Was due a reflash anyway ;)
|
Re: N900 keyboard friendly
Quote:
"Error loading new keyboard description" What exactly should I be typing at this step? Toda raba |
Re: N900 keyboard friendly
Your rx-51 file is not correct. Did you edit it by hand? try redownloading a working file and edit again you changes with more care for the details.
|
Re: N900 keyboard friendly
Yes, I did change it by hand and I tried to be very careful. I should have made a backup first but did not.
Just to make sure though, what should I be typing in xterm to load the keyboard? Just 'setxkbmap', or do I have to give some additional instructions? I am completely new to Linux. Thanks. |
Re: N900 keyboard friendly
I reset the phone. Now it gets stuck at the second set of dots on the loading screen (after the Nokia logo) and will not boot up. Also, every time I reset it now, in the top left hand corner of the screen a different item from my desktop comes up.
That is to say, the first time it got stuck, the shortcut button to a countdown timer appeared there. The rest of the screen was black except for the loading dots. The second time, the shortcut to xournal appeared there. Third time, a thumbnail shortcut to a webpage appeared there. Loading dots keep going indefinitely. I'm fully charging the battery now so I can do a reflash. Is it possible to fix this without reflashing? Thanks for the help. |
Re: N900 keyboard friendly
this has altered the order of my menu for a while now and after updating to newest ver + new files has bricked my device ! aah prob wont use again.. have verified this is prob.. :( liked the functionality of it tho
|
Re: N900 keyboard friendly
A new version is available, This is for PR1.1: http://my.arava.co.il/~matan/770/n90...ildon-desktop6
Source patch (relative to 2.2.120 source): http://my.arava.co.il/~matan/770/n900/kf/hd6.diff The only difference from previous version other than rebasing to PR1.1 is that changing desktops by arrows is faster now. About problems: this is a work in progress, so there are expected to be bugs. I only release binaries that worked for me for some time, but obviously I cannot test everything. I still suspect that at least some of the problems are due to not following installation instructions properly. For recovery in case of problems:
I'll be happy if people who find a serious bug and have the patience to work on the bug and a have (or are willing to install) a recovery method contact me by private message or email. |
Re: N900 keyboard friendly
I'll give this one a try tonight after I've upgraded :)
|
Re: N900 keyboard friendly
Not trying to hijack this, but are there any tips/tricks (outside of remapping keys) for getting ctl-shift-X to work? It is impossible to do without some serious (unnatural) contortions of the hand for me to do.
|
Re: N900 keyboard friendly
If you do not remap keys, then ctrl and shift are where they are, and you need to press them + another key. It is possible to use ctrl+fn for shortcuts instead of ctrl+shift, but only if you are willing to give up the special characters panel that opens by ctrl+fn.
|
Re: N900 keyboard friendly
Quote:
how do we install this new version then? i want this functionality but dont want to stuff my n900 testing it...... thx |
Re: N900 keyboard friendly
If you have a working system, installation consists of (as described in detail in previous post): set gconf keys, backup current hildon-desktop.launch (with mv command), and copy latest hildon-desktop from my page to /usr/bin/hildon-desktop.launch . The extra steps with dbus-scripts and hdk are only needed if you want to use global shortcut keys.
This should not cause a non-working system, but if it does, you need one of the recovery methods described earlier, or a reflash. |
Re: N900 keyboard friendly
have installed latest ver onto pr1.1 firmware'd device....... works!!! nice! faster desktop swapping...... THANKS
|
Re: N900 keyboard friendly
Hi Matan
I'm experiencing a compatibility problem between camkeyd and the modified hildon-desktop. Using the genuine Ctrl-Backspace key works just fine from the desktop, but pressing the camera key (which emulates the ctrl-backspace) is causing hildon-desktop to crash. The /apps/osso/hildon-desktop/key-actions/ctrl_backspace_in_tasknav is set to 5. I'm not quite sure which program is responsible, so I've brought it here first. What other info can I give to you? |
Re: N900 keyboard friendly
I don't see this. Do you have any other customizations - especially transitions.ini?
|
Re: N900 keyboard friendly
I didn't have any mods against transitions - but whatever you did in the deb you pm'ed worked :) Thanks again!
|
| All times are GMT. The time now is 08:44. |
Page 1 of 2 |
|
1
2
|
Next
vBulletin® Version 3.8.8