GithubHelp home page GithubHelp logo

polybar-collection's Introduction

Polybar Collection

My personal collection. Trying to make some nice themes, and show how great Polybar is. I'll keep updating the collection, and maybe create some custom scripts so you and I can have a better experience with this thing. I also recommend you to check this adi1090x Polybar Collection, has some great themes, so if you don't like my collection, you can just check the other one. Also the reason why I'm doing this is because I want you to have more options and ideas to build your own theme.

Read this README with attention.

Getting Started

Prerequisites

First of all, install Polybar:

Compiling Polybar

By default the font used is JetBrainsMono (you can change it in the fonts.ini file), you can download and install from NerdFonts:

Also you'll need MaterialIcons and Feather. You can move both MaterialIcons and feather inside fonts to $HOME/.fonts/ and run:

$HOME
-> fc-cache -fv

or just search how to install fonts!

Cloning

Now you need to clone the repo in the $HOME directory (because the path inside the files points to $HOME/polybar-collection):

$HOME
-> git clone --depth 1 https://github.com/Murzchnvok/polybar-collection

or clone to other directory and create a symlink of the folder in the $HOME directory:

$HOME/Projects
-> git clone --depth 1 https://github.com/Murzchnvok/polybar-collection

$HOME
-> ln -s $HOME/Projects/polybar-collection $HOME/polybar-collection

Running

BSPwm

$HOME/polybar-collection/launch.sh

I3wm

exec_always --no-startup-id $HOME/polybar-collection/launch.sh

Remember to keep updated:

$HOME
-> cd $HOME/polybar-collection && git pull

Few changes

Now we only have one file modules.ini to change the modules that we like to use. I believe that's a better way to configure our Polybar themes:

modules-left = date wallz nft tor weather bspwm i3
modules-center = mpd
modules-right = wired cpu memory xbacklight pulseaudio

The only problem with this, is that some themes don't have certain modules, for now at least! I'm planning on making this collection easier to setup, so if you have any ideas you can always share.

Weather app

As pointed out by Dennis Perrone, my personal OpenWeather API Key is in the project as a constant, and I did this intentionally so it just works, and it's fine if you want to use it the same as me, but I'll suggest you to create your own API Key for free in the official OpenWeather website. There's a limit of requests you can make using the same API Key, so we both could be without the weather info if a lot of requests are made.

After you create your API Key, you can pass as an argument in the weather.sh script, or you can set an environment variable for OPENWEATHER_API_KEY with your own API Key:

Wallz

Still thinking about this one, maybe I should add more 'backend' options, for now is only using Bing API, but I could add more options since Bing API have a 'limited', but with a really good quality, wallpapers collection. For now I'll be only using on minimal theme, but when I'm 'done' I'll add to the others.

You might be interested

Enjoy!

Murz

desktop

modules-left = date weather round-right
modules-center = round-left bspwm round-right
modules-right = round-left mpd

Chnvok

desktop

modules-left = date weather mpd
modules-center = bspwm
modules-right = memory cpu xbacklight pulseaudio session

Dracula

desktop

modules-left = date margin weather margin mpd
modules-center = bspwm
modules-right = memory margin cpu margin xbacklight margin pulseaudio margin battery margin session

Gruvbox

desktop

modules-left = bspwm
modules-center = round-left-blue weather date round-right-blue margin round-left mpd round-right
modules-right = cpu memory pulseaudio xbacklight

Lofi

desktop

modules-left = bspwm
modules-center = mpd
modules-right = date weather

Material

desktop

modules-left = weather margin date margin mpd tri-upper-right tri-lower-left bspwm tri-upper-right
modules-center = 
modules-right = memory margin cpu margin xbacklight margin pulseaudio

Minimal

desktop

modules-left = date weather bspwm
modules-center = mpd
modules-right = cpu memory xbacklight pulseaudio

Nord

desktop

modules-left = date margin weather margin mpd round-right
modules-center = trap-left bspwm trap-right
modules-right = memory margin cpu margin xbacklight margin pulseaudio margin wallz margin session

One Dark

desktop

modules-left = bspwm margin date margin weather margin mpd
modules-center =
modules-right = cpu margin memory margin pulseaudio margin xbacklight margin wallz margin session

polybar-collection's People

Contributors

adienox avatar murzchnvok avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

polybar-collection's Issues

change api to get location

I clone your repo and get error when get city from old api https://ipapi.co/json

error:

python3 $HOME/polybar-collection/scripts/weather/main.py -u metric -a 61527dc595b1f41998133d77d4d7b106
Traceback (most recent call last):
  File "/home/huy/polybar-collection/scripts/weather/main.py", line 120, in <module>
    main()
  File "/home/huy/polybar-collection/scripts/weather/main.py", line 106, in main
    city = args.city[0] if args.city else get_city()
                                          ^^^^^^^^^^
  File "/home/huy/polybar-collection/scripts/weather/main.py", line 17, in get_city
    return r.json()["city"]
           ~~~~~~~~^^^^^^^^
KeyError: 'city'

I recomment you change to http://ip-api.com/json it also free too.

only half the icons show up

Hi, first of all I love your nord theme for polybar.
The issue is that the icons in the bar only show half way. On both of my devices so it's not hardware related.
Both of them are running arch with i3.
I include a screenshot so you can see what i mean.
Screenshot_2020-10-24_01-15-42

Whta's the font name for lofi theme?

Hi, When I use lofi theme I don't get these warnings and polybar left side doesn't show at all. I have all the required fonts loaded so my guess is that these chars are from different font.
Thanks a lot for your efforts.

warn: Dropping unmatched character  (U+e9e7) in ''
warn: Dropping unmatched character  (U+e9e7) in ''
warn: Dropping unmatched character  (U+e9e7) in ''

Dependencies issues

  • i3, Arch Linux, Dependencies Installed

When loading one of the bars per the instructions, the Ugly Weather (dead repo) script fails to load (weather.ini).

Removing the weather.ini script from all of the files is enough to fix it, however the actual blocks still fail to load, aside from the time block.

Hardcoded creds

First things, thanks for the repo! I was looking at the weather.py and noticed you have your OpenWeather API key hardcoded in there. Just wanted to make you aware in the event it wasn't intentional.

Lego left

Hey there, first i want to say your polybar collection is great.
I am trying to use your lego-left module, I have your fonts copied and when i use it, i actually get a full lego, not "merging" into the next module, if it make sense.

How to copy Icons?

Hey there,

I'm trying to use the Material Icons (I have Material-Design-Iconic-Font font installed) and I am using gucharmap to view from the Private Use Area to see the icons. When I copy/paste into terminal... I am not getting the desired icon.

Is there a separate font I need to install?

modules : dnd DUNST_COMMAND deprecated

dunst-project/dunst#830

Drop in replacements for the removed commands:

notify-send DUNST_COMMAND_PAUSE -> dunstctl set-paused true
notify-send DUNST_COMMAND_RESUME -> dunstctl set-paused false
notify-send DUNST_COMMAND_TOGGLE -> dunstctl set-paused toggle

[module/dnd]
type = custom/ipc
initial = 1

hook-0 = echo "%{A1:notify-send 'DUNST_COMMAND_PAUSE' && polybar-msg hook dnd 2:}%{T7}%{T-}%{A}" &
hook-1 = echo "%{A1:notify-send 'DUNST_COMMAND_RESUME' && polybar-msg hook dnd 1:}%{T7}%{T-}%{A}" &

format-foreground = ${colors.fg}
format-padding = 1

Bar does not show

So I installed everything and cloned it and all, changed the settings in my i3 config but still there is nothing that shows up.

Hope I can get some help,

weather module is not running

sorry for my english... i'm using google translator.
anyway, in any theme that I put Weather does not run. gives the error "Traceback (most recent call last):
2023-03-06-171418_497x34_scrot
I already have the site's API, but I don't know where to put it '-' (I'm sorry I'm a layman)

How do i install feather?

I visited the feather website, but could only find a .zip with a bunch of svgs in it, how do i install all the fonts required for this? (material fonts and jetbrains are working fine)
image
Trying to use the lofi theme ^^ (it looks amazing btw)

Polybar gruvbox theme not working

Screenshot from 2021-01-05 16-00-23
Hey, very nice beautiful theme you got here, unfortunately for me it isn't working because I need to install the "colored" package, any way you could please help me? i'm on arch and have followed the instructions on readme.md

Nord theme not displaying correctly

I'm trying to use your Nord polybar, and each time I do it displays without icons. If I run this:

``polybar -c .config/polybar/config.ini main

I get this output:

I've installed ttf-material-icons-git from the AUR. Any tips on what to do?

error: Uncaught exception

error: Uncaught exception, shutting down: Failed to open config file /home/suredials/polybar-collection/themes/lofi/include-modules.ini: No such file or directory

MPD/Mopidy & ncmpcpp

I was finally able to get Mopidy & ncmpcpp running and when I play songs the MPD module shows up on the polybar and I can pause/stop/skip songs etc.. but It's not displaying song title on anything of that sort. It because of the tools(mopidy/ncmpcpp), or some configuration I need?

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.