diff --git a/docs/modules/Music.md b/docs/modules/Music.md index e0579ac..f7cfba2 100644 --- a/docs/modules/Music.md +++ b/docs/modules/Music.md @@ -27,6 +27,7 @@ in MPRIS mode, the widget will listen to all players and automatically detect/di | `icons.track` | `string/image` | `` | Icon to show next to track title. | | `icons.album` | `string/image` | `` | Icon to show next to album name. | | `icons.artist` | `string/image` | `ﴁ` | Icon to show next to artist name. | +| `show_status_icon` | `boolean` | `true` | Whether to show the play/pause icon on the widget. | | `icon_size` | `integer` | `32` | Size to render icon at (image icons only). | | `cover_image_size` | `integer` | `128` | Size to render album art image at inside popup. | | `host` | `string/image` | `localhost:6600` | [MPD Only] TCP or Unix socket for the MPD server. | diff --git a/src/modules/music/config.rs b/src/modules/music/config.rs index 9f7ea3c..10d17d3 100644 --- a/src/modules/music/config.rs +++ b/src/modules/music/config.rs @@ -88,6 +88,9 @@ pub struct MusicModule { #[serde(default = "default_music_dir")] pub(crate) music_dir: PathBuf, + #[serde(default = "crate::config::default_true")] + pub(crate) show_status_icon: bool, + #[serde(default = "default_icon_size")] pub(crate) icon_size: i32, diff --git a/src/modules/music/mod.rs b/src/modules/music/mod.rs index 017cf53..33474c3 100644 --- a/src/modules/music/mod.rs +++ b/src/modules/music/mod.rs @@ -192,21 +192,27 @@ impl Module