You are not logged in.

#1 2014-09-07 01:20:32

ArchAddict
Member
Registered: 2014-06-29
Posts: 19

[SOLVED] How to draw basic images into the i3 status bar?

For example, in this dwm config, in the top right there are images for mail and sound etc.

http://fc06.deviantart.net/fs70/i/2012/ … 4wy9du.png

I really like this and I am already using conky to send JSON content to status_command, I have colors worked out, but how can I render images?

Last edited by ArchAddict (2014-09-08 14:05:36)

Offline

#2 2014-09-07 01:24:13

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] How to draw basic images into the i3 status bar?

That screesnhot isn't of sufficient resolution to accurately determine, but it is probably just one of the hacked fonts with those glyphs (something like termsyn). There are threads in Community Contributions with the details...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2014-09-07 01:27:07

ArchAddict
Member
Registered: 2014-06-29
Posts: 19

Re: [SOLVED] How to draw basic images into the i3 status bar?

jasonwryan wrote:

That screesnhot isn't of sufficient resolution to accurately determine, but it is probably just one of the hacked fonts with those glyphs (something like termsyn). There are threads in Community Contributions with the details...

Thanks for the swift reply jason.

Here is a better image: http://i.imgur.com/eEtfI.png

I can see why hacked fonts would work, are you sure that its indeed a hacked font?

Offline

#4 2014-09-07 02:00:12

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,842
Website

Re: [SOLVED] How to draw basic images into the i3 status bar?

@OP: do you mean like this:
http://jasonwryan.com/blog/2009/11/21/d … li-in-dwm/
It's a very old blog post though -- @jasonwryan using yaourt?
Surely not...
yikes
Also: https://github.com/ashinkarov/i3-extras … cons.patch

Last edited by Head_on_a_Stick (2014-09-07 02:01:59)


Jin, Jîyan, Azadî

Offline

#5 2014-09-07 02:32:08

ArchAddict
Member
Registered: 2014-06-29
Posts: 19

Re: [SOLVED] How to draw basic images into the i3 status bar?

Head_on_a_Stick wrote:

@OP: do you mean like this:
http://jasonwryan.com/blog/2009/11/21/d … li-in-dwm/
It's a very old blog post though -- @jasonwryan using yaourt?
Surely not...
yikes
Also: https://github.com/ashinkarov/i3-extras … cons.patch

This is exactly what I needed. It seems like they are xbm files containing bits, interesting. Would I be able to implement this into the conky JSON array that I send to status_command through conky? If so, how would I?

Offline

#6 2014-09-07 02:51:10

progandy
Member
Registered: 2012-05-17
Posts: 5,280

Re: [SOLVED] How to draw basic images into the i3 status bar?

I use FontAwesome unicode codepoints for my icons, my i3 font is set like this:

font pango:Cousine, FontAwesome 8

Edit: my i3status config is like this then, for conky, just make sure it sends the utf8 icon character to i3bar.

tztime local {
        format = " %Y-%m-%d %H:%M:%S"
}

Last edited by progandy (2014-09-07 02:57:28)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#7 2014-09-07 03:21:55

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] How to draw basic images into the i3 status bar?

Head_on_a_Stick wrote:

It's a very old blog post though -- @jasonwryan using yaourt?
Surely not...
yikes

We all have our dirty laundry. tongue


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#8 2014-09-07 05:51:25

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

Re: [SOLVED] How to draw basic images into the i3 status bar?

Using Font Awesome as Progandy suggested is the easiest way to do this, though there is a patched version of i3bar that can use the xbm icons in the above screenshots.

Offline

#9 2014-09-07 18:36:18

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

Re: [SOLVED] How to draw basic images into the i3 status bar?

I read about a bar that could draw images and html a while ago, here it is:
https://bbs.archlinux.org/viewtopic.php?id=177726
Other than that i know nothing about it.

Offline

#10 2014-09-08 14:05:16

ArchAddict
Member
Registered: 2014-06-29
Posts: 19

Re: [SOLVED] How to draw basic images into the i3 status bar?

ANOKNUSA wrote:

Using Font Awesome as Progandy suggested is the easiest way to do this, though there is a patched version of i3bar that can use the xbm icons in the above screenshots.

Used FontAwesome and got a really nice setup going, thanks for the help guys.

Offline

Board footer

Powered by FluxBB