Skip to content

Commit

Permalink
focus_watcher.sh: apply recommended changes
Browse files Browse the repository at this point in the history
  • Loading branch information
lwilletts committed Nov 8, 2019
1 parent 01f055c commit cf721ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions focus_watcher.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
# focus a window when it is created
# depends on: wew focus.sh

wew | while IFS="$(printf '\t')" read -r ev wid; do
wew | while read ev wid args; do
case $ev in
# occurs on mapping requests
"MAP") wattr o "$wid" || focus.sh "$wid" ;;
MAP) wattr o $wid || focus.sh $wid ;;
esac
done

0 comments on commit cf721ae

Please sign in to comment.