xob icon indicating copy to clipboard operation
xob copied to clipboard

Custom icon

Open kakawait opened this issue 4 years ago • 10 comments

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

kakawait avatar Apr 10 '20 18:04 kakawait

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.

florentc avatar Apr 10 '20 21:04 florentc

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

kakawait avatar Apr 15 '20 06:04 kakawait

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.

florentc avatar Apr 15 '20 13:04 florentc

@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

kakawait avatar Apr 15 '20 14:04 kakawait

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?

apoorv569 avatar Aug 29 '20 14:08 apoorv569

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 avatar Oct 27 '20 00:10 0Karakurt0

Funny enough, that would solve two issues at once)

0Karakurt0 avatar Oct 27 '20 00:10 0Karakurt0

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.

tetchel avatar Feb 13 '21 19:02 tetchel

Any news?

AlecsFerra avatar Jul 16 '21 20:07 AlecsFerra

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.

SystematicError avatar Dec 26 '21 11:12 SystematicError