mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 14:59:27 -05:00
QS Rewrite: bar: Add an option for choosing screens
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user