QS Rewrite: bar: Add an option for choosing screens

This commit is contained in:
xB
2025-06-06 00:47:26 +03:00
parent 2cd548ae11
commit 2087ea72f8
2 changed files with 7 additions and 0 deletions
+3
View File
@@ -26,6 +26,9 @@ Scope {
id: barRoot
screen: modelData
// Check screensList from config, If no screens are specified, show on all screens
visible: ConfigOptions.bar.screensList.includes(modelData.name) || ConfigOptions.bar.screensList.length === 0
property ShellScreen modelData
property var brightnessMonitor: Brightness.getMonitorForScreen(modelData)
property real useShortenedForm: (Appearance.sizes.barHellaShortenScreenWidthThreshold >= screen.width) ? 2 :
@@ -36,6 +36,10 @@ Singleton {
property bool alwaysShowSwap: true
property bool alwaysShowCpu: false
}
property list<string> screensList: [
"HDMI-A-1",
"DP-1"
]
property QtObject workspaces: QtObject {
property int shown: 10
property bool alwaysShowNumbers: false