fish-shell/share/functions/__fish_print_xwindows.fish
2012-06-13 16:46:13 +04:00

4 lines
194 B
Fish

function __fish_print_xwindows --description 'Print X windows'
xwininfo -root -children | grep '^\s\+0x' | sed '/(has no name)/d; s/^\s*\(\S\+\)\s\+"\(.\+\)":\s\+(\(.*\)).*$/\1\t\2 (\3)/'
end