modules/mpris: change default interval value to 0

This commit is contained in:
Rehan 2023-10-21 17:39:45 -04:00
parent dbb887b4a9
commit 5963bf6ace
2 changed files with 2 additions and 1 deletions

View File

@ -21,6 +21,7 @@ The *mpris* module displays currently playing media via libplayerctl.
*interval*: ++
typeof: integer ++
default: 0 ++
Refresh MPRIS information on a timer.
*format*: ++

View File

@ -20,7 +20,7 @@ namespace waybar::modules::mpris {
const std::string DEFAULT_FORMAT = "{player} ({status}): {dynamic}";
Mpris::Mpris(const std::string& id, const Json::Value& config)
: ALabel(config, "mpris", id, DEFAULT_FORMAT, 5, false, true),
: ALabel(config, "mpris", id, DEFAULT_FORMAT, 0, false, true),
tooltip_(DEFAULT_FORMAT),
artist_len_(-1),
album_len_(-1),