summaryrefslogtreecommitdiff
path: root/.wmii-hg/autostart
blob: 3f94effb0e155421710b4e64feaa6af0bcd37cd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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