You are not logged in.

#1 2010-11-06 11:50:51

jrs
Member
Registered: 2009-12-03
Posts: 23

[solved] tint2 app icons + rxvt

1. Where are the standard icons tint2 uses? I can't find them.

2. How do I use this option of rxvt? It doesn't work with the image file location/name

man urxvt | grep icon
       -icon file
           Compile afterimage: Use the specified image as application icon. This is
           application window; resource iconFile.
           `*' characters. Also sets the icon and title name.

I would like to start by keystroke e.g. mutt in urxvt with a specified icon, which also should be used by tint2. Is that possible? WM is xmonad.

Last edited by jrs (2010-11-08 13:32:50)

Offline

#2 2010-11-06 14:45:30

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: [solved] tint2 app icons + rxvt

For tint2, which icons do you want to change? Different apps may have their icons in different folders.

Offline

#3 2010-11-06 18:34:07

jrs
Member
Registered: 2009-12-03
Posts: 23

Re: [solved] tint2 app icons + rxvt

Thanks for the reply. Most importantly I want to change the icon of urxvt. I already tried the -name argument, but it didnt change anything in tint2. There is an icon in /usr/share/pixmaps/rxvt-unicode.png, but in tint2 only the standard icon is used. It would be perfect if i could change it by a cmd line argument of urxvt or a script.

Offline

#4 2010-11-06 18:45:06

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: [solved] tint2 app icons + rxvt

Have you tried rxvt-unicode-afterimage?

http://aur.archlinux.org/packages.php?ID=21329

Its marked out of date though.

Offline

#5 2010-11-07 10:53:04

jrs
Member
Registered: 2009-12-03
Posts: 23

Re: [solved] tint2 app icons + rxvt

I couldnt install it because the libafterimage source is not available.
As far as  I understand, the app itself decides which icon will be used, if it's from the icon theme or a fixed icon, am I right?

But why doesnt tint2 use a specific icon for xterm and rxvt? As far as I remember, gnome-panel uses the icon from /usr/share/pixmaps

Offline

#6 2010-11-07 18:58:55

thil77
Member
Registered: 2008-08-29
Posts: 52

Re: [solved] tint2 app icons + rxvt

tint2 search the icon like this :
- first, tint2 ask the Window Manager if there is an icon (see freedesktop specification _NET_WM_ICON)
- second, tint2 try XGetWMHints.icon_pixmap (see ICCCM specification)
- third, tint2 use it's own default icon located in /usr/share/tint2/default_icon.png

tint2 try to follow the standard specification and doesn't duplicate the job that sould be done by the application.
it's up to the application to define the icon (and eventually the theme) to be used.
however, it's possible tint2 have some bug doing this... will have a look.

Last edited by thil77 (2010-11-07 19:18:50)

Offline

#7 2010-11-08 08:06:29

quigybo
Member
Registered: 2009-01-15
Posts: 223

Re: [solved] tint2 app icons + rxvt

To set the icon of any X11 app you can use xseticon (AUR).

EDIT: This is particularly easy to do with terminals as they set the environment variable $WINDOWID, making it easy to call xseticon in your .bashrc. See the help/usage output of xseticon for more info.

Last edited by quigybo (2010-11-08 08:12:50)

Offline

#8 2010-11-08 13:32:14

jrs
Member
Registered: 2009-12-03
Posts: 23

Re: [solved] tint2 app icons + rxvt

quigybo wrote:

To set the icon of any X11 app you can use xseticon (AUR).

EDIT: This is particularly easy to do with terminals as they set the environment variable $WINDOWID, making it easy to call xseticon in your .bashrc. See the help/usage output of xseticon for more info.

Exactly what I needed!

Thanks for the explanation thil77

Offline

Board footer

Powered by FluxBB