I need to apply a custom xmodmap for all users at the start. Where do I need to put it? I have thought at /etc/rc.local? Does this make sense?
Asked
Active
Viewed 1,088 times
2
Michael Mrozek
- 91,316
- 38
- 238
- 232
Mark
- 123
- 5
2 Answers
1
I don't have experience with xmodmap, but you can always make a .xmodmaprc file and put it in /etc/skel. The file will be copied to all new users' home, thus applying the settings.
phunehehe
- 20,030
- 27
- 99
- 151
-
This won't affect any existing users or users with already-created home directories (for example, from a network file system). – jsbillings Mar 11 '11 at 14:21
-
@jsbillings Yeah, sure, you are absolutely right. – phunehehe Mar 11 '11 at 14:55
1
/etc/rc.local won't work for this situation, because xmodmap requires an X server to talk to.
I know that /etc/X11/Xmodmap is part of the xorg-x11-xinit package on RHEL and Fedora, so make your changes there. They will be used when any new X session starts.
jsbillings
- 24,006
- 6
- 56
- 58