feat: workspaces index

This commit is contained in:
Alexis 2018-10-22 10:41:52 +02:00
parent 290f3a79e9
commit 5a6e05dcde
1 changed files with 2 additions and 1 deletions

View File

@ -82,7 +82,8 @@ auto waybar::modules::sway::Workspaces::update() -> void
if (config_["format"]) {
auto format = config_["format"].asString();
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 {
button.set_label(icon);
}