Skip to content

Instantly share code, notes, and snippets.

@pawelz
Created February 13, 2010 16:32
Show Gist options
  • Save pawelz/303529 to your computer and use it in GitHub Desktop.
Save pawelz/303529 to your computer and use it in GitHub Desktop.
#!/bin/sh
xwininfo -int -root -children \
| awk -vFS='"' '/Uzbl browser/ {
gsub("^ ", "");
sub("^", "'"'"'", $2);
sub("$", "'"'"'", $2);
print $2
}' \
| dmenu -b -i -l 30 \
| awk '{
print "a=clientfind({name="$0"})\n\
awful.client.movetotag(uzbl_tag, a)\n\
client.focus=a\n\
a:raise()"
}' \
| awesome-client
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment