did some bullshit

This commit is contained in:
2026-08-25 22:57:41 -07:00
parent d30423779e
commit 209bcdbd66
2 changed files with 14 additions and 2 deletions

View File

@@ -15,6 +15,10 @@ Grid {
columns: 5
horizontalItemAlignment: Grid.AlignHCenter
verticalItemAlignment: Grid.AlignVCenter
onVisibleChanged: {
if (!visible) return
Hyprland.refreshToplevels()
}
component WorkspaceView: ClippingRectangle {
color: "#282828"
width: 192
@@ -53,11 +57,12 @@ Grid {
ScreencopyView {
anchors.fill: parent
captureSource: modelData.wayland
live: background.index == 7
live: overview.visible
}
}
}
TapHandler { onTapped: {
if (modelData < 0) return
Hyprland.dispatch(`hl.dsp.focus({workspace = ${modelData + 1}})`)
root.close()
}}
@@ -70,5 +75,11 @@ Grid {
WorkspaceView {
modelData: -100
bottomRightRadius: 12
TapHandler {
onTapped: {
Hyprland.dispatch(`hl.dsp.workspace.toggle_special()`)
root.close()
}
}
}
}