i3bar: support pango markup #1468

Closed
acrisci opened this Issue Feb 11, 2015 · 5 comments

Comments

Projects
None yet
4 participants
@acrisci
Member

acrisci commented Feb 11, 2015

Pango has a markup format that can be used to adjust things like font weight, colors, underlining, etc.

i3bar should parse status full_text property and workspace names as pango markup. This would allow more customization of the bar and take some pressure off the i3bar format to support these features.

@i3bot

This comment has been minimized.

Show comment
Hide comment
@i3bot

i3bot Feb 11, 2015

I don’t see a link to logs.i3wm.org. Did you follow http://i3wm.org/docs/debugging.html? (In case you actually provided a link to a logfile, please ignore me.)

i3bot commented Feb 11, 2015

I don’t see a link to logs.i3wm.org. Did you follow http://i3wm.org/docs/debugging.html? (In case you actually provided a link to a logfile, please ignore me.)

@i3bot

This comment has been minimized.

Show comment
Hide comment
@i3bot

i3bot Feb 11, 2015

I don’t see a version number. Could you please copy & paste the output of i3 --version into this issue?

i3bot commented Feb 11, 2015

I don’t see a version number. Could you please copy & paste the output of i3 --version into this issue?

@stapelberg

This comment has been minimized.

Show comment
Hide comment
@stapelberg

stapelberg Feb 11, 2015

Member

Sounds good. As an aside: if you add “feature request” or “enhancement” to the title of your issue, the bot will shut up ;).

Member

stapelberg commented Feb 11, 2015

Sounds good. As an aside: if you add “feature request” or “enhancement” to the title of your issue, the bot will shut up ;).

acrisci added a commit to acrisci/i3 that referenced this issue Feb 12, 2015

i3bar: use Pango markup
Parse text within workspace buttons and the i3bar statusline as Pango
markup. This lets people specify things like font weight, text color,
background color, font size, and font family in the text of i3bar.

fixes #1468

acrisci added a commit to acrisci/i3 that referenced this issue Feb 12, 2015

i3bar: use Pango markup
Parse text within workspace buttons and the i3bar statusline as Pango
markup. This lets people specify things like font weight, text color,
background color, font size, and font family in the text of i3bar.

fixes #1468
@Airblader

This comment has been minimized.

Show comment
Hide comment
@Airblader

Airblader Feb 12, 2015

Member

What happens with this patch if I'm using markup with a non-pango font?

Member

Airblader commented Feb 12, 2015

What happens with this patch if I'm using markup with a non-pango font?

@acrisci

This comment has been minimized.

Show comment
Hide comment
@acrisci

acrisci Feb 21, 2015

Member

@Airblader it won't work. However, every font can be rendered with pango just by putting pango: before the font string. I think it would be a good idea to always render with pango.

Member

acrisci commented Feb 21, 2015

@Airblader it won't work. However, every font can be rendered with pango just by putting pango: before the font string. I think it would be a good idea to always render with pango.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment