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

Re: change xmodmap when x starts



On Sat, Jun 12, 2004 at 08:19:23PM +0200, Vorname Nachname wrote:
> Hi everybody,
> 
> I'd like to have these 3 events
> 
> xmodmap -e 'keycode 160 = XF86AudioMute'
> xmodmap -e 'keycode 174 = XF86AudioLowerVolume'
> xmodmap -e 'keycode 176 = XF86AudioRaiseVolume'
> 
> take effect when X starts.
> 
> So I decide to do this with ~/.xsession. The file ~/.xsession does not
> exist, so I create it and put these 3 commands inside. But it still does not
> work.
> 
> Can you tell me where the problem is or how else I can solve it.

Does your keyboard generate those keycodes?

Use xev(1x) to find out.

Also, xmodmap is deprecated.  It's probably better to use XKB for this
sort of thing.

I see a few XKB keyboard models that support these keysyms:

airkey
scorpius
brother
btc5113rf
btc9000
btc9000a
btc5090
cherryblue
cherrybluea
chicony
chicony9885
compaqik13
compaqik18
armada
presario
inspiron

...and so forth.

Just have a look at /etc/X11/xkb/symbols/inet.

I am assuming you're using the version of XFree86 in Debian sarge
("testing") or sid ("unstable").  The version in woody ("stable") is
considerably more limited.

-- 
G. Branden Robinson                |     That's the saving grace of humor:
Debian GNU/Linux                   |     if you fail, no one is laughing at
branden@debian.org                 |     you.
http://people.debian.org/~branden/ |     -- A. Whitney Brown

Attachment: signature.asc
Description: Digital signature


Reply to: