QS Rewrite: bar: Add an option for choosing screens (#1363)

This commit is contained in:
end-4
2025-06-13 22:55:20 +02:00
committed by GitHub
2 changed files with 8 additions and 2 deletions
+7 -2
View File
@@ -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
@@ -47,6 +47,7 @@ Singleton {
property bool alwaysShowSwap: true
property bool alwaysShowCpu: false
}
property list<string> 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