diff options
author | Özgür Kesim <oec@codeblau.de> | 2022-01-30 22:25:16 +0100 |
---|---|---|
committer | Özgür Kesim <oec@codeblau.de> | 2022-01-30 22:25:16 +0100 |
commit | 99f6830083a2bcb2c9950ae735a5490556de458d (patch) | |
tree | 72dee63c0420c1d1e5bd587112f2c23b4de2a321 /src/config | |
parent | 840f2ff5fd0c89b64411f3b02e971b3e67f1bb9f (diff) |
volume icon dependend on loudness/mute
Diffstat (limited to 'src/config')
-rw-r--r-- | src/config/volume.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/config/volume.rs b/src/config/volume.rs index c660912..13c384f 100644 --- a/src/config/volume.rs +++ b/src/config/volume.rs @@ -3,7 +3,9 @@ use std::default::Default; #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] pub struct Volume { - pub icon: String, + pub icon_high: String, + pub icon_low: String, + pub icon_muted: String, pub enabled: bool, pub delay: f64, pub card: String, @@ -12,7 +14,9 @@ pub struct Volume { impl Default for Volume { fn default() -> Self { Volume { - icon: String::from(""), + icon_high: String::from("🕪"), + icon_low: String::from("🕩"), + icon_muted: String::from("🔇"), enabled: false, delay: 0.17, card: String::from("ALSA"), |