barr
barr copied to clipboard
time_and_date.rb
Thank you for this gem. It is exactly what I was looking for. There is a problem in a few of the example scripts
line #9 of time_and_date.rb should be
date = Barr::Blocks::Clock.new format: '%d of %b %Y', bgcolor: '#570B7A', fgcolor: '#FFFFFF', align: :r, icon: "\uf073"
you had %m instead of %d
The bspwm example doesn't work at all, I am not sure why. That is what I use so I am somewhat motivated to help fix it but I am not sure if my ruby is good enough
Thanks for pointing the date issue out.
The current released version of Barr has an issue with bspwm. There's a fix for it in the unreleased version, but I've been dragging my feet a bit since it's a huge update and I have a lot of other things taking my time up. If you're comfortable building gems from source, you can use the rc/0.3.0
branch. That fixes the bspwm issue, and introduces a few new features. It's also not release quality yet through, so might introduce new bugs.
I wrote my own module over the weekend to show focused monitor, desktop, and window. I am still trying to understand OO so the script is a mess. Look forward to your next release. I might be able to help you if it is something simple.
BTW, not sure if you had this feature in your bsp.rb example but most bspwm users have xtitle installed which gives you the name of the focused window.
Thanks