barr icon indicating copy to clipboard operation
barr copied to clipboard

time_and_date.rb

Open derrickcope opened this issue 7 years ago • 4 comments

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

derrickcope avatar Jan 18 '18 12:01 derrickcope

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.

OkayDave avatar Jan 21 '18 17:01 OkayDave

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.

derrickcope avatar Jan 22 '18 01:01 derrickcope

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.

derrickcope avatar Jan 22 '18 01:01 derrickcope

Thanks

derrickcope avatar Mar 04 '18 06:03 derrickcope