diff --git a/.config/quickshell/modules/bar/Bar.qml b/.config/quickshell/modules/bar/Bar.qml index 9c98e26e7..fa66de5b2 100644 --- a/.config/quickshell/modules/bar/Bar.qml +++ b/.config/quickshell/modules/bar/Bar.qml @@ -26,21 +26,14 @@ Scope { implicitWidth: 1 color: Appearance.colors.colOutlineVariant - - // Check screensList from config, If no screens are specified, show on all screens - ScriptModel { - id: screensModel - values: { + Variants { // For each monitor + model: { const screens = Quickshell.screens; const list = ConfigOptions.bar.screensList; if (!list || list.length === 0) return screens; return screens.filter(screen => list.includes(screen.name)); } - } - - Variants { // For each monitor - model: screensModel.values PanelWindow { // Bar window id: barRoot