mirror of
https://github.com/0intro/wmii
synced 2024-11-22 05:42:05 +03:00
Rethink last commit. Give wi_eventloop -i option to read from stdin instead.
This commit is contained in:
parent
9475f7746a
commit
b5aeb2a323
@ -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/^[^ ]* //')
|
||||
|
Loading…
Reference in New Issue
Block a user