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

Custom icon #16

Open
kakawait opened this issue Apr 10, 2020 · 10 comments
Open

Custom icon #16

kakawait opened this issue Apr 10, 2020 · 10 comments
Labels
enhancement New feature or request

Comments

@kakawait
Copy link

I'd like to know if you think it could be possible to add icon or pictogram in addition to the bar?
Currently I'm using xob for both light and sound system. And I'm looking to achieve something close to what MacOS offers

In order to be able to differentiate (visually speaking) when sound up/down and light up/down

@florentc florentc added the enhancement New feature or request label Apr 10, 2020
@florentc
Copy link
Owner

Hello,

Thank you for using xob and your suggestion. I was not planning to implement such a feature.

The style feature covers your use case (differentiating two kinds of indicators): use two instances of xob and set up two styles [volume] and [light] in your config file with different color schemes (e.g. default black and white for volume, yellow for light). Select the desired style using the -s option.

However, I am open to the idea and external contributions, including modest eye-candy stuff, as long as it sticks to the philosophy behind xob: simple, short, lightweight, few widespread dependencies, keeping in mind the bar may display any kind of value.

@kakawait
Copy link
Author

Yes I'm not wondering something as fancy as MacOS but more looking for something similar to https://www.reddit.com/r/unixporn/comments/9i5seg/brightness_and_volume_notifications_with_dunst_oc/

I mean just be able to put (on configuration you could choose where to put to fit with every direction) an small icon

@florentc
Copy link
Owner

This is also what I had in mind. I would be glad to merge a pull request provided the whole thing remained light on dependencies and changes on the existing code base.

@kakawait
Copy link
Author

@florentc I'll try to check but I'm very newbee C dev (I'm mainly Java dev) so I don't know if I'll able to produce something

@apoorv569
Copy link

apoorv569 commented Aug 29, 2020

I'd like to know if you think it could be possible to add icon or pictogram in addition to the bar?
Currently I'm using xob for both light and sound system. And I'm looking to achieve something close to what MacOS offers

In order to be able to differentiate (visually speaking) when sound up/down and light up/down

Actually I like the minimal approach of xob as it nicely fits with minimal WM like openbox, or TWM like Xmonad, Qtile etc, though I wouldn't mind a extra feature for icons. Also can you please provide your brightness script for xob?

@0Karakurt0
Copy link

0Karakurt0 commented Oct 27, 2020

I'd like to extend this enhancement a bit more: add support for unicode characters on any part of xob's "window".
And I already see config:

text {
     content="Hello world!"
     position {
          mode=right|left|up|down|relative # in relative mode text is rendered on top of the bar
          relative_x=0.5
          relative_y=0.5 #relative to xob dimensions
     }
     style {
          colors {}
          font {}
     }
}

But I'll agree, this can become quite bulky

@0Karakurt0
Copy link

Funny enough, that would solve two issues at once)

@tetchel
Copy link

tetchel commented Feb 13, 2021

Being able to render a FontAwesome icon or an emoji on/next to the bar would solve this brilliantly, provided the user had the font installed.

@AlecsFerra
Copy link

Any news?

@SystematicError
Copy link

Hello,

Thank you for using xob and your suggestion. I was not planning to implement such a feature.

The style feature covers your use case (differentiating two kinds of indicators): use two instances of xob and set up two styles [volume] and [light] in your config file with different color schemes (e.g. default black and white for volume, yellow for light). Select the desired style using the -s option.

However, I am open to the idea and external contributions, including modest eye-candy stuff, as long as it sticks to the philosophy behind xob: simple, short, lightweight, few widespread dependencies, keeping in mind the bar may display any kind of value.

While this is a viable solution, it isn't the best as multiple colors can get confusing. Personally I'd love to have all my overlays of the same colorscheme for the sake of consistency.

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

No branches or pull requests

7 participants