[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: gnome 2.6 -> no more .Xmodmap



Hi,

My .Xmodmap looks like this:

keycode 0x48 =	aring		Aring
keycode 0x49 =	adiaeresis	Adiaeresis
keycode 0x4A =	odiaeresis	Odiaeresis

That is I map some typically Swedish characters on some function keys.
Anyone with an idea of how to achieve it now that Gnome complains about
xmodmap?

An interesting observation is that loading the settings manually results
in only non-capitals. This used to work better!


The version of custom_us file described in Christian Riedel's letter with the aring and Aring on F6 and shifted F6.

partial default alphanumeric_keys
xkb_symbols "basic" {

   // based upon US Keyboard with 104 keys (euro-layout)
   include "us(pc104euro)"
   name[Group1]= "US/ASCII";
   name[Group2]= "International customized";

   // Umlaute
   override key <AD07> { [ u, U  ], [ udiaeresis, Udiaeresis ] };
   override key <AD09> { [ o, O  ], [ odiaeresis, Odiaeresis ] };
   override key <AC01> { [ a, A  ], [ adiaeresis, Adiaeresis ] };
   override key <AC02> { [ s, S  ], [ ssharp, section ] };

   // Currency Symbols
   override key <AE05> { [ 5, percent ], [ EuroSign, cent ] };
   override key <AD03> { [ e, E  ], [ EuroSign, cent] };

   // Extra Characters
   override key <AD04> { [ r, R ], [ registered ] };
   override key <AB03> { [ c, C ], [ copyright ] };
   override key <AD05> { [ t, T ], [ trademark ] };
   override key <AB07> { [ m, M ], [ mu ] };

   // Accents
   override key <AE06> { [ 6, asciicircum ], [] };
   override key <AC11> { [ apostrophe, quotedbl ], [] };
   override key <TLDE> { [ grave, asciitilde ], [] };
   override key <AE10> { [ 0, parenright ], [ degree ] };
   override key <AB08> { [ comma, less ], [] };
   override key <AB09> { [ period, greater ], [] };
   override key <AB10> { [ slash, question ], [] };

   // aring and Aring on F6
   override key <FK06> {type="Shift",symbols[Group1]=[ aring, Aring ]};

};

in /etc/X11/xkb/symbols/pc file there are lines

key <FK06> {
       type="CTRL+ALT",
       symbols[Group1]= [ F6,	XF86_Switch_VT_6 ]
   };

so when you use your xmodmap file to redefine keys, xfree assumes that Aring is provided by pressing CTRL+ALT+F6, not Shift+F6.

Maybe it is not as convenient as using xmodmap, but it gives more possibilities than using xmodmap. Yet this is only my opinion, I've never used xmodmap before.

Mpiktas

Attachment: pgpLuSJQ6vdDx.pgp
Description: PGP signature


Reply to: