Niri: optional "hideOnOverview" in bar settings

This commit is contained in:
Lemmy
2026-01-13 19:23:19 -05:00
parent f9d179f51c
commit cff663fee0
11 changed files with 64 additions and 8 deletions
+13
View File
@@ -3,6 +3,7 @@ pragma Singleton
import QtQuick
import Quickshell
import qs.Commons
import qs.Services.Compositor
Singleton {
id: root
@@ -142,4 +143,16 @@ Singleton {
// emit signal
didClose();
}
// Close panels when compositor overview opens (if setting is enabled)
Connections {
target: CompositorService
enabled: Settings.data.bar.hideOnOverview
function onOverviewActiveChanged() {
if (CompositorService.overviewActive && root.openedPanel) {
root.openedPanel.close();
}
}
}
}