move bar to Shell module

This commit is contained in:
Benjamin Palko 2025-08-12 22:33:44 -04:00
parent 3e3275a84d
commit b75f8bc1d2
3 changed files with 88 additions and 73 deletions

18
modules/Shell.qml Normal file
View file

@ -0,0 +1,18 @@
import "bar"
import Quickshell
import Quickshell.Wayland
import Quickshell.Hyprland
import QtQuick
import QtQuick.Effects
Variants {
model: Quickshell.screens
Scope {
id: scope
required property ShellScreen modelData
Bar {}
}
}

View file

@ -8,8 +8,7 @@ import "components/hyprland"
import "components/notifications" import "components/notifications"
import "components/tray" import "components/tray"
Scope { PanelWindow {
PanelWindow {
id: parentWindow id: parentWindow
anchors.top: true anchors.top: true
@ -110,5 +109,4 @@ Scope {
Notifications {} Notifications {}
} }
} }
}
} }

View file

@ -2,12 +2,11 @@
import Quickshell import Quickshell
import "modules" import "modules"
import "modules/bar"
ShellRoot { ShellRoot {
ReloadPopup {} ReloadPopup {}
Bar {} Shell {}
Shortcuts {} Shortcuts {}
} }