2

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?

Michael Mrozek
  • 91,316
  • 38
  • 238
  • 232
Mark
  • 123
  • 5

2 Answers2

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
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