You are not logged in.

#1 2018-11-01 10:31:09

uro
Member
Registered: 2018-10-31
Posts: 4

Fontawesome icons on polybar not displaying

Hi, i just installed archlinux  + i3gaps in my x240

i setteup polybar + other configs using dotfiles, but the icons are not displaying in my polybar correctly. Here is what the result
when i hover over the supposed icons, it let me to click, but the icon isnt working (the button action works but without icon)

execution of "fc-list | grep awesome"

https://i.imgur.com/m6uLc3A.png


execution of "fc-match"
https://i.imgur.com/mOdvda8.png


and finally polybar config file fonts

https://i.imgur.com/lIb1c9T.png



can you help me? any idea or what should i try ?

Last edited by uro (2018-11-01 10:32:17)

Offline

#2 2018-11-01 12:26:44

Makersmarx
Member
From: Costa Rica
Registered: 2018-04-17
Posts: 24

Re: Fontawesome icons on polybar not displaying

I had issues with FA5 due to them putting certain icons behind a pay wall. Its my understanding the only "free" icons are solid. My solution was to utilize FA4 within the AUR https://aur.archlinux.org/packages/ttf-font-awesome-4/

I am no longer using Polybar, jumped over to i3status-rust, but here is a link to the discussion that sent me back to FA4 when I originally had a similar problem. https://github.com/jaagr/polybar/issues/924

Offline

#3 2018-11-01 16:56:02

uro
Member
Registered: 2018-10-31
Posts: 4

Re: Fontawesome icons on polybar not displaying

Makersmarx wrote:

I had issues with FA5 due to them putting certain icons behind a pay wall. Its my understanding the only "free" icons are solid. My solution was to utilize FA4 within the AUR https://aur.archlinux.org/packages/ttf-font-awesome-4/

I am no longer using Polybar, jumped over to i3status-rust, but here is a link to the discussion that sent me back to FA4 when I originally had a similar problem. https://github.com/jaagr/polybar/issues/924


ok, i removed all fontawesome fonts and then i only installed ttf-font-awesome-4

then correctly commented the remaining font in polybar config, leaving only the reference of Font-awesome 4


still no icons in polybar.....

Offline

#4 2018-11-01 18:19:42

Makersmarx
Member
From: Costa Rica
Registered: 2018-04-17
Posts: 24

Re: Fontawesome icons on polybar not displaying

Are you running polybar - git or stable? Can you please link your dots?

Also polybar -l info BAR should output what fonts have issues.

Last edited by Makersmarx (2018-11-01 18:31:17)

Offline

#5 2018-11-01 21:03:52

uro
Member
Registered: 2018-10-31
Posts: 4

Re: Fontawesome icons on polybar not displaying

Makersmarx wrote:

Are you running polybar - git or stable? Can you please link your dots?

Also polybar -l info BAR should output what fonts have issues.


this is the output of "polybar -l info BAR":

Loading config: /home/uro/.config/polybar/config
* Loaded monitor eDP-1 (1366x768+0+0)
* Found matching X resource "color20" (value=base04)
* Bar geometry: 1366x30+0+0
* Found matching X resource "color20" (value=base04)
* Found matching X resource "color19" (value=base02)
* Found matching X resource "color20" (value=base04)
* Found matching X resource "color19" (value=base02)
* Found matching X resource "color9" (value=base08)
* Found matching X resource "color18" (value=base01)
* Found matching X resource "color10" (value=base0B)
error: module/mpd: Connection refused
* Found matching X resource "color8" (value=base03)
warn: internal/volume is deprecated, use internal/alsa instead
* Found matching X resource "color2" (value=base0B)
* Starting application
* Starting module/i3
* Starting module/mpd
* Starting module/cpu
* Starting module/memory
* Starting module/volume
* Starting module/battery
* Starting module/backlight
* Starting module/scriptdate
* Starting module/powermenu
* module/scriptdate: Invoking shell command: "date +' %I:%M%p'"
error: module/mpd: Connection refused
* Entering event loop (thread-id=1)
* Eventqueue worker (thread-id=10)
* Configured DPI = 96x96
* Loaded font "SF\ Pro\ Text:style=Regular:size=9" (name=DejaVu Sans, offset=0, file=/usr/share/fonts/TTF/DejaVuSans.ttf)
* Loaded font "FontAwesome:style=Regular:size=10" (name=FontAwesome, offset=0, file=/usr/share/fonts/OTF/FontAwesome.otf)
* Bar window: 0x0e00002
* Activating tray manager
* Tray window: 0x0e00006
error: tray: Failed to put tray above 0x0e00002 in the stack (XCB_MATCH (8))
* module/i3: Rebuilding cache
* module/mpd: Rebuilding cache
* module/cpu: Rebuilding cache
* module/memory: Rebuilding cache
* module/volume: Rebuilding cache
* module/battery: Rebuilding cache
* module/backlight: Rebuilding cache
* module/scriptdate: Rebuilding cache
* module/powermenu: Rebuilding cache
* Redrawing bar window
warn: Dropping unmatched character  (U+e028)
* module/i3: Rebuilding cache
* Redrawing bar window
warn: Dropping unmatched character  (U+e028)
error: module/mpd: Connection refused
* module/cpu: Rebuilding cache
* Redrawing bar window
warn: Dropping unmatched character  (U+e028)
error: module/mpd: Connection refused
* module/cpu: Rebuilding cache
* module/battery: Rebuilding cache
* Redrawing bar window
warn: Dropping unmatched character  (U+e028)
* Notifying pending tray clients
* Processing docking request from 0x100001a
* Redrawing bar window
* Processing docking request from 0x180001d
warn: Dropping unmatched character  (U+e028)
* Redraw tray container (id=0x0e00006)
* Redraw tray container (id=0x0e00006)
* Redraw tray container (id=0x0e00006)
* Redrawing bar window
* Redraw tray container (id=0x0e00006)
warn: Dropping unmatched character  (U+e028)
* Redraw tray container (id=0x0e00006)
error: module/mpd: Connection refused
* module/cpu: Rebuilding cache
error: module/mpd: Connection refused
* module/cpu: Rebuilding cache
* module/memory: Rebuilding cache
* module/battery: Rebuilding cache
error: module/mpd: Connection refused
* module/cpu: Rebuilding cache
* module/cpu: Rebuilding cache
* module/battery: Rebuilding cache
* module/cpu: Rebuilding cache
* module/cpu: Rebuilding cache
* module/memory: Rebuilding cache
* module/battery: Rebuilding cache
error: module/mpd: Connection refused
* module/cpu: Rebuilding cache
* module/scriptdate: Invoking shell command: "date +' %I:%M%p'"
* module/cpu: Rebuilding cache
* module/battery: Rebuilding cache
* module/cpu: Rebuilding cache
* module/battery: Polling values (inotify fallback)
* module/cpu: Rebuilding cache
* module/memory: Rebuilding cache
* module/battery: Rebuilding cache
error: module/mpd: Connection refused
* module/cpu: Rebuilding cache
* module/cpu: Rebuilding cache
* module/battery: Rebuilding cache
* module/cpu: Rebuilding cache
* module/cpu: Rebuilding cache
* module/memory: Rebuilding cache
* module/battery: Rebuilding cache
error: module/mpd: Connection refused
* module/cpu: Rebuilding cache
* module/cpu: Rebuilding cache
* module/battery: Rebuilding cache
* module/cpu: Rebuilding cache
* module/cpu: Rebuilding cache
* module/memory: Rebuilding cache
* module/battery: Rebuilding cache
* module/scriptdate: Invoking shell command: "date +' %I:%M%p'"
error: module/mpd: Connection refused
* module/cpu: Rebuilding cache
* module/cpu: Rebuilding cache
* module/battery: Rebuilding cache
* module/cpu: Rebuilding cache
* Redrawing bar window
warn: Dropping unmatched character  (U+e028)
* module/battery: Polling values (inotify fallback)
* module/cpu: Rebuilding cache
* module/memory: Rebuilding cache
* module/battery: Rebuilding cache
* Redrawing bar window
warn: Dropping unmatched character  (U+e028)
error: module/mpd: Connection refused
* module/cpu: Rebuilding cache
* module/cpu: Rebuilding cache
* module/battery: Rebuilding cache
* Redrawing bar window
warn: Dropping unmatched character  (U+e028)
* module/cpu: Rebuilding cache
* Redrawing bar window
warn: Dropping unmatched character  (U+e028)
* module/cpu: Rebuilding cache
* module/memory: Rebuilding cache
* module/battery: Rebuilding cache
* Redrawing bar window
warn: Dropping unmatched character  (U+e028)
error: module/mpd: Connection refused
* module/cpu: Rebuilding cache
* Redrawing bar window
warn: Dropping unmatched character  (U+e028)
* module/battery: Rebuilding cache
* module/cpu: Rebuilding cache
* Redrawing bar window
warn: Dropping unmatched character  (U+e028)
* module/scriptdate: Invoking shell command: "date +' %I:%M%p'"
* module/cpu: Rebuilding cache
* Redrawing bar window
warn: Dropping unmatched character  (U+e028)
* module/memory: Rebuilding cache
* module/battery: Rebuilding cache
* module/cpu: Rebuilding cache
* Redrawing bar window
warn: Dropping unmatched character  (U+e028)
error: module/mpd: Connection refused
* module/cpu: Rebuilding cache
* Redrawing bar window
warn: Dropping unmatched character  (U+e028)
* module/battery: Rebuilding cache
* module/cpu: Rebuilding cache
* module/cpu: Rebuilding cache
* Redrawing bar window
warn: Dropping unmatched character  (U+e028)
* module/memory: Rebuilding cache
* module/battery: Rebuilding cache
* module/cpu: Rebuilding cache
* Redrawing bar window
warn: Dropping unmatched character  (U+e028)
* module/battery: Polling values (inotify fallback)
error: module/mpd: Connection refused
* module/cpu: Rebuilding cache
* module/battery: Rebuilding cache
* module/cpu: Rebuilding cache
* module/cpu: Rebuilding cache
warn: Termination signal received, shutting down...
* module/i3: Disconnecting from socket
* module/i3: Stopping
warn: module/i3: Attempting to reconnect socket (reason: Unexpected EOF while reading header)
* module/i3: Reconnecting socket succeeded
* Deconstruction of module/i3 took 0 ms.
* module/mpd: Stopping
* Deconstruction of module/mpd took 0 ms.
* module/cpu: Stopping
* Deconstruction of module/cpu took 0 ms.
* module/memory: Stopping
* Deconstruction of module/memory took 0 ms.
* module/volume: Stopping
* Deconstruction of module/volume took 1 ms.
* module/battery: Stopping
* module/scriptdate: Invoking shell command: "date +' %I:%M%p'"
* Deconstruction of module/battery took 366 ms.
* module/backlight: Stopping
* Deconstruction of module/backlight took 30 ms.
* module/scriptdate: Stopping
* Deconstruction of module/scriptdate took 0 ms.
* module/powermenu: Stopping
* Deconstruction of module/powermenu took 0 ms.
* Deactivating tray manager
* Waiting for spawned processes to end
* Reached end of application...

Offline

#6 2018-11-02 00:18:29

Makersmarx
Member
From: Costa Rica
Registered: 2018-04-17
Posts: 24

Re: Fontawesome icons on polybar not displaying

Sorry for the delay I'm in an airport with toddlers. Did you install siji-git and ttf-unifont? Unfortunately my connection won't open your images. Are you using the example config polybar provides or have you copied or made your own? If all else fails utilize the polybar example and change things pc by pc to avoid conflicts. Many of the unixporn type stuff is pretty heavily riced and depending on how old they are may or may not work.

If I was you I would copy the polybar example config and change your launch.sh to reflect and start the polybar example. From there grab some images off Font Awesome cheat sheet or something and change. Polybar example will need siji and unifont. Also there are some optional things you'll need for mpd etc if you plan on using. If not just comment out the unneeded module.

Offline

#7 2018-11-02 15:17:32

uro
Member
Registered: 2018-10-31
Posts: 4

Re: Fontawesome icons on polybar not displaying

Makersmarx wrote:

Sorry for the delay I'm in an airport with toddlers. Did you install siji-git and ttf-unifont? Unfortunately my connection won't open your images. Are you using the example config polybar provides or have you copied or made your own? If all else fails utilize the polybar example and change things pc by pc to avoid conflicts. Many of the unixporn type stuff is pretty heavily riced and depending on how old they are may or may not work.

If I was you I would copy the polybar example config and change your launch.sh to reflect and start the polybar example. From there grab some images off Font Awesome cheat sheet or something and change. Polybar example will need siji and unifont. Also there are some optional things you'll need for mpd etc if you plan on using. If not just comment out the unneeded module.

Installed siji-git and ttf-unifont (i had already installed).

i m using a polybar config copied from a friend. The polybar it is working ok for him, but i hae the fontawesome icons issue...

so at this point i am considering trying other already built polybar examples, or other kind of bar for i3. Any recomendations? Do you know any guide (easy to follow for a newbie like me)?

thanks for all!

Offline

#8 2018-11-02 19:00:56

Makersmarx
Member
From: Costa Rica
Registered: 2018-04-17
Posts: 24

Re: Fontawesome icons on polybar not displaying

Polybar should work out of the box with polybar example, just setup your launch.sh to reflect thats the bar you want to launch. Here is a link to my old setup which utilized the example that is included with polybar. Keep in mind its not cool or "riced", but is just some modifications of the example file for my needs. Also make sure you have setup your launch.sh file correctly.

I recently switched to i3status-rust and really like it. You can see that layout/setup in my i3config and check their wiki for more detailed instructions. It can be a pain copying other people's dots due to dependencies you may not have, sorry I wasn't able to get ya setup off your friends dots. Good luck

Offline

#9 2018-11-03 06:11:52

shaoyu0209
Member
From: Taiwan
Registered: 2016-10-28
Posts: 42

Re: Fontawesome icons on polybar not displaying

font-0 = Inconsolata:size=18;1
font-1 = unifont:fontformat=truetype:size=14:antialias=false;0
font-2 = FontAwesome:style=Regular:pixelsize=17

this worked for me, with fa4

Offline

Board footer

Powered by FluxBB