forked from Shinonome/dots-hyprland
QS Rewrite: bar: Add an option for choosing screens
This commit is contained in:
@@ -26,6 +26,9 @@ Scope {
|
|||||||
id: barRoot
|
id: barRoot
|
||||||
screen: modelData
|
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 ShellScreen modelData
|
||||||
property var brightnessMonitor: Brightness.getMonitorForScreen(modelData)
|
property var brightnessMonitor: Brightness.getMonitorForScreen(modelData)
|
||||||
property real useShortenedForm: (Appearance.sizes.barHellaShortenScreenWidthThreshold >= screen.width) ? 2 :
|
property real useShortenedForm: (Appearance.sizes.barHellaShortenScreenWidthThreshold >= screen.width) ? 2 :
|
||||||
|
|||||||
@@ -36,6 +36,10 @@ Singleton {
|
|||||||
property bool alwaysShowSwap: true
|
property bool alwaysShowSwap: true
|
||||||
property bool alwaysShowCpu: false
|
property bool alwaysShowCpu: false
|
||||||
}
|
}
|
||||||
|
property list<string> screensList: [
|
||||||
|
"HDMI-A-1",
|
||||||
|
"DP-1"
|
||||||
|
]
|
||||||
property QtObject workspaces: QtObject {
|
property QtObject workspaces: QtObject {
|
||||||
property int shown: 10
|
property int shown: 10
|
||||||
property bool alwaysShowNumbers: false
|
property bool alwaysShowNumbers: false
|
||||||
|
|||||||
Reference in New Issue
Block a user