From 54951353e312ee7e8d21bab28cd75d145405dd83 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Fri, 12 Dec 2008 16:50:45 +0000 Subject: [PATCH] xinitrc: Read a local script. Reads .xinitrc-local if it exists. There's a hook start-clients-local for adding local things. For example, crybaby wants a bunch of laptop- related goodies such as nm-applet and gnome-power-manager. --- xinitrc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/xinitrc b/xinitrc index 6141ab5..588dac6 100755 --- a/xinitrc +++ b/xinitrc @@ -116,6 +116,8 @@ start-window-manager () { ###-------------------------------------------------------------------------- ### Random useful clients. +start-clients-local () { :; } + start-clients () { ## Mail notification. run bginit mail-notification @@ -133,6 +135,9 @@ start-clients () { ## Panel. case $vnc in no) run bginit gnome-panel ;; esac + + ## Local clients. + start-clients-local } ###-------------------------------------------------------------------------- @@ -289,6 +294,10 @@ EOF ###-------------------------------------------------------------------------- ### Actually start things up. +if [ -f $HOME/.xinitrc-local ]; then + . $HOME/.xinitrc-local +fi + case "$start" in yes) info "starting standard clients" -- 2.11.0