You are not logged in.

#1 2014-11-24 09:37:08

sm4tik
Member
Registered: 2006-11-05
Posts: 248

[SOLVED] i3bar, using images as workspace indicators?

Hi,

I'm 90% done with my initial i3wm setup and it just crossed my mind if there was a way of using images as workspace indocators instead of just numbers/names? Does anyone know if such a patch exists? I'm pretty happy with the current look of my (xbm patched) i3bar so I really don't feel the need to replace it.

edit: or if the xbm patch already supports such an action, how do I configure it?

Last edited by sm4tik (2014-11-24 23:41:16)

Offline

#2 2014-11-24 12:30:19

cippaciong
Member
Registered: 2010-06-21
Posts: 104
Website

Re: [SOLVED] i3bar, using images as workspace indicators?

When you say images, do you mean icon-like fonts or actual png/svg icons?

Offline

#3 2014-11-24 13:32:41

sm4tik
Member
Registered: 2006-11-05
Posts: 248

Re: [SOLVED] i3bar, using images as workspace indicators?

Actual images. Xbm's would make the most sense as there's a patch for the status bar already, svg's would be a bit of an overkill.

Offline

#4 2014-11-24 15:12:58

ANOKNUSA
Member
Registered: 2010-10-22
Posts: 2,141

Re: [SOLVED] i3bar, using images as workspace indicators?

There's a patch to use xbm icons here.

EDIT: Seems you may have already found it. I'm not aware of any other attempt to add images to i3bar; you can use a glyph font like Font Awesome or Entypo. That's what I did.

Last edited by ANOKNUSA (2014-11-24 15:14:58)

Offline

#5 2014-11-24 17:01:47

sm4tik
Member
Registered: 2006-11-05
Posts: 248

Re: [SOLVED] i3bar, using images as workspace indicators?

ANOKNUSA wrote:

There's a patch to use xbm icons here.

EDIT: Seems you may have already found it. I'm not aware of any other attempt to add images to i3bar; you can use a glyph font like Font Awesome or Entypo. That's what I did.

That seems to be the only solution for now, but it would make me font-dependent and that's not what I'm after. If I can't find a better solution, I think I might just edit the font currently in use and replace some of the unused characters with some pixels. It's not at the top of my list anyhow, so we'll see how things turn out.

Offline

#6 2014-11-24 19:54:37

ANOKNUSA
Member
Registered: 2010-10-22
Posts: 2,141

Re: [SOLVED] i3bar, using images as workspace indicators?

No need to edit an existing font. You can declare multiple fonts in your config file. If all declared fonts are present, i3 should render characters from any of them.

Offline

#7 2014-11-24 23:20:45

sm4tik
Member
Registered: 2006-11-05
Posts: 248

Re: [SOLVED] i3bar, using images as workspace indicators?

Heck, you learn something new every day. I only now discovered xfd, which makes glyph hunting a tad easier.. and using the right encoding with the font helps a bit also wink I'll settle for some glyphs from the font I'm using for now. If I can't find what I'm looking for (..like I knew?), I'll look more into configuring multiple fonts for i3. I thought configuring multiple fonts would just be to fallback for a working font as a whole, not to use a glyph from another if it couldn't find it from the main font. Thanks for the tip!

Offline

Board footer

Powered by FluxBB