Multi-Monitors: new setting to explicitely disable panels to appear on screen without bar.

On my setup this saves about 130MB per 1080p monitor where the bar is
not shown. I only interact with noctalia on my main screen.
This commit is contained in:
ItsLemmy
2025-11-16 20:49:56 -05:00
parent df37511089
commit dc08751ec2
16 changed files with 88 additions and 9 deletions
+10
View File
@@ -393,6 +393,16 @@ Item {
// Execute pending callback if any
if (pendingCallback) {
if (!Settings.data.general.allowPanelsOnScreenWithoutBar) {
// If we explicitely disabled panels on screen without bar, check if bar is configured
// for this screen, and fallback to primary screen if necessary
var monitors = Settings.data.bar.monitors || [];
const hasBar = monitors.length === 0 || monitors.includes(detectedScreen?.name);
if (!hasBar) {
detectedScreen = Quickshell.screens[0];
}
}
Logger.d("IPC", "Executing pending IPC callback on screen:", detectedScreen.name);
pendingCallback(detectedScreen);
pendingCallback = null;