Rethink last commit. Give wi_eventloop -i option to read from stdin instead.

This commit is contained in:
Kris Maglione 2010-05-27 12:25:38 -04:00
parent 9475f7746a
commit b5aeb2a323

View File

@ -190,14 +190,13 @@ wi_selclient() {
wmiir read /client/sel/ctl | sed 1q | tr -d '\012'
}
wi_readevent() {
wmiir read /event
}
wi_eventloop() {
echo "$Keys" | wmiir write /keys
wi_readevent | while read wi_event
if [ "$1" = -i ]
then cat
else wmiir read /event
fi | while read wi_event
do
IFS="$wi_newline"
wi_arg=$(echo "$wi_event" | sed 's/^[^ ]* //')