From 9d689e7d224b5c1ea3ab3018998135979f19c5a9 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 12 Oct 2013 14:48:21 -0400 Subject: add .wmii-hg --- .wmii-hg/autostart | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 .wmii-hg/autostart (limited to '.wmii-hg/autostart') diff --git a/.wmii-hg/autostart b/.wmii-hg/autostart new file mode 100755 index 0000000..3f94eff --- /dev/null +++ b/.wmii-hg/autostart @@ -0,0 +1,21 @@ +#!/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 -- cgit v1.2.3-2-g168b