The i3 FAQ has migrated to https://www.reddit.com/r/i3wm/. All content here is read-only.
Ask Your Question
0

Off center text in status bar

asked 2015-05-03 18:05:23 +0000

TheRoach gravatar image

updated 2015-05-03 22:35:24 +0000

The text in my status bar and workspace buttons floats to the top of the bar. I would like it to be centered vertically. Is this possible?

I am using i3 gaps by airblader, but i recall having the same issue with vanilla i3.

Here is an image of the off center text i am describing: default height

That is with the default height. The effect is more pronounced if i use a larger height. larger height

In both pictures the font i was using was size 10 font awesome

Imgur Album

Any help would be much appreciated.

edit retag flag offensive close merge delete

Comments

I can't seem to upload images or files. The loading icon never goes away and when i press "ok" it just stops. Any suggestions on how to show images?

TheRoach gravatar imageTheRoach ( 2015-05-03 18:14:59 +0000 )edit

Given that vanilla i3bar can't change its height, please report this as an issue against my fork on Github. For images you can use imgur or some similar service.

Airblader gravatar imageAirblader ( 2015-05-03 18:54:18 +0000 )edit

(And my name isn't describing the picture of someone who doesn't have to go to the toilet, so please no extra "d" :) )

Airblader gravatar imageAirblader ( 2015-05-03 18:55:06 +0000 )edit

I just realized i only have the issue if i use font awesome. Several other fonts showed no issue. Do you still want this issue reported?

TheRoach gravatar imageTheRoach ( 2015-05-03 22:36:41 +0000 )edit

Sorry about your name, it's been fixed :P Thank you for your work on the fork!!

TheRoach gravatar imageTheRoach ( 2015-05-03 22:37:15 +0000 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-05-03 22:41:28 +0000

TheRoach gravatar image

updated 2015-05-03 22:42:03 +0000

The issue seems to be with the font i was using, font awesome. The only reason i was using font awesome was for their icons. You can set up your fonts so that there is a fallback font if the symbols aren't in the first font. So setting font awesome as a fall back font allows you to have an arbitrary font for text and font awesome for icons only.

The following config lines have solved my problem.

 bar {
      font pango: Inconsolata, FontAwesome 10
}

This will both center the text and display the icons you want.

edit flag offensive delete link more

Comments

Nevertheless there was a bug in the alignment of the separators which I fixed. So thanks anyway!

Airblader gravatar imageAirblader ( 2015-05-04 03:47:22 +0000 )edit

Question Tools

1 follower

Stats

Asked: 2015-05-03 18:05:23 +0000

Seen: 143 times

Last updated: May 03