diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2010-04-19 10:48:46 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2010-04-19 10:48:46 +0200 |
commit | 2a534720839f84d24becca09c058fabc27e6d545 (patch) | |
tree | f946c6ffe58cfaf2b452efea516541fb5ec3aa52 | |
parent | af140554225f5f6cb97416bdadf4f7312433fc55 (diff) |
Put X script directly into .zprofile
-rw-r--r-- | etc/.zprofile | 10 | ||||
l--------- | etc/hosts/profile-kraftwerk | 1 | ||||
l--------- | etc/hosts/profile-remnant | 1 | ||||
l--------- | etc/hosts/profile-saviour | 1 | ||||
-rw-r--r-- | etc/startx | 6 |
5 files changed, 9 insertions, 10 deletions
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 diff --git a/etc/hosts/profile-kraftwerk b/etc/hosts/profile-kraftwerk deleted file mode 120000 index 1f23414..0000000 --- a/etc/hosts/profile-kraftwerk +++ /dev/null @@ -1 +0,0 @@ -../startx
\ No newline at end of file diff --git a/etc/hosts/profile-remnant b/etc/hosts/profile-remnant deleted file mode 120000 index 1f23414..0000000 --- a/etc/hosts/profile-remnant +++ /dev/null @@ -1 +0,0 @@ -../startx
\ No newline at end of file diff --git a/etc/hosts/profile-saviour b/etc/hosts/profile-saviour deleted file mode 120000 index 1f23414..0000000 --- a/etc/hosts/profile-saviour +++ /dev/null @@ -1 +0,0 @@ -../startx
\ No newline at end of file diff --git a/etc/startx b/etc/startx deleted file mode 100644 index 5492c4b..0000000 --- a/etc/startx +++ /dev/null @@ -1,6 +0,0 @@ -## vim:ft=zsh -if [[ -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 -} |