diff --git a/.config/quickshell/modules/bar/Bar.qml b/.config/quickshell/modules/bar/Bar.qml index 869c0bd54..263106a42 100644 --- a/.config/quickshell/modules/bar/Bar.qml +++ b/.config/quickshell/modules/bar/Bar.qml @@ -25,10 +25,15 @@ Scope { Layout.fillHeight: true implicitWidth: 1 color: Appearance.colors.colOutlineVariant - } Variants { // For each monitor - model: Quickshell.screens + model: { + const screens = Quickshell.screens; + const list = ConfigOptions.bar.screenList; + if (!list || list.length === 0) + return screens; + return screens.filter(screen => list.includes(screen.name)); + } PanelWindow { // Bar window id: barRoot diff --git a/.config/quickshell/modules/common/ConfigOptions.qml b/.config/quickshell/modules/common/ConfigOptions.qml index 747a1376b..1a776a203 100644 --- a/.config/quickshell/modules/common/ConfigOptions.qml +++ b/.config/quickshell/modules/common/ConfigOptions.qml @@ -47,6 +47,7 @@ Singleton { property bool alwaysShowSwap: true property bool alwaysShowCpu: false } + property list screenList: [] // List of names, like "eDP-1", find out with 'hyprctl monitors' command property QtObject utilButtons: QtObject { property bool showScreenSnip: true property bool showColorPicker: false