fish-shell/share/functions/__fish_print_xwindows.fish
2018-04-09 01:09:49 +02:00

4 lines
189 B
Fish

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