Skip to content

Instantly share code, notes, and snippets.

@pawelz
Created February 13, 2010 16:28
Show Gist options
  • Save pawelz/303528 to your computer and use it in GitHub Desktop.
Save pawelz/303528 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
}' \
| tail -n1 \
| awk '{
print "a=clientfind({name="$0"})\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