Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fn title {
- echo `{wmiir read /client/$1/label}}
- fn focusclient {
- tag=`{wmiir read /client/$1/tags | cut -d+ -f1}
- wmiir xwrite /ctl view $tag
- wmiir xwrite /tag/$tag/ctl select client $1}
- key $MODKEY-u || fn $key {
- ifs=$wi_nl {
- clients=`{wmiir ls /client | head -n -1 | sed 's/\/$//'}
- sel=`{{for(c in $clients) echo `{title $c}} | sort | uniq -u | wimenu -i}
- if(test $sel) {
- for(c in $clients) {
- if(~ $sel `{title $c})
- match=$c
- }
- if(test $match)
- focusclient $match}}}
Add Comment
Please, Sign In to add comment