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.
You need polybar installed.
--depth=1 shallow clone (basically smaller repo size).
git clone --depth=1 https://github.com/Murzchnvok/polybar-collectionYou 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/environmentAdd environment variable:
The path needs to be where you cloned the polybar-collection.
POLYBAR_COLLECTION=/home/user/polybar-collectionAdicional 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
BAT0ADP0 goes to POLYBAR_BATTERY_ADP and BAT0 goes to POLYBAR_BATTERY_BAT.
To get network values:
ip addrwill 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.comgo 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=46276f91dcb44de4ac0134024262101BSPWM
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 &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.iniThe same goes to the theme, just change the name after themes/ to whatever theme you have in the folder themes/.
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.
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.
- polybar-themes by adi1090x
- polybar-themes by prcxzm
- Polybar-Collection by Z-8Bit
Change goes in
config.iniandenabled-modules.ini
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 batteryconfig.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

