Re: [dev] dwm taskbar icons via pcf font

From: Le Tian <tianeast_AT_gmail.com>
Date: Wed, 18 May 2011 10:11:20 -0400

On Tue, May 17, 2011 at 3:19 PM, Robert Ransom <rransom.8774_AT_gmail.com>wrote:

> On Tue, 17 May 2011 20:45:17 +0300
> Le Tian <tianeast_AT_gmail.com> wrote:
>
> > Recently I've bumped into a thread with a nice solution to takbar icons
> in
> > dwm via editing any pcf font. So I converted pcf to bdf and with gbdfed
> util
> > created some new icons. After that I reconverted new bdf font to pcf and
> put
> > it into a font folder, after that I modified my config.h so it grabbed
> this
> > fancy font of mine. Then I edited my config script for a dwm taskbar by
> > adding my icons index numbers
> > like this:
> >
> > cpu_str=$(echo -e cpu:'\0000')
> >
> > 0000 is my first icon number in the font table in gbdfed, but that do not
> > work, so I'm asking now if I am wrong with syntax, how do I point to
> these
> > icons that I created?
>
> You probably won't be able to display character 0, because most C
> programs use that to indicate the end of a string.
>
>
> Robert Ransom
>

well, yeah I tried, but its not the issue.
I wonder if anybody in dwm community managed to make taskbar icons this way.
I have a screenshot here http://bildr.no/view/664213
<http://bildr.no/view/664213>This method seems pretty nice, but somehow I
still can't make my modified font icons work, I made an icon under 0045
index, that replaced "E" letter, but after setting the font in xterm via
"setfont /usr/share/fonts/myfancyfont.pcf.gz" and running echo -e "\x45", I
still get an "E" letter, as if nothing had been modified..(scratch).

-- 
Tian
Received on Wed May 18 2011 - 16:11:20 CEST

This archive was generated by hypermail 2.2.0 : Wed May 18 2011 - 16:12:02 CEST