forked from Shinonome/dots-hyprland
QS Rewrite: bar: Add an option for choosing screens (#1363)
This commit is contained in:
@@ -25,10 +25,15 @@ Scope {
|
|||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
implicitWidth: 1
|
implicitWidth: 1
|
||||||
color: Appearance.colors.colOutlineVariant
|
color: Appearance.colors.colOutlineVariant
|
||||||
}
|
|
||||||
|
|
||||||
Variants { // For each monitor
|
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
|
PanelWindow { // Bar window
|
||||||
id: barRoot
|
id: barRoot
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ Singleton {
|
|||||||
property bool alwaysShowSwap: true
|
property bool alwaysShowSwap: true
|
||||||
property bool alwaysShowCpu: false
|
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 QtObject utilButtons: QtObject {
|
||||||
property bool showScreenSnip: true
|
property bool showScreenSnip: true
|
||||||
property bool showColorPicker: false
|
property bool showColorPicker: false
|
||||||
|
|||||||
Reference in New Issue
Block a user