#!/bin/bash . include.sh # return the number of windows in the current tag w() { sed '/^#/d' "${WMII_DIR}/tag/sel/index"|wc -l } # start linphone tfe linphone &> /dev/null & # wait until linphone starts while [[ $(w) < 1 ]]; do sleep 1 done # THEN switch back to the home tag echo view 1 >> "${WMII_DIR}/ctl" # start other services daemon unclutter &> /dev/null daemon fbpanel &> /dev/null daemon notifyd &> /dev/null