Skip to content

Repository files navigation

Polybar Collection

Getting Started

I'll add more themes based on what we had before with the new changes.

Also if you find any typos or I missed something let me know.

Prerequisites

You need polybar installed.

Clone repo

--depth=1 shallow clone (basically smaller repo size).

git clone --depth=1 https://github.com/Murzchnvok/polybar-collection

Use

You need to set some environment variable, in my case I'll set on /etc/environment.

The only one you actually need is POLYBAR_COLLECTION with the path to the polybar-collection.

First open the file:

I use nvim, change to whatever you use.

sudo nvim /etc/environment

Add environment variable:

The path needs to be where you cloned the polybar-collection.

POLYBAR_COLLECTION=/home/user/polybar-collection

Adicional variables are:

Only needed if you use:

battery, wireless, wired and weather modules

  • POLYBAR_BATTERY_ADP
  • POLYBAR_BATTERY_BAT
  • POLYBAR_WIRELESS
  • POLYBAR_WIRED
  • POLYBAR_WEATHER_API

To get battery values:

ls -1 /sys/class/power_supply/

will return your battery adaptar and "name", so it can return:

ADP0
BAT0

ADP0 goes to POLYBAR_BATTERY_ADP and BAT0 goes to POLYBAR_BATTERY_BAT.

To get network values:

ip addr

will return something like this:

1: lo: ...

2: wlp1s0: ...

3: enp3s0f4u1: ...

wlp1s0 goes to POLYBAR_WIRELESS and enp3s0f4u1 goes to POLYBAR_WIRED.

To get weather API:

It's using my personal API by default, but please get your own ;)

https://www.weatherapi.com

go to this link, make an account, it's gonna give you an API key and it goes to POLYBAR_WEATHER_API.

So your /etc/environment file would look something like this:

POLYBAR_COLLECTION=/home/murz/polybar-collection
POLYBAR_BATTERY_ADP=ADP0
POLYBAR_BATTERY_BAT=BAT0
POLYBAR_WIRELESS=wlp1s0
POLYBAR_WIRED=enp3s0f4u1
POLYBAR_WEATHER_API=46276f91dcb44de4ac0134024262101

BSPWM

You probably already know this, but I feel like I need to add the instruction.

Inside .config/bspwm/bspwmrc add the line.

$POLYBAR_COLLECTION/launch.sh &

Customization

Change theme and/or colorscheme

Open config.ini, there's a comment for both colorscheme and theme.

In the line below ; Colorscheme you can change the file.ini to whatever colorscheme is in the folder colorscheme/.

include-file = ${env:POLYBAR_COLLECTION}/colorscheme/file.ini

The same goes to the theme, just change the name after themes/ to whatever theme you have in the folder themes/.

Change font

By default is using JetBrainsmono font from nerd fonts.

I left a few comments like icons normal size, meaning this font is only used for icons, or text normal meaning.. I know you already understood.

Open fonts.ini, and change the fonts to whatever you like.

You might be interested

I had to update this thing, it was a mess, sometimes I wanted to use another theme but with my beloved gruvbox and I couldn't without changing a lot.

Other repos related to polybar themes.

Examples

Change goes in config.ini and enabled-modules.ini

Hidrot

example of hidrot theme

config.ini

; Colorscheme
include-file = ${env:POLYBAR_COLLECTION}/colorscheme/nord.ini

; Theme
include-directory = ${env:POLYBAR_COLLECTION}/themes/hidrot

[bar/main]
background = ${colors.semi-trans}

enabled-modules.ini

modules-left = weather margin date
modules-center = border-round-left bspwm border-round-right
modules-right = cpu margin memory margin pulseaudio margin backlight margin battery

Murz

example of murz theme

config.ini

; Colorscheme
include-file = ${env:POLYBAR_COLLECTION}/colorscheme/gruvbox.ini

; Theme
include-directory = ${env:POLYBAR_COLLECTION}/themes/murz

[bar/main]
background = ${colors.full-trans}

enabled-modules.ini

modules-left = bspwm
modules-center = border-round-left-blue weather date border-round-right-blue
modules-right = cpu memory pulseaudio backlight battery

About

Beautiful collection of Polybar themes

Topics

Resources

Stars

928 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages