[xmonad] Putting PID into window title?
Brandon S Allbery KF8NH
allbery.b at gmail.com
Thu Apr 28 15:08:24 CEST 2011
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 4/27/11 22:11 , Joseph Garvin wrote:
> child windows and main windows up easily. I have checked that the app
> in question correctly sets the _NET_WM_PID property, but I don't see
> anything in Decoration or SimpleDecoration for letting me add my own
> text. Is there a way to do this?
Proper behavior per EWMH is for the window manager to set
_NET_WM_VISIBLE_NAME, probably in the manageHook but possibly in
handleEventHook, and then to use that when it exists instead of _NET_WM_NAME
or WM_NAME.
That said, Decoration is certainly able to do it, although it doesn't come
with a "canned" configuration that does so. You would override the
"decorate" method. With SimpleDecoration I'd (after using a handleEventHook
to set _NET_WM_VISIBLE_NAME as above) change it to use a modified getName
(which it currently gets from XMonad.Util.NamedWindows) that knows about
_NET_WM_VISIBLE_NAME.
- --
brandon s. allbery [linux,solaris,freebsd,perl] allbery.b at gmail.com
system administrator [openafs,heimdal,too many hats] kf8nh
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk25ZsgACgkQIn7hlCsL25XtcgCeMyAmxPRUntCwh25nGVaECPQr
0VMAoIkaQQLiuVnKXuFme/+6YU9xs4AG
=3iVK
-----END PGP SIGNATURE-----
More information about the xmonad
mailing list