fix(workspaces): index
This commit is contained in:
parent
da0674debc
commit
c912d8c86a
|
@ -100,7 +100,8 @@ void waybar::modules::sway::Workspaces::addWorkspace(Json::Value node)
|
||||||
auto icon = getIcon(node["name"].asString(), node);
|
auto icon = getIcon(node["name"].asString(), node);
|
||||||
auto format = config_["format"]
|
auto format = config_["format"]
|
||||||
? fmt::format(config_["format"].asString(), fmt::arg("icon", icon),
|
? fmt::format(config_["format"].asString(), fmt::arg("icon", icon),
|
||||||
fmt::arg("name", node["name"].asString()))
|
fmt::arg("name", node["name"].asString()),
|
||||||
|
fmt::arg("index", node["num"].asString()))
|
||||||
: icon;
|
: icon;
|
||||||
auto pair = buttons_.emplace(node["num"].asInt(), format);
|
auto pair = buttons_.emplace(node["num"].asInt(), format);
|
||||||
auto &button = pair.first->second;
|
auto &button = pair.first->second;
|
||||||
|
|
Loading…
Reference in New Issue