From d1d501450d27eeb31504ff5379537f27ff7373dc Mon Sep 17 00:00:00 2001 From: nonamescm Date: Mon, 4 May 2026 03:38:17 -0300 Subject: [PATCH] Add static river tags --- man/waybar-river-tags.5.scd | 1 + src/modules/river/tags.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/man/waybar-river-tags.5.scd b/man/waybar-river-tags.5.scd index 64621229..7481b974 100644 --- a/man/waybar-river-tags.5.scd +++ b/man/waybar-river-tags.5.scd @@ -50,6 +50,7 @@ Addressed by *river/tags* - *#tags button.occupied* - *#tags button.focused* - *#tags button.urgent* +- *#tags button.tag-N* Note that occupied/focused/urgent status may overlap. That is, a tag may be both occupied and focused at the same time. diff --git a/src/modules/river/tags.cpp b/src/modules/river/tags.cpp index f06565f6..5381bf9f 100644 --- a/src/modules/river/tags.cpp +++ b/src/modules/river/tags.cpp @@ -149,6 +149,7 @@ Tags::Tags(const std::string& id, const waybar::Bar& bar, const Json::Value& con button.signal_button_press_event().connect( sigc::bind(sigc::mem_fun(*this, &Tags::handle_button_press), (1 << tag))); } + button.get_style_context()->add_class("tag-" + std::to_string(tag + 1)); button.show(); }