*nohtml*

local/bin/windows-menu

   1 #!/bin/bash
   2 
   3 rofi -show window -display-window "$(icon windows)"
   4 command -v rofi && exit
   5 
   6 wmctrl -l | sort -k 2 | awk '$2 > -1' | menu -i windows |
   7 cut -d ' ' -f 1 | xargs -r wmctrl -ia