niri/workspaces: feature - add "hide-empty" config option (#4965)

This commit is contained in:
cebem1nt
2026-03-31 17:49:30 -03:00
parent 1e965ccce0
commit 8b1e574063
+5
View File
@@ -114,6 +114,11 @@ void Workspaces::doUpdate() {
button.show(); button.show();
else else
button.hide(); button.hide();
} else if (config_["hide-empty"].asBool()) {
if (ws["active_window_id"].isNull() && !ws["is_focused"].asBool())
button.hide();
else
button.show();
} else { } else {
button.show(); button.show();
} }