View Single Post
F2thaK's Avatar
Posts: 4,365 | Thanked: 2,467 times | Joined on Jan 2010 @ Australia Mate
#31
how to swap the Fn and Shift keys
----------------------------------------------------



WARNING: CHANGING THIS FILE OTHER THAN WHAT I ADVISE MAY BRICK YOUR DEVICE, I AM IN NO WAY RESPONSIBLE IF U BRICK ur N900!




Edit the file /usr/share/X11/xkb/symbols/nokia_vndr/rx-51

find:

--------------------------------------------
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
--------------------------------------------
include "level3(ralt_switch)"
--------------------------------------------


remove this line, and replace it with:

--------------------------------------------
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" in xterm to activate it.

Last edited by F2thaK; 2010-01-08 at 07:58.
 

The Following 2 Users Say Thank You to F2thaK For This Useful Post: