#!/bin/sh

HIDE=$(lswin -o; lswin -r)
for xid in $(lswin -a);
do
    if printf "$HIDE" | grep -q $xid; then
        continue;
    fi
    _name=$(wname $xid)
    if [ ! -z "$_name" ]; then
        echo "$xid | $(wname $xid)"
    fi
done
