Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
KDE 4.x and Xmodmap
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
koan
Apprentice
Apprentice


Joined: 01 May 2006
Posts: 169
Location: Melbourne

PostPosted: Thu Feb 05, 2009 1:56 am    Post subject: KDE 4.x and Xmodmap Reply with quote

Hello,

The keyboard selector doesn't seem to have made it into kde4 yet, so I am using xmodmap to set up multimedia keys.

I have updated the system xmodmap /etc/X11/Xmodmap with the keys I want. I have checked the X scripts and it would seem like this will get loaded. But when KDE started, the keys are not there. So I can just run xmodmap at startup for KDE.

But what I want to understand is what is happening in the sequence. X11 will load xmodmap first, and presumably KDE is then loading what it thinks the keyboard setup is, and overwriting the xmodmap already set. Or is it?

Does anyone know what part of KDE handles this at startup?
Back to top
View user's profile Send private message
loisl
Apprentice
Apprentice


Joined: 18 Apr 2004
Posts: 167
Location: Egelsbach

PostPosted: Fri Feb 06, 2009 4:23 pm    Post subject: Reply with quote

koan,

i have placed an executable shell script in the /usr/kde/VERSION/env directory which loads my customized Xmodmap file.

Code:
#!/bin/bash

XMODMAP=/usr/local/share/X11/Xmodmap

[[ -f ${XMODMAP} ]] && /usr/bin/xmodmap ${XMODMAP}


This works with KDE3 or with KDE4 when You have emerged KDE4 with the kdeprefix USE-flag set. Don't ask me where KDE4 looks for files without USE of kdeprefix
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum