# here I put the commands to run, so I can decide to call them later run_commands() { # xrandr -s 1280x800 xmodmap ~/.Xmodmap PRINTER="p6307" MOZ_PLUGIN_PATH="/usr/lib/nsbrowser/plugins" if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then ## if not found, launch a new one eval 'dbus-launch --sh-syntax --exit-with-session' echo "D-Bus per-session daemon address is: $DBUS_SESSION_BUS_ADDRESS" fi mrxvt & xset r rate 300 } case "x$1" in x) run_commands;; esac # if fluxbox crashes, that's ok -- we'll restart another one # if this loops, I can always use control-alt-backspace fluxbox -log ~/.fluxbox/log || exec $0 norun