new script working with window managers instead of plain X11