greshake / i3status-rust

Very resourcefriendly and feature-rich replacement for i3status, written in pure Rust
GNU General Public License v3.0
2.81k stars 472 forks source link

`sound`: Make the warning status when muted configurable #2052

Closed snicket2100 closed 1 month ago

snicket2100 commented 2 months ago

Currently the behaviour to show the sound block in warning style whenever audio is muted is hardcoded in the block code.

I can easily imagine that I could want to make it configurable, for example to have it in warning style whenever audio is not muted, convenient for using a laptop in public places for example.

MaxVerevkin commented 2 months ago

for example to have it in warning style whenever audio is not muted, convenient for using a laptop in public places for example.

You can do that now:

[block.theme_overrides]
idle_fg = { link = "warning_fg" }
idle_bg = { link = "warning_bg" }
warning_fg = { link = "idle_fg" }
warning_bg = { link = "idle_bg" }
snicket2100 commented 1 month ago

Ahh, thanks so much! That solves it.