modules/mpris: change default interval value to 0
parent
dbb887b4a9
commit
5963bf6ace
|
@ -21,6 +21,7 @@ The *mpris* module displays currently playing media via libplayerctl.
|
||||||
|
|
||||||
*interval*: ++
|
*interval*: ++
|
||||||
typeof: integer ++
|
typeof: integer ++
|
||||||
|
default: 0 ++
|
||||||
Refresh MPRIS information on a timer.
|
Refresh MPRIS information on a timer.
|
||||||
|
|
||||||
*format*: ++
|
*format*: ++
|
||||||
|
|
|
@ -20,7 +20,7 @@ namespace waybar::modules::mpris {
|
||||||
const std::string DEFAULT_FORMAT = "{player} ({status}): {dynamic}";
|
const std::string DEFAULT_FORMAT = "{player} ({status}): {dynamic}";
|
||||||
|
|
||||||
Mpris::Mpris(const std::string& id, const Json::Value& config)
|
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),
|
tooltip_(DEFAULT_FORMAT),
|
||||||
artist_len_(-1),
|
artist_len_(-1),
|
||||||
album_len_(-1),
|
album_len_(-1),
|
||||||
|
|
Loading…
Reference in New Issue