From 2a534720839f84d24becca09c058fabc27e6d545 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 19 Apr 2010 10:48:46 +0200 Subject: Put X script directly into .zprofile --- etc/.zprofile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'etc/.zprofile') diff --git a/etc/.zprofile b/etc/.zprofile index cadc848..c311330 100644 --- a/etc/.zprofile +++ b/etc/.zprofile @@ -15,6 +15,14 @@ echo [[ -n $(echo Maildir/new/*(N)) ]] && pr_info "You have mail!" [[ -r ${ZDIR}/local-profile ]] && source ${ZDIR}/local-profile -[[ -r ${ZDIR}/hosts/profile-${HOST} ]] && source ${ZDIR}/hosts/profile-${HOST} + +if [[ ${HOST} == (remnant|saviour) && -z ${SSH_CONNECTION} && \ + ! -e /tmp/.x-started ]] \ +{ + touch /tmp/.x-started + unsetopt bg_nice + xinit /home/derf/.xinitrc -- /etc/X11/xinit/xserverrc :0 -auth \ + $(mktemp --tmpdir serverauth.XXXXXXXXXX) &! exit +} unfunction pr_info -- cgit v1.2.3