<html><head></head><body><div>On Thu, 2023-03-09 at 17:51 +0100, Johan Vromans wrote:</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div>On Thu, 9 Mar 2023 14:32:04 +0000, "Russell Belair"<br></div><div><<a href="mailto:russell.belair@dreamlan.biz">russell.belair@dreamlan.biz</a>> wrote:<br></div><div><br></div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div>This is not a function native to openbox, but you can accomplish it with<br></div><div>xdotool and wmctrl.<br></div><div><br></div><div><a href="https://askubuntu.com/questions/634034/display-the-current-date-time-in-the-windows-title">https://askubuntu.com/questions/634034/display-the-current-date-time-in-the-windows-title</a><br></div></blockquote><div><br></div><div>Cute, but they all fail to remove the date (restore the original title) when<br></div><div>the window loses focus. So you end up with a desktop full of frozen clocks<br></div><div>;).<br></div></blockquote><div><br></div><div>This is not something I have ever come across, but it should be possible.</div><div>Essentially, you'd have to write yourself a daemon script that constantly checks all windows, removes the time from those that don't have focus, and sets it on the one that has focus. Under X11, there's various utilities that would allow to modify a window's properties. Xdotool is one, but xdo is another one. There was also something slightly more low-level, but the name eludes me atm. starts with x of course. Maybe check "xorg-utils" or "x11-utils".</div><div>Personally, I wouldn't use python since it constantly spawns external commands, a shell script seems more suitable in such a case, but who knows.</div><div><br></div><div>A much easier alternative would be a pipemenu for one of your menus.</div><div> </div><div><br></div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div><br></div><div>-- Johan<br></div><div>_______________________________________________<br></div><div>openbox mailing list<br></div><div><a href="mailto:openbox@icculus.org">openbox@icculus.org</a><br></div><div><a href="http://icculus.org/mailman/listinfo/openbox">http://icculus.org/mailman/listinfo/openbox</a><br></div></blockquote><div><br></div><div><span></span></div></body></html>