summaryrefslogtreecommitdiff
path: root/.wmii-hg/autostart
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-10-12 14:48:21 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-10-12 14:48:21 -0400
commit9d689e7d224b5c1ea3ab3018998135979f19c5a9 (patch)
tree3778e974ec6826c253e73642f64d8cb030f135df /.wmii-hg/autostart
parent0e2d2d798ff057e6efa9b1a7a918c06aa18a1345 (diff)
add .wmii-hg
Diffstat (limited to '.wmii-hg/autostart')
-rwxr-xr-x.wmii-hg/autostart21
1 files changed, 21 insertions, 0 deletions
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