diff options
| author | Andreas Grois <andi@grois.info> | 2021-11-29 00:18:44 +0100 |
|---|---|---|
| committer | Andreas Grois <andi@grois.info> | 2021-11-29 00:18:44 +0100 |
| commit | 9549395257a22d4f03f5175602adf9980802a6cd (patch) | |
| tree | ecd9e47063c2682cc394274e98a864edf8d1b8be /pulse/src/config.rs | |
| parent | dea589f85ca99fbba60a67c008499d9824a852b9 (diff) | |
Update pulse help string and add a few serde renames.
Diffstat (limited to 'pulse/src/config.rs')
| -rw-r--r-- | pulse/src/config.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pulse/src/config.rs b/pulse/src/config.rs index 740190d..f95bd46 100644 --- a/pulse/src/config.rs +++ b/pulse/src/config.rs @@ -51,8 +51,11 @@ enum FieldSorting { enum FormatableMute { Off, Symbol { + #[serde(rename = "Label")] label : String, + #[serde(rename = "MuteSymbol")] mute_symbol : String, + #[serde(rename = "UnmuteSymbol")] unmute_symbol : String } } @@ -106,7 +109,7 @@ impl Default for PulseVolumeConfig { fn default() -> Self { PulseVolumeConfig { sink : Sink::Default, - volume : FormatableVolume::Numeric { label : String::from(" "), digits : 0 }, + volume : FormatableVolume::Numeric { label : String::from(""), digits : 0 }, balance : FormatableVolume::Binned { label : String::from(" "), bin_symbol_map : { @@ -117,7 +120,7 @@ impl Default for PulseVolumeConfig { a } }, - mute : FormatableMute::Symbol { label : String::new(), mute_symbol : String::from("🔇"), unmute_symbol : String::from(" ") }, + mute : FormatableMute::Symbol { label : String::new(), mute_symbol : String::from("🔇"), unmute_symbol : String::from("🔊") }, sorting : FieldSorting::MuteVolumeBalance, } } |
