mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 14:59:27 -05:00
bar: fix screen filtering
This commit is contained in:
@@ -26,21 +26,14 @@ Scope {
|
||||
implicitWidth: 1
|
||||
color: Appearance.colors.colOutlineVariant
|
||||
|
||||
|
||||
// Check screensList from config, If no screens are specified, show on all screens
|
||||
ScriptModel {
|
||||
id: screensModel
|
||||
values: {
|
||||
Variants { // For each monitor
|
||||
model: {
|
||||
const screens = Quickshell.screens;
|
||||
const list = ConfigOptions.bar.screensList;
|
||||
if (!list || list.length === 0)
|
||||
return screens;
|
||||
return screens.filter(screen => list.includes(screen.name));
|
||||
}
|
||||
}
|
||||
|
||||
Variants { // For each monitor
|
||||
model: screensModel.values
|
||||
|
||||
PanelWindow { // Bar window
|
||||
id: barRoot
|
||||
|
||||
Reference in New Issue
Block a user