chiark / gitweb /
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 151b9a4b64e97d8da5e93751c76e03e96b793df8..80c2a1416b5d204bbbe6754acdbaaecccac857fb 100755 (executable)
@@ -70,6 +70,13 @@ EOF
   esac
 done
 
+###--------------------------------------------------------------------------
+### Preliminary hook.
+
+if [ -r $HOME/.xinitrc-prehook ]; then
+  . $HOME/.xinitrc-prehook
+fi
+
 ###--------------------------------------------------------------------------
 ### Iniitial settings.