I don&#x27;t know why I said that it would. It doesn&#x27;t.<p>This works, though:<p><pre><code>    recordmydesktop --windowid $(xwininfo | grep &#x27;Window id&#x27; | cut -d&#x27; &#x27; -f4)
</code></pre>
though its worth noting that it theoretically <i>could</i> detect that its being redirected and only output the window id