summaryrefslogtreecommitdiff
path: root/.wmii-hg/autostart
diff options
context:
space:
mode:
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