Reply
Thread Tools
Posts: 81 | Thanked: 115 times | Joined on Jan 2008
#11
Originally Posted by Matan View Post
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?
 
Posts: 1,224 | Thanked: 1,763 times | Joined on Jul 2007
#12
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.
 

The Following 4 Users Say Thank You to Matan For This Useful Post:
Posts: 81 | Thanked: 115 times | Joined on Jan 2008
#13
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?

Last edited by iKneaDough; 2009-12-31 at 14:51.
 
Posts: 1,224 | Thanked: 1,763 times | Joined on Jul 2007
#14
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.
 

The Following User Says Thank You to Matan For This Useful Post:
Posts: 81 | Thanked: 115 times | Joined on Jan 2008
#15
Originally Posted by Matan View Post
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?
 
Posts: 1,224 | Thanked: 1,763 times | Joined on Jul 2007
#16
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.
 

The Following User Says Thank You to Matan For This Useful Post:
Posts: 355 | Thanked: 566 times | Joined on Nov 2009 @ Redstone Canyon, Colorado
#17
So how would one by editing /usr/share/X11/xkb/symbols/nokia_vndr/rx-51 make the Euro or Sterling symbol into tab?
 
Posts: 81 | Thanked: 115 times | Joined on Jan 2008
#18
Originally Posted by jebba View Post
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 ] };
 

The Following User Says Thank You to iKneaDough For This Useful Post:
Posts: 1,224 | Thanked: 1,763 times | Joined on Jul 2007
#19
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).
 

The Following 7 Users Say Thank You to Matan For This Useful Post:
Posts: 755 | Thanked: 406 times | Joined on Feb 2008 @ UK
#20
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.
 

The Following User Says Thank You to codeMonkey For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 22:25.