summaryrefslogtreecommitdiff
path: root/.config/wmii-hg/wmiirc
blob: a6585deb31f8cf5771f1280aa7b4305cf4b62a3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
unset WMII_NAMESPACE
unset WMII_DIR

export _PATH="$PATH"
export PATH="$WMII_CONFPATH:$PATH"

. include.sh

wmiir xwrite /event WmiircQuit # close any existing wmiirc's

Event WmiircStart

trap "Event Quit" EXIT

while read -r event; do
	Event $event
done < <(wmiir read /event 2>/dev/null)