# Tried changing font to Fira Code, but lost the icons :(

**URL:** <https://forum.endeavouros.com/t/tried-changing-font-to-fira-code-but-lost-the-icons/19649>\
**Category:** All WMs\
**Created:** [November 8, 2021, 3:17pm UTC](https://forum.endeavouros.com/t/tried-changing-font-to-fira-code-but-lost-the-icons/19649 "2021-11-08T15:17:23Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![oh\_jaimito](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/oh_jaimito/32/38344_2.png) [@oh\_jaimito](https://forum.endeavouros.com/u/oh_jaimito)\
**Post date:** [November 8, 2021, 3:17pm UTC](https://forum.endeavouros.com/t/tried-changing-font-to-fira-code-but-lost-the-icons/19649/1 "2021-11-08T15:17:23Z")

</div>

I quickly reverted back to the defaulted Iosevka but would really like Fira Code. Any pointers?

And what’s the shortcut/hotkey to reload polybar after I made edits?!

I did `source launch.sh &` but that’s probably not the recommended method.

---

<div class="post-metadata">

**Author:** ![Celty](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/celty/32/34777_2.png) [@Celty](https://forum.endeavouros.com/u/Celty)\
**Post date:** [November 8, 2021, 3:30pm UTC](https://forum.endeavouros.com/t/tried-changing-font-to-fira-code-but-lost-the-icons/19649/2 "2021-11-08T15:30:45Z")

</div>

Simplest solution is to install `lxappearance` and set the font there. As for for polybar, to reload all your bars you can do `polybar-msg cmd restart`.

---

<div class="post-metadata">

**Author:** ![oh\_jaimito](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/oh_jaimito/32/38344_2.png) [@oh\_jaimito](https://forum.endeavouros.com/u/oh_jaimito)\
**Post date:** [November 8, 2021, 3:33pm UTC](https://forum.endeavouros.com/t/tried-changing-font-to-fira-code-but-lost-the-icons/19649/3 "2021-11-08T15:33:24Z")

</div>

```auto
└─> fc-list | grep Fira   
/usr/share/fonts/TTF/FiraCode-SemiBold.ttf: Fira Code,Fira Code SemiBold:style=SemiBold,Regular
/usr/share/fonts/TTF/FiraCode-Retina.ttf: Fira Code,Fira Code Retina:style=Retina,Regular
/usr/share/fonts/TTF/FiraCode-Bold.ttf: Fira Code:style=Bold
/usr/share/fonts/TTF/FiraCode-Light.ttf: Fira Code,Fira Code Light:style=Light,Regular
/usr/share/fonts/TTF/FiraCode-Medium.ttf: Fira Code,Fira Code Medium:style=Medium,Regular
/usr/share/fonts/TTF/FiraCode-Regular.ttf: Fira Code:style=Regular

```

😉 Making progress.

I will document here to assist others on this wild ride 😉

* * *

> <https://github.com/polybar/polybar/issues/1301>
>
> At first I tried using the ttf-font-awesome package (from the Arch package manag…er), since it failed showing all the icons I uninstalled it and manually added the otf fonts from the Font Awesome website.
> Now polybar can only load the flag and clock icon. This is the console output:
> 
> \> warn: internal/volume is deprecated, use internal/alsa instead
> \> warn: Dropping unmatched character  (U+f001)
> \> warn: Dropping unmatched character  (U+f1eb)
> \> warn: Dropping unmatched character  (U+f025)
> \> warn: Dropping unmatched character  (U+f240)
> \> warn: Dropping unmatched character  (U+f001)
> \> warn: Dropping unmatched character  (U+f076)
> \> warn: Dropping unmatched character  (U+f1eb)
> \> warn: Dropping unmatched character  (U+f025)
> \> warn: Dropping unmatched character  (U+f240)
> 
> !\[test\](https://user-images.githubusercontent.com/11262717/41999077-c5c4d412-7a5c-11e8-889b-57691dfbe131.png)
> 
> This is the relevant config part:
> \`\`\`
> font-0 = DejavuSansMono:size=10;4
> font-1 = NotoSansCJKJP:size=10;4
> ;font-2 = FontAwesome:size=10;4
> font-2 = Font Awesome 5 Free:size=10;4
> \`\`\`

> **[Fonts · polybar/polybar Wiki](https://github.com/polybar/polybar/wiki/Fonts)**
>
> A fast and easy-to-use status bar. Contribute to polybar/polybar development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![oh\_jaimito](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/oh_jaimito/32/38344_2.png) [@oh\_jaimito](https://forum.endeavouros.com/u/oh_jaimito)\
**Post date:** [November 8, 2021, 3:39pm UTC](https://forum.endeavouros.com/t/tried-changing-font-to-fira-code-but-lost-the-icons/19649/4 "2021-11-08T15:39:06Z")

</div>

> [@Celty](#):
>
> polybar-msg cmd restart

```auto
└─>polybar-msg cmd restart
polybar-msg: No active ipc channels

```

That’s nothing to be concerned about, is it?

lxappearance-gtk3 is already installed and Fira Code set, but it doesn’t effect polybar.

---

<div class="post-metadata">

**Author:** ![Celty](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/celty/32/34777_2.png) [@Celty](https://forum.endeavouros.com/u/Celty)\
**Post date:** [November 8, 2021, 3:48pm UTC](https://forum.endeavouros.com/t/tried-changing-font-to-fira-code-but-lost-the-icons/19649/5 "2021-11-08T15:48:19Z")

</div>

> [@oh\_jaimito](#):
>
> `polybar-msg: No active ipc channels`

No.

> [@oh\_jaimito](#):
>
> lxappearance-gtk3 is already installed and Fira Code set, but it doesn’t effect polybar.

You need to specify the font in the polybar config like this:

```auto
font-0 = "Iosevka Nerd Font:size=10:weight=bold;3"
font-1 = "Iosevka Nerd Font:size=12;3"

```

Then, if you have multiple fonts, you also need to do it in the module like this:

```auto
format-prefix-font = 2

```

Note that for Polybar, the number is -1 so specifying font = 2 means it’s using the font listed as #1 in your configuration. If you want to use font #2 you need to set it to use font = 3.

---

<div class="post-metadata">

**Author:** ![oh\_jaimito](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/oh_jaimito/32/38344_2.png) [@oh\_jaimito](https://forum.endeavouros.com/u/oh_jaimito)\
**Post date:** [November 8, 2021, 4:11pm UTC](https://forum.endeavouros.com/t/tried-changing-font-to-fira-code-but-lost-the-icons/19649/6 "2021-11-08T16:11:45Z")

</div>

> [@Celty](#):
>
> polybar-msg cmd restart

hhmm, doesn’t seem to properly restart.

I changed this to test from false \> true, but it did not reposition.

```auto
;Put the bar at the bottom of the screen                                                         
bottom = true

```

I found this on the Wiki `pkill -USR1 polybar`, and it worked, but not on all “workspaces”.

---

<div class="post-metadata">

**Author:** ![Celty](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/celty/32/34777_2.png) [@Celty](https://forum.endeavouros.com/u/Celty)\
**Post date:** [November 8, 2021, 4:21pm UTC](https://forum.endeavouros.com/t/tried-changing-font-to-fira-code-but-lost-the-icons/19649/7 "2021-11-08T16:21:28Z")

</div>

> [@oh\_jaimito](#):
>
> hhmm, doesn’t seem to properly restart.
> 
> I changed this to test from false \> true, but it did not reposition.

Works for me. I have it bound in sxhkd so I can do a quick reload whenever I alter something in the config. The alternative is running `polybar -r bar`, but you’d need to know the name of the bar you want to restart (replace `bar` with the actual name). This of course will not reload _all_ your bars, but the one you specify.

---

<div class="post-metadata">

**Author:** ![flyingcakes](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/flyingcakes/32/6218_2.png) [@flyingcakes](https://forum.endeavouros.com/u/flyingcakes)\
**Post date:** [November 9, 2021, 5:06pm UTC](https://forum.endeavouros.com/t/tried-changing-font-to-fira-code-but-lost-the-icons/19649/8 "2021-11-09T17:06:06Z")

</div>

You dont want fira code

You want fira code with nerd font patch

[https://aur.archlinux.org/packages/nerd-fonts-fira-code/](https://aur.archlinux.org/packages/nerd-fonts-fira-code/)

---

<div class="post-metadata">

**Author:** ![oh\_jaimito](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/oh_jaimito/32/38344_2.png) [@oh\_jaimito](https://forum.endeavouros.com/u/oh_jaimito)\
**Post date:** [November 9, 2021, 5:33pm UTC](https://forum.endeavouros.com/t/tried-changing-font-to-fira-code-but-lost-the-icons/19649/9 "2021-11-09T17:33:32Z")

</div>

> [@flyingcakes](#):
>
> You want fira code with nerd font patch

Thank you so much for the direction. I had that on Pop OS and totally forgot about that 😉
