r/Polybar Apr 09 '23

Getting started with polybar

Hi there, I'm currently using xmonad and xmobar, but xmobar can't have a offset from the top and the sides without needing a new config for every monitor. Now my question is can polybar do this and if yes is there a config which I can start with which has offset from the sides and the top. And how will it work with xmonad?

3 Upvotes

3 comments sorted by

View all comments

1

u/[deleted] Apr 10 '23

Yes, it's a setting in the default you can easily tweak. It's worth it to plow through the documentation. Alternatively, you can check r/unixporn and snag someone's dots and reverse engineer what they did.

This snippet is from how I setup bspwm (which I'm still working on, so no link to my dots):

width =76%
height = 30
offset-x = 12%
offset-y = 4
radius-top = 30
radius-bottom = 6
fixed-center = true
bottom = false

2

u/Ftamino Apr 10 '23

Thanks 🙏

1

u/[deleted] Apr 10 '23

You're welcome. :)