Re: how to make icon images opaque? or get rid of icon images altogether?

Rhialto <[email protected]> Tue, 5 Oct 2021 21:30:04 +0200
Newsgroups gmane.comp.window-managers.ctwm
Message-ID <[email protected]>
On Fri 01 Oct 2021 at 22:36:09 -0700, Jonathan Thornburg wrote:
> When ctwm iconifies a window, it usually (e.g., for xterm, xpdf, firefox,
> & iridium) shows an icon which has a transparent image, and vertically
> immediately below this there is an opaque textbox with the icon or
> application name.  Is there a way to make all icon images opaque other
> than my supplying new images for every application via the .ctwmrc
> /Icons/ variable?
> 
> And/or, is there a way to get rid of the icon images entirely (so icons
> would show only the opaque textbox with the icon or application name)?
> I thought of setting the /IconSize/ variable to "1x1", but then there's
> that magic phrase in the ctwm man page, "If an icon with the exact size
> is not available, one with the nearest (area) size will be chosen.".
> 
> I've looked through 'man ctwm' and https://www.ctwm.org/manpage.html
> (which is the same), but not found precisely what I'm looking for.
> I'm currently using ctwm 4.0.3 on OpenBSD 7.0 (snapshot from 2021-09-27),
> but I could easily compile a different version from source if need be.

Some programs set their own icon(s). You can see them with the xprop
program: _NET_WM_ICON is displayed as a sort of ascii-art.

For programs that don't specify their own icon, you can give a default
with UnknownIcon "xpm:unknown1.xpm". There is also ForceIcons, to
override client-supplied pixmaps with those given in Icons{}, but this
does not override _NET_WM_ICON icons if there is nothing in Icons{}.

But since the names in Icons{} are regular expressions, you should be
able to just always assign an empty icon with 

    ForceIcons
    Icons { ".*" "xpm:empty.xpm" }

if you make an empty icon. Or whatever other thing you want.


-Olaf.
-- 
___ "Buying carbon credits is a bit like a serial killer paying someone else to
\X/  have kids to make his activity cost neutral." -The BOFH    falu.nl@rhialto
signature.asc (application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEFVAhiiWjqgwBVdQAmYnGRWHD+9MFAmFcp7gACgkQmYnGRWHD
+9MhsAgAiI1S8WvkG1nUuI4ETf1PhgNqNKEvAteBQXwvzUi5wZ6jpEq/NJRIzPeX
6wXCZJrAhIJmA974zAAhesuIlidN2rxz7Nmnt5KHRPV8EHuuN2lWeGEUp+fCtx+U
c6vCjJCL0o9iu8k2VRyR17jMeju5ixJbLZaYWT+U1qQAFpivCyylzA6AS1uWG3JJ
FpSZGSFuLgY8Hx5tMxuhEaMiiuKwoauSm1a/I2knvkjC3jcBgbf/iqolMs6c/zG4
F5lmttOwMs9e9p2dITqHhBZEi95hh2yCjKemcs5/4ybFgb/ejQo5PyA2ICdINuy7
ydeyEBqbBr2CuQvRGf/aQBBNQhEoYA==
=FM5Y
-----END PGP SIGNATURE-----