| Prev |   1   2   3     4   | Next | Last
maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   N900 keyboard friendly (https://talk.maemo.org/showthread.php?t=38314)

iKneaDough 2009-12-31 14:12

Re: N900 keyboard friendly
 
Quote:

Originally Posted by Matan (Post 443271)
I exchanged the Fn and shift keys. Again, I am open to better ideas.

Can you please detail how to swap the Fn and Shift keys?

Matan 2009-12-31 14:21

Re: N900 keyboard friendly
 
Edit the file /usr/share/X11/xkb/symbols/nokia_vndr/rx-51

find:

Code:

    key <LFSH>  {
        type[Group1] = "ONE_LEVEL",
        symbols[Group1] = [    Shift_L ]
    };
    modifier_map Shift { Shift_L };

Replace LFSH with RALT. This makes FN behave like shift.

Then find
Code:

include "level3(ralt_switch)"
remove this line, and replace it with:
Code:

key <LFSH> {
    type[Group1]="ONE_LEVEL",
    symbols[Group1] = [ ISO_Level3_Shift ]
    };
  modifier_map Mod5  { ISO_Level3_Shift };

This makes the shift key behave as FN.

After editing rx-51, use the command setxkbmap to activate it.

iKneaDough 2009-12-31 14:48

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        ] };
    key <FK08>        { [        F7,        F7,        ISO_Level5_Lock, Iso_Level5_Lock        ] };

and this part:
Code:

// Fn key (right alt) switches to 3rd level
    include "level3(ralt_switch)"

        modifier_map Mod3 { ISO_Level5_Lock };

If I follow your above instructions for swapping the Fn and Shift, what would I need to add in order to switch input methods using Fn or Shift with the VolumeKeys?

Or is there a way to enable switching the input methods using Ctrl + Space, without modifying the VolumeKeys?

Matan 2009-12-31 15:00

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.

iKneaDough 2009-12-31 15:04

Re: N900 keyboard friendly
 
Quote:

Originally Posted by Matan (Post 447975)
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.

So if you have your Fn and Shift swapped, how do you currently switch to Hebrew?

Matan 2009-12-31 15:17

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.

jebba 2009-12-31 15:23

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?

iKneaDough 2009-12-31 15:48

Re: N900 keyboard friendly
 
Quote:

Originally Posted by jebba (Post 447999)
So how would one by editing /usr/share/X11/xkb/symbols/nokia_vndr/rx-51 make the Euro or Sterling symbol into tab?

Change this line:
Code:

key <AB01> { [ z, Z, sterling, sterling ] };
to this:
Code:

key <AB01> { [ z, Z, Tab, Tab ] };

Matan 2010-01-08 15:06

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
wget http://my.arava.co.il/~matan/770/n900/kf/hd.gconf
. ./hd.gconf
wget  http://my.arava.co.il/~matan/770/n900/kf/hildon-desktop4
mv /usr/bin/hildon-desktop.launch /usr/bin/hildon-desktop.launch1
mv /root/hildon-desktop4 /usr/bin/hildon-desktop.launch
/etc/init.d/hildon-desktop stop
sleep 2
/etc/init.d/hildon-desktop start

The keyboard related behaviour of hildon-desktop is now configured by 7 gconf boolean keys:
  • /apps/osso/hildon-desktop/key-actions/default_launcher_positions
    If this key is false, the default positions of the icons in the launcher are disabled, so you can reorder them arbitrarily.
  • /apps/osso/hildon-desktop/key-actions/home_contacts_phone
    If this key is false, the phones and contacts applications will not be called when a key is pressed while in the home screen.
  • /apps/osso/hildon-desktop/key-actions/ctrl_backspace
    If this key is false then ctrl-backspace is free for applications to use, instead of the default behaviour of jumping to task navigator.
  • /apps/osso/hildon-desktop/key-actions/preset_shift_ctrl
    If this key is true, ctrl-shift-x opens an xterm, ctrl-shift-p saves an image of the screen, ctrl-shift-n toggles composite mode and ctrl-shift-h jumps to home screen.
  • /apps/osso/hildon-desktop/key-actions/dbus_shift_ctrl
    If this key is true, then ctrl-shift-letter combinations are reported on the d-bus, allowing implementation of global shortcut keys. H,N,P,X are reported on the dbus only if the previous key is false.
  • /apps/osso/hildon-desktop/key-actions/launcher_navigator_accel
    If this is true, icons in the launcher and task navigator can be selected by pressing corresponding keys:
    • q selects leftmost icon in top row.
    • w selects second icon from left in top row.
    • t selects fifth icon from left in top row.
    • s selects second from left icon in second row.
    • z selects leftmost icon in third row.
    • v selects fourth icon from left in the third row.
    etc.
    In the task navigator, if the letter is pressed with shift or FN, the corresponding task is closed, instead of switched to.
  • /apps/osso/hildon-desktop/key-actions/dbus_launcher_navigator
    If this key is true, a press of a letter key while in task navigator or launcher is reported on the d-bus. If the previous key is true, only letters not corresponding to icons are reported. If home_contacts_phone key is false, then also keys pressed while in home screen are reported.
  • Non-configurable changes:
    • Left and right arrows change desktops in the home screen.
    • A d-bus signal set_state allows other programs to select the state (application, home screen, task navigator, launcher).

codeMonkey 2010-01-09 08:54

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.


| Prev |   1   2   3     4   | Next | Last
All times are GMT. The time now is 08:44.

vBulletin® Version 3.8.8