#!/bin/sh set -eu PATH='/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games' PATH="${HOME}/bin:${PATH}" . ~/.exports eval "$(SSH_ASKPASS='/usr/bin/ssh-askpass' keychain --eval --quiet id_rsa)" xmodmap "${HOME}/.Xmodmap" export GTK_IM_MODULE='xim' export QT_IM_MODULE='xim' xscreensaver & dpmsmouse 'Logitech USB-PS/2 Optical Mouse' & startfluxbox rm -f ~/.xsessionmanage mkfifo -m 0600 ~/.xsessionmanage while read action; do case "${action}" in 'quit') break ;; esac done <~/.xsessionmanage rm -f ~/.xsessionmanage