Show name/title of current window in status bar?

Does anyone have ready-made code to show the name or title of the current window in the status bar? Thanks, Kai

kai:
Does anyone have ready-made code to show the name or title of the current window in the status bar?
Yeah, it gets asked fairly regularly. You use a loghook to inspect the focused windows' name, as in this post, http://article.gmane.org/gmane.comp.lang.haskell.xmonad/660 -- Don

On Wed, Jul 18, 2007 at 01:26:11PM +1000, Donald Bruce Stewart wrote:
kai:
Does anyone have ready-made code to show the name or title of the current window in the status bar?
Yeah, it gets asked fairly regularly. You use a loghook to inspect the focused windows' name, as in this post,
I've just attempted to submit a patch (my first), adding this to DynamicLog.hs; a couple of imports were needed and a small tweak to the code due to changes since that message. Nothing difficult to work out from the above, but maybe having it as another option in the contribs is helpful to someone. Oh yeah, and since very long names can be annoying, I added a "maxlen" parameter. Cheers, -Andy -- Andy Gimblett Computer Science Department University of Wales Swansea http://www.cs.swan.ac.uk/~csandy/

On Wed, Jul 18, 2007 at 02:15:44PM +0100, Andy Gimblett wrote:
I've just attempted to submit a patch (my first), adding this to DynamicLog.hs;
Hmmm, looks like that mail didn't make it through. Thought it might not - some sendmail configuration required, I think. Will try again when I have it sorted out. :-) -Andy -- Andy Gimblett Computer Science Department University of Wales Swansea http://www.cs.swan.ac.uk/~csandy/
participants (3)
-
Andy Gimblett
-
dons@cse.unsw.edu.au
-
Kai Grossjohann