Skip to content

Commit

Permalink
Merge pull request #52 from lwilletts/master
Browse files Browse the repository at this point in the history
Fix example watcher script to work with new wew.
  • Loading branch information
z3bra authored Nov 8, 2019
2 parents 0ba993d + cf721ae commit 863a97b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ Adds group-like capabilities, sorta like those you find in CWM and such WMs.
-u unmaps (hides) group
-U unmaps all the groups

### wmnenu.sh
### wmenu.sh

Uses wname and dmenu to produce a window selection menu similar to CWM's
menu-window option. Upon selection the script outputs the chosen window id that
Expand Down
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=: read ev wid; do
wew | while read ev wid args; do
case $ev in
# occurs on mapping requests
19) wattr o $wid || focus.sh $wid ;;
MAP) wattr o $wid || focus.sh $wid ;;
esac
done

0 comments on commit 863a97b

Please sign in to comment.