Skip to content
Christopher Vagnetoft edited this page Dec 17, 2016 · 1 revision

How do I customize the icons?

All the icons used by PHPL is Unicode glyphs and as such part of the font set. Custom icons can be defined by creating the file ~/.powerline/theme/user.icons. Some modules like the git module uses a number of icons for various, but some rules of thumb do exist. All icon names start with the name of the module followed by a dot, and if there is only a single icon this is normally named icon.

So, to change the icon of the load average indicator to an equal sign (you can find more useful glyphs using the character map on your computer) add the following to your user.icons file:

$icon(loadavg.icon,=)

After reloading the theme with phpl-reload --theme the new icon should be visible.

Can I edit the configuration directly?

Yes you can. It is located at ~/.powerline/phpl.conf but in the name of convenience you can use phpl-config -E to edit the configuration and automatically reload it after you are done editing.

Clone this wiki locally