greshake / i3status-rust

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

formatter: prepend string for when variable is empty #1333

Closed ammgws closed 3 years ago

ammgws commented 3 years ago

Maybe another formatting-option to be able to prepend a string only shown while the variable is not empty?

_Originally posted by @SebTM in https://github.com/greshake/i3status-rust/issues/1254

MaxVerevkin commented 3 years ago

1304 probably covers this.

ammgws commented 3 years ago

Yeah I had a feeling I had actually seen it implemented as well but couldn't find it anywhere. Maybe it was swaystatus? 🍌

MaxVerevkin commented 3 years ago

I mean, it is implemented in swaystatus :laughing:

ammgws commented 3 years ago

Thought so. If it's mentioned in #1304 somewhere then I can close this.

MaxVerevkin commented 3 years ago

The original proposal is here https://github.com/greshake/i3status-rust/issues/1304#issuecomment-950191828

ammgws commented 3 years ago

Thanks!