We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d02f68 commit d4d6dc4Copy full SHA for d4d6dc4
src/modules/niri/workspaces.cpp
@@ -67,6 +67,20 @@ void Workspaces::doUpdate() {
67
else
68
style_context->remove_class("active");
69
70
+ if (ws["idx"].asUInt() == workspaces.size() && workspaces.size() > 1) {
71
+ style_context->add_class("last");
72
+ style_context->remove_class("solo");
73
+ }
74
+ else {
75
+ if (ws["idx"].asUInt() == workspaces.size() && workspaces.size() == 1) {
76
+ style_context->remove_class("last");
77
+ style_context->add_class("solo");
78
79
80
81
82
83
84
if (ws["output"]) {
85
if (ws["output"].asString() == bar_.output->name)
86
style_context->add_class("current_output");
0 commit comments