[download]

local/bin/windows-menu

   1 #!/bin/bash
   2 
   3 wmctrl -l | sort -k 2 | awk '$2 > -1'   |
   4 menu -i windows -l 10 | cut -d ' ' -f 1 |
   5 xargs -r wmctrl -ia