Custom Polybar theme
- Using https://github.com/Templarian/MaterialDesign fonts
- Most modules are configured to use scripts from scripts directory but some run desktop environment (GNOME in this case) based commands like
gnome-control-center
etc. which can be easily configured. - pulseaudio-control module taken from https://github.com/marioortizmanero/polybar-pulseaudio-control but modified.
- Clone Material Design repository:
git clone https://github.com/Templarian/MaterialDesign-Font.git
- Move
.ttf
file to~/.local/share/fonts
:
mkdir -p ~/.local/share/fonts
cd MaterialDesign-Font
mv *.ttf ~/.local/share/fonts
fc-cache -v
- Get font name for
.config
to use it:
fc-list | grep "MaterialDesign"
this should return something like this:
~/.local/share/fonts/MaterialDesignIconsDesktop.ttf: Material Design Icons Desktop:style=Regular
and you have to copy part after :
which is Material Design Icons Desktop:style=Regular
- Paste it to
.config
file:
[bar/example]
font-3 = Material Design Icons Desktop:style=Regular:pixelsize=15:antialias=true;4
For all scripts to work install:
sudo apt install rfkill lm-sensors udisks2 libnotify-bin pulseaudio upower pacmd