#!/bin/sh if [ "$1" == "-h" ]; then cat << EOT oofficequicklauncher - load openoffice.org to background for quick lauching ( < 3 s ) 0.1 (c) 2004-11-16 Tero Karvinen karvinen atta iki fi url: http://www.iki.fi/karvinen usage: oofficequicklauncher & requires: xtoolwait, icesh (from icewm?), OpenOffice.org After finding this solution myself, I found an earlier similar solution by an anonymous high school student, and improved this from its ideas. EOT exit 0 fi xtoolwait ooffice -draw -minimized > /dev/null 2>&1 \ && icesh -class "VCLSalFrame" setTrayOption Exclusive \ && icesh -class "VCLSalFrame" toggleState Minimized \ && icesh -class "VCLSalFrame" toggleState Minimized \ && icesh -class "VCLSalFrame" toggleState Minimized # When ooffice is woken, creates new windows unless its oodraw # Must toggle minimized many times for tray Exclusive to work.