Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions man/waybar-niri-workspaces.5.scd
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ as defined by niri.

*{output}*: Output where the workspace is located.

*{total}*: The total number of workspaces.

# ICONS

Additional to workspace name matching, the following *format-icons* can be set.
Expand Down
3 changes: 2 additions & 1 deletion src/modules/niri/workspaces.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ void Workspaces::doUpdate() {
name = fmt::format(fmt::runtime(format), fmt::arg("icon", getIcon(name, ws)),
fmt::arg("value", name), fmt::arg("name", ws["name"].asString()),
fmt::arg("index", ws["idx"].asUInt()),
fmt::arg("output", ws["output"].asString()));
fmt::arg("output", ws["output"].asString()),
fmt::arg("total", my_workspaces.size()));
}
if (!config_["disable-markup"].asBool()) {
static_cast<Gtk::Label*>(button.get_children()[0])->set_markup(name);
Expand Down