add matugen support for hyprland
This commit is contained in:
@@ -1,37 +1,55 @@
|
||||
pragma ComponentBehavior: Bound
|
||||
import Quickshell
|
||||
import Quickshell.Wayland
|
||||
import Quickshell.Hyprland
|
||||
import Quickshell.Io
|
||||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
import QtQuick.Window
|
||||
|
||||
import "."
|
||||
import "constants"
|
||||
import "ui"
|
||||
import "services"
|
||||
|
||||
// qmllint disable uncreatable-type
|
||||
PanelWindow {
|
||||
ShellRoot {
|
||||
id: root
|
||||
|
||||
// =====================
|
||||
// Layout
|
||||
// =====================
|
||||
anchors.top: true
|
||||
anchors.left: true
|
||||
anchors.right: true
|
||||
implicitHeight: 25
|
||||
color: Constants.colBg
|
||||
|
||||
// put RandomWallpaper and SystemStats here so they only get instantiated once
|
||||
RandomWallpaper {}
|
||||
|
||||
SystemStats {
|
||||
id: stats
|
||||
}
|
||||
TopBar {
|
||||
anchors.fill: parent
|
||||
|
||||
cpuUsage: stats.cpuUsage
|
||||
memUsage: stats.memUsage
|
||||
Variants {
|
||||
model: Quickshell.screens
|
||||
|
||||
// qmllint disable uncreatable-type
|
||||
PanelWindow {
|
||||
id: rootPanel
|
||||
|
||||
required property ShellScreen modelData
|
||||
screen: modelData
|
||||
|
||||
// =====================
|
||||
// Layout
|
||||
// =====================
|
||||
anchors.top: true
|
||||
anchors.left: true
|
||||
anchors.right: true
|
||||
implicitHeight: 25
|
||||
color: Constants.colBg
|
||||
|
||||
Loader {
|
||||
id: wallpaperLoader
|
||||
sourceComponent: RandomWallpaper {}
|
||||
active: false
|
||||
}
|
||||
|
||||
TopBar {
|
||||
anchors.fill: parent
|
||||
|
||||
cpuUsage: stats.cpuUsage
|
||||
memUsage: stats.memUsage
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user