mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
feat: workspaces index
This commit is contained in:
parent
290f3a79e9
commit
5a6e05dcde
@ -82,7 +82,8 @@ auto waybar::modules::sway::Workspaces::update() -> void
|
|||||||
if (config_["format"]) {
|
if (config_["format"]) {
|
||||||
auto format = config_["format"].asString();
|
auto format = config_["format"].asString();
|
||||||
button.set_label(fmt::format(format, fmt::arg("icon", icon),
|
button.set_label(fmt::format(format, fmt::arg("icon", icon),
|
||||||
fmt::arg("name", node["name"].asString())));
|
fmt::arg("name", node["name"].asString()),
|
||||||
|
fmt::arg("index", node["num"].asString())));
|
||||||
} else {
|
} else {
|
||||||
button.set_label(icon);
|
button.set_label(icon);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user