dot/xinitrc: Run an early user hook script.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 2 Jun 2011 14:57:38 +0000 (15:57 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 2 Jun 2011 15:05:58 +0000 (16:05 +0100)
I need this on ponder to set the screen resolution.  In particular, then,
it must be earlier than the xscsize(1) call.

dot/xinitrc

index 151b9a4..80c2a14 100755 (executable)
@@ -71,6 +71,13 @@ EOF
 done
 
 ###--------------------------------------------------------------------------
+### Preliminary hook.
+
+if [ -r $HOME/.xinitrc-prehook ]; then
+  . $HOME/.xinitrc-prehook
+fi
+
+###--------------------------------------------------------------------------
 ### Iniitial settings.
 
 ## Assume X sessions are secure.