Discussion:
[Fluxbox-users] window icons
Valter Toffolo
2013-02-28 02:44:11 UTC
Permalink
Hello,

I was wondering if there's any way I can use custom icons for applications
that don't set one, like urxvt or gvim, which I use a lot. I'm talking
about the icon which appears on the titlebar, toolbar and workspace menu. I
know this is set by the application, but is there a way to override that?

I tried messing with xprop as I found out some applications set the whole
xpm as a window property, but I couldn't get the right syntax. Anyway, I
think it would be nice if we could override window icons through the apps
file.

Thanks a lot!

Valter.
Raphaël
2013-02-28 09:45:30 UTC
Permalink
Post by Valter Toffolo
Hello,
I was wondering if there's any way I can use custom icons for applications
that don't set one, like urxvt or gvim, which I use a lot.
The "iconFile" .Xresources (.Xdefaults) could do what you want.
I believe it's a standard Xlib one supported by most X applications.


++
Valter Toffolo
2013-02-28 13:35:33 UTC
Permalink
Post by Raphaël
Post by Valter Toffolo
I was wondering if there's any way I can use custom icons for applications
that don't set one, like urxvt or gvim, which I use a lot.
The "iconFile" .Xresources (.Xdefaults) could do what you want.
I believe it's a standard Xlib one supported by most X applications.
It works with rxvt-unicode-256color, thanks Raphael. Unfortunatelly it
doesn't work with rxvt-unicode-lite or vim-gtk. (I'm using Ubuntu
package names here)

Any other way to work around that?
Raphaël
2013-02-28 17:40:19 UTC
Permalink
Post by Valter Toffolo
Post by Raphaël
Post by Valter Toffolo
I was wondering if there's any way I can use custom icons for applications
that don't set one, like urxvt or gvim, which I use a lot.
The "iconFile" .Xresources (.Xdefaults) could do what you want.
I believe it's a standard Xlib one supported by most X applications.
It works with rxvt-unicode-256color, thanks Raphael. Unfortunatelly it
doesn't work with rxvt-unicode-lite or vim-gtk. (I'm using Ubuntu
package names here)
indeed, that was a wrong assumption: this resource is specific to urxvt.
Xterm uses "iconName" which, according to /usr/include/X11/Shell.h,
*could* be the "generic" name.
Valter Toffolo
2013-03-01 14:44:58 UTC
Permalink
Post by Raphaël
indeed, that was a wrong assumption: this resource is specific to urxvt.
Yes, it seems to be very application specific. I still can't set an
icon for gvim. If gvim doesn't support Xresources at all, can I still
set an icon by any other mean?


I know it's not exactly Fluxbox related, though I expected Fluxbox
could have any way to override the application icon, but I'm glad I
got some help!

Thanks again!
Valter Toffolo
2013-03-01 23:41:14 UTC
Permalink
(sorry for double-posting)

Well, actually gvim has a working icon. It turned out that my .vimrc
has a guioptions disabling it. Sorry for the noise.

For now all the software I use finally has an icon. I was looking
forward to a generic solution, but I'll settle with that.
Post by Valter Toffolo
Post by Raphaël
indeed, that was a wrong assumption: this resource is specific to urxvt.
Yes, it seems to be very application specific. I still can't set an
icon for gvim. If gvim doesn't support Xresources at all, can I still
set an icon by any other mean?
I know it's not exactly Fluxbox related, though I expected Fluxbox
could have any way to override the application icon, but I'm glad I
got some help!
Thanks again!
Post by Raphaël
indeed, that was a wrong assumption: this resource is specific to urxvt.
Yes, it seems to be very application specific. I still can't set an
icon for gvim. If gvim doesn't support Xresources at all, can I still
set an icon by any other mean?
I know it's not exactly Fluxbox related, though I expected Fluxbox
could have any way to override the application icon, but I'm glad I
got some help!
Thanks again!
Alexandre Domi
2013-02-28 12:38:44 UTC
Permalink
You can for urxvt, using the method Raphaël told about, I use it too.
For others apps I don't know, I guess if they all have this kind of option
it'd be doable...
Post by Valter Toffolo
Post by Valter Toffolo
Hello,
I was wondering if there's any way I can use custom icons for
applications
Post by Valter Toffolo
that don't set one, like urxvt or gvim, which I use a lot.
The "iconFile" .Xresources (.Xdefaults) could do what you want.
I believe it's a standard Xlib one supported by most X applications.
++
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Fluxbox-users mailing list
https://lists.sourceforge.net/lists/listinfo/fluxbox-users
Loading...