Gentoo Wiki


The xinitrc script is used as a command line parameter to the xinit windowing system initializer.


The xinitrc script performs the following actions:

Configure a set of variables:

userresources=$HOME/.Xresources usermodmap=$HOME/.Xmodmap xinitdir=/etc/X11 sysresources=$xinitdir/Xresources sysmodmap=$xinitdir/Xmodmap

Configure the X resource database with system and user resources, using xrdb

Configure the keyboard map using xmodmap

Run the local users ~/.xinitrc script, if this exists

If the local users ~/.xinitrc script does not exist the /etc/X11/ script is invoked, if possible.

If the script does not exist, then the twm windows manager, xclock and xterm are started.

Retrieved from ""

Last modified: Thu, 04 Sep 2008 06:16:00 +0000 Hits: 975