]> git.madduck.net Git - etc/xsession.git/blob - .xsession

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

do not truncate .xsession-errors
[etc/xsession.git] / .xsession
1 #!/bin/zsh --login
2
3 set -eu
4
5 SHLVL=0
6
7 while :; do
8   for script in $(run-parts --list $HOME/.xsession.d); do
9     echo I: sourcing ${script:t}... >&2
10     . $script
11     echo I: done sourcing ${script:t}... >&2
12   done
13
14   echo I: waiting for child processes to complete... >&2
15   jobs >&2
16   wait
17
18   [ -e $HOME/.xsession-exit ] && break
19
20   echo "I: restarting xsession (touch $HOME/.xsession-exit to exit)..." >&2
21 done
22
23 rm -f $HOME/.xsession-exit
24
25 exit 0