You are not logged in.

#1 2012-05-08 15:20:36

kcirick
Member
Registered: 2010-06-21
Posts: 364

tint2 task icons

Hello,

I feel like this is such a newbie question and should be able to find easily on wiki, but alas I cannot find what I'm looking for.

I have my tint2 bar configured so the task list consist only of icons (no texts). Here are two things I would like to do:
  - Change the icon theme. How does one go about doing this? (this is probably somewhere in the wiki I've missed... perhaps someone could point me to that wiki)
  - For certain applications, there is no icons associated with it (like mupdf). I've tried to create mupdf.desktop under ~/.local/share/applications, but that doesn't seem to do the trick. How do I change the icon for particular application? I would also like to change the icon for rxvt, which right now is displayed as default "unknown application" icon.

I hope I was clear on what I want...

Thanks in advance!

Offline

#2 2012-05-08 18:32:59

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: tint2 task icons

The icons are not taken from a theme, they are drawn from the application.

Urxvt does not have an icon (by default), but this one is easy to add.  You can put an option in your Xdefaults/Xresources for urxvt.iconFile and give it an image.  You may want to double check the name of the option as I only used it briefly.

For most other apps, your best bet is to get xseticon from AUR.  You can associate any image you'd like as the icon for an X11 app and that icon will then be shown in tint2's tasks.

You can then put all the xseticon commands in a startup script so you don't have to redo it every time.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2012-05-08 19:10:47

kcirick
Member
Registered: 2010-06-21
Posts: 364

Re: tint2 task icons

Thanks for you tips Trilby!

the urxvt trick apparently works only if you have after-image version of urxvt, which is on AUR. For simplicity's sake, I'll keep the official urxvt from the main repo.

As for xseticon, it seems you can't specify a window class, only window id and name, which unfortunately is kind of useless. There is probably a work around for this (i.e. startup scripts as you suggested), but I was hoping for a more straight forward solution, so I'll just live with what I have, which is only a minor annoyance anyway

Cheers

Offline

Board footer

Powered by FluxBB