add hm module

This commit is contained in:
2026-03-06 19:29:17 -06:00
parent 93c1b00adc
commit b506d77dec
7 changed files with 149 additions and 83 deletions

View File

@@ -89,42 +89,11 @@ PanelWindow {
}
Rectangle {
BarLeft {
id: leftRect
implicitHeight: parent.height
implicitWidth: 40
color: Pywal.special.background
Launcher {
id: launcher
x: parent.width / 2 - implicitWidth / 2
y: implicitWidth / 3
Layout.alignment: Qt.AlignHCenter | Qt.AlignTop
}
Workspaces {
id: workspaces
x: parent.width / 2 - implicitWidth / 2
y: 20 + launcher.y + launcher.height
Layout.alignment: Qt.AlignHCenter | Qt.AlignTop
}
IdleInhibitor {
id: idleInhibitor
x: parent.width / 2 - implicitWidth / 2
y: 20 + workspaces.y + workspaces.height
Layout.alignment: Qt.AlignHCenter | Qt.AlignTop
visible: false
}
}
Rectangle {
id: rightRect
x: parent.width - width
@@ -226,58 +195,12 @@ PanelWindow {
}
}
VFlyout {
BarTop {
id: midFO
x: root.screen.width / 2 - width / 2
y: topRect.y + topRect.height - 1
color: Pywal.special.background
visible: set
property bool set: true
item: mid
RowLayout {
id: mid
Notifications {
id: notifications
window: root
}
Battery {
window: root
popupOffset: x + midFO.x
}
Tray {
window: root
popupOffset: x + midFO.x
}
Clock {
id: clock
}
Bluetooth {
window: root
popupOffset: x + midFO.x
}
Volume {
window: root
popupOffset: x + midFO.x
}
Power {
id: power
window: root
popupOffset: x + midFO.x
}
}
radius: radius
window: root
radius: root.radius
}
}

View File

@@ -0,0 +1,38 @@
import Quickshell // for PanelWindow
import QtQuick // for Text
import QtQuick.Shapes
import QtQuick.Controls
import QtQuick.Layouts
import Quickshell.Io
import Quickshell.Widgets
import Quickshell.Wayland
import Quickshell.Hyprland
Rectangle {
id: leftRect
implicitHeight: parent.height
implicitWidth: 40
color: Pywal.special.background
Launcher {
id: launcher
x: parent.width / 2 - implicitWidth / 2
y: implicitWidth / 3
Layout.alignment: Qt.AlignHCenter | Qt.AlignTop
}
Workspaces {
id: workspaces
x: parent.width / 2 - implicitWidth / 2
y: 20 + launcher.y + launcher.height
Layout.alignment: Qt.AlignHCenter | Qt.AlignTop
}
}

View File

@@ -0,0 +1,70 @@
import Quickshell // for PanelWindow
import QtQuick // for Text
import QtQuick.Shapes
import QtQuick.Controls
import QtQuick.Layouts
import Quickshell.Io
import Quickshell.Widgets
import Quickshell.Wayland
import Quickshell.Hyprland
VFlyout {
id: midFO
color: Pywal.special.background
visible: set
property bool set: true
property QsWindow window
property real radius
item: mid
RowLayout {
id: mid
Notifications {
id: notifications
window: midFO.window
}
Battery {
window: midFO.window
popupOffset: x + midFO.x
}
Tray {
window: midFO.window
popupOffset: x + midFO.x
}
Clock {
id: clock
}
IdleInhibitor {
id: idleInhibitor
}
Bluetooth {
window: midFO.window
popupOffset: x + midFO.x
}
Volume {
window: midFO.window
popupOffset: x + midFO.x
}
Power {
id: power
window: midFO.window
popupOffset: x + midFO.x
}
}
radius: radius
}