Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

time_and_date.rb #45

Open
derrickcope opened this issue Jan 18, 2018 · 4 comments
Open

time_and_date.rb #45

derrickcope opened this issue Jan 18, 2018 · 4 comments
Labels

Comments

@derrickcope
Copy link

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

@OkayDave OkayDave added the bug label Jan 21, 2018
@OkayDave
Copy link
Owner

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.

@derrickcope
Copy link
Author

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
Copy link
Author

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.

OkayDave added a commit that referenced this issue Mar 4, 2018
Fix time_and_date.rb date example. Issue #45
OkayDave added a commit that referenced this issue Mar 4, 2018
Fix time_and_date.rb date example. Issue #45
@derrickcope
Copy link
Author

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants