Adds name of hyprland workspace to button class

Allows you to target named hyprland special workspaces\n
#workspaces button.special.\<workspace name\> {}
This commit is contained in:
Aaron Gerbert
2025-12-09 20:47:04 -05:00
parent 268e33e892
commit 55e1c4c4a9
+1
View File
@@ -241,6 +241,7 @@ void Workspace::update(const std::string &workspace_icon) {
auto styleContext = m_button.get_style_context();
addOrRemoveClass(styleContext, isActive(), "active");
addOrRemoveClass(styleContext, isSpecial(), "special");
addOrRemoveClass(styleContext, isSpecial(), name());
addOrRemoveClass(styleContext, isEmpty(), "empty");
addOrRemoveClass(styleContext, isPersistent(), "persistent");
addOrRemoveClass(styleContext, isUrgent(), "urgent");