start dashboard

This commit is contained in:
2026-03-09 13:45:08 -05:00
parent 17ad2959c1
commit 9871af127a
6 changed files with 94 additions and 52 deletions

View File

@@ -19,11 +19,16 @@ PanelWindow {
bottom: true
}
Dashboard {
id: dash
radius: root.radius
}
Component.onCompleted: {
//Hyprland.dispatch("exec hyprctl keyword monitor eDP-1,addreserved," + topRect.height + "," + botRect.height + "," + leftRect.width + "," + rightRect.width)
Hyprland.dispatch("exec hyprctl keyword monitor eDP-1,addreserved," + (midFO.visible ? midFO.y + midFO.height : topEx) + "," + botEx + "," + leftEx + "," + rightEx)
Hyprland.dispatch("exec hyprctl keyword monitor " + Hyprland.monitorFor(root.screen).name + ",addreserved," + (midFO.visible ? midFO.y + midFO.height : topEx) + "," + botEx + "," + leftEx + "," + rightEx)
}
@@ -54,7 +59,10 @@ PanelWindow {
Region {
item: midFO.visible ? midFO : topRect
//item: midFO
}
Region {
item: dash.visible ? dash : topRect
}
}
@@ -70,9 +78,7 @@ PanelWindow {
hoverEnabled: true
onEntered: {
midFO.set = !midFO.set
midFO.visible = Qt.binding(() => midFO.set)
Hyprland.dispatch("exec hyprctl keyword monitor eDP-1,addreserved," + (midFO.visible ? midFO.y + midFO.height : topEx) + "," + botEx + "," + leftEx + "," + rightEx)
midFO.visible = true
}
//onEntered: midFO.visible = true
}
@@ -198,6 +204,7 @@ PanelWindow {
y: topRect.y + topRect.height - 1
window: root
radius: root.radius
onVisibleChanged: Hyprland.dispatch("exec hyprctl keyword monitor " + Hyprland.monitorFor(root.screen).name + ",addreserved," + (midFO.visible ? midFO.y + midFO.height : topEx) + "," + botEx + "," + leftEx + "," + rightEx)
}
}