Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I am running on Arch Linux using Openbox as the window manager. I want to assign icons to some programs that are using the generic icon.

This is helpful because when I do an Alt-Tab, I will know the program based on the icon it shows. Currently, I have some programs, like Xterm and Xpdf, using the default icon and doing an Alt-Tab when both are open can be confusing.

I have Firefox, Geany and Leafpad installed and I noticed that they have icons during an Alt-Tab.

So how do I set this up for the other programs that don't?

share|improve this question
add comment

1 Answer

If you are talking about icons in your panel (like tint2, for example), then you can use xseticon (there is a PKGBUILD in AUR).

You can set an icon for an application like so:

xseticon -id "$WINDOWID" path/to/icon.png
share|improve this answer
I am not using Tint2 or any panel for that matter. I just want to change the icon of the program when Alt-Tab is pressed. –  riclags Jul 16 '11 at 11:44
Did you try xseticon? Did it not work? –  jasonwryan Jul 16 '11 at 19:45
I just tried it now. And it works! Thanks for this. –  riclags Jul 17 '11 at 15:01
And I also noticed that when I close the window that I have assigned an icon to, and reopen it, it goes back to the default icon (and not the one I assigned). :( –  riclags Jul 17 '11 at 15:13
if [ "$TERM" = "rxvt-unicode-256color" ]; then xseticon -id "$WINDOWID" /usr/share/pixmaps/urxvtc.png fi –  jasonwryan Jul 19 '11 at 19:55
show 2 more comments

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.