From 5a12e7c134274dba706667107d10d231517d3e05 Mon Sep 17 00:00:00 2001 From: Patrick J Volkerding Date: Wed, 26 Aug 2009 10:00:38 -0500 Subject: Slackware 13.0 Wed Aug 26 10:00:38 CDT 2009 Slackware 13.0 x86_64 is released as stable! Thanks to everyone who helped make this release possible -- see the RELEASE_NOTES for the credits. The ISOs are off to the replicator. This time it will be a 6 CD-ROM 32-bit set and a dual-sided 32-bit/64-bit x86/x86_64 DVD. We're taking pre-orders now at store.slackware.com. Please consider picking up a copy to help support the project. Once again, thanks to the entire Slackware community for all the help testing and fixing things and offering suggestions during this development cycle. As always, have fun and enjoy! -P. --- slackbook/html/x-window-system-xinitrc.html | 145 ++++++++++++++++++++++++++++ 1 file changed, 145 insertions(+) create mode 100644 slackbook/html/x-window-system-xinitrc.html (limited to 'slackbook/html/x-window-system-xinitrc.html') diff --git a/slackbook/html/x-window-system-xinitrc.html b/slackbook/html/x-window-system-xinitrc.html new file mode 100644 index 000000000..968b4c139 --- /dev/null +++ b/slackbook/html/x-window-system-xinitrc.html @@ -0,0 +1,145 @@ + + + + +xinitrc + + + + + + + + + + + +
+

6.3 +xinitrc

+ +

xinit(1) is the program that actually starts X; it is called +by startx(1), so you may not have noticed it (and probably don't +really need to). Its configuration file, however, determines which programs (including +and especially the window manager) are run when X starts up. xinit first checks your home directory for a .xinitrc file. If the file is found, it gets run; otherwise, /var/X11R6/lib/xinit/xinitrc (the systemwide default) is used. +Here's a simple xinitrc file:

+ + + + + +
+
+#!/bin/sh
+# $XConsortium: xinitrc.cpp,v 1.4 91/08/22 11:41:34 rws Exp $
+
+userresources=$HOME/.Xresources
+usermodmap=$HOME/.Xmodmap
+sysresources=/usr/X11R6/lib/X11/xinit/.Xresources
+sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap
+
+# merge in defaults and keymaps
+
+if [ -f $sysresources ]; then
+    xrdb -merge $sysresources
+fi
+
+if [ -f $sysmodmap ]; then
+    xmodmap $sysmodmap
+fi
+
+if [ -f $userresources ]; then
+    xrdb -merge $userresources
+fi
+
+if [ -f $usermodmap ]; then
+    xmodmap $usermodmap
+fi
+
+# start some nice programs
+
+twm &
+xclock -geometry 50x50-1+1 &
+xterm -geometry 80x50+494+51 &
+xterm -geometry 80x20+494-0 &
+exec xterm -geometry 80x66+0+0 -name login
+
+
+ +

All of those “if” blocks are there to merge in various configuration +settings from other files. The interesting part of the file is toward the end, where +various programs are run. This X session will begin with the twm(1) window manager, a clock, and three terminals. Note the exec before the last xterm. What that does +is replace the currently running shell (the one that's executing this xinitrc script) with that xterm(1) +command. When the user quits that xterm, the X session will +end.

+ +

To customize your X startup, copy the default /var/X11R6/lib/xinit/xinitrc to ~/.xinitrc and edit it, replacing those program lines with whatever +you like. The end of mine is simply:

+ + + + + +
+
+# Start the window manager:
+exec startkde
+
+
+ +

Note that there are several xinitrc.* files in /var/X11R6/lib/xinit that correspond to various window managers and +GUIs. You can use any of those, if you like.

+
+ + + + + -- cgit v1.2.3