JakeStanger / ironbar

Customisable Wayland gtk bar written in Rust.
https://crates.io/crates/ironbar
MIT License
560 stars 47 forks source link

Workspace Module: Add icon for active/unactive #732

Open Reyshyram opened 1 week ago

Reyshyram commented 1 week ago

Is your feature request related to a problem? Please describe. It may already be possible and I'm to dumb to figure it out, but I find it more minimal than having numbers or a special icon for each workspace.

Describe the solution you'd like I'd like the ability to specify a different string/icon and style for active and inactive workspaces, like to how it's handled in Waybar.

Describe alternatives you've considered I can continue to use waybar, but I really like Ironbar and itś configuration format.

Additional context Waybar example image

yavko commented 1 week ago

Try using CSS and the content property, I think that's how I had this implemented

Reyshyram commented 1 week ago

I tried to use the content property but got an error I may have used it wrong, I will retry

yavko commented 1 week ago

Turns out I only changed the color, and aparently content isn't a CSS property in gtk3 css, maybe background image could be used, or even more extremely you could make it so you have 2 fonts where each font for the same character has a different icon, but that's overkill. Yeah idk, but idk how this feature could be added to ironbar either.

Reyshyram commented 1 week ago

Thanks, I will try and see if I can get something to work