did some bullshit
This commit is contained in:
@@ -15,6 +15,10 @@ Grid {
|
|||||||
columns: 5
|
columns: 5
|
||||||
horizontalItemAlignment: Grid.AlignHCenter
|
horizontalItemAlignment: Grid.AlignHCenter
|
||||||
verticalItemAlignment: Grid.AlignVCenter
|
verticalItemAlignment: Grid.AlignVCenter
|
||||||
|
onVisibleChanged: {
|
||||||
|
if (!visible) return
|
||||||
|
Hyprland.refreshToplevels()
|
||||||
|
}
|
||||||
component WorkspaceView: ClippingRectangle {
|
component WorkspaceView: ClippingRectangle {
|
||||||
color: "#282828"
|
color: "#282828"
|
||||||
width: 192
|
width: 192
|
||||||
@@ -53,11 +57,12 @@ Grid {
|
|||||||
ScreencopyView {
|
ScreencopyView {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
captureSource: modelData.wayland
|
captureSource: modelData.wayland
|
||||||
live: background.index == 7
|
live: overview.visible
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
TapHandler { onTapped: {
|
TapHandler { onTapped: {
|
||||||
|
if (modelData < 0) return
|
||||||
Hyprland.dispatch(`hl.dsp.focus({workspace = ${modelData + 1}})`)
|
Hyprland.dispatch(`hl.dsp.focus({workspace = ${modelData + 1}})`)
|
||||||
root.close()
|
root.close()
|
||||||
}}
|
}}
|
||||||
@@ -70,5 +75,11 @@ Grid {
|
|||||||
WorkspaceView {
|
WorkspaceView {
|
||||||
modelData: -100
|
modelData: -100
|
||||||
bottomRightRadius: 12
|
bottomRightRadius: 12
|
||||||
|
TapHandler {
|
||||||
|
onTapped: {
|
||||||
|
Hyprland.dispatch(`hl.dsp.workspace.toggle_special()`)
|
||||||
|
root.close()
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,10 +13,11 @@ PanelWindow {
|
|||||||
id: root
|
id: root
|
||||||
anchors {
|
anchors {
|
||||||
top: true
|
top: true
|
||||||
|
left: true
|
||||||
|
right: true
|
||||||
}
|
}
|
||||||
property var font: {family: "0xProto Nerd Font"}
|
property var font: {family: "0xProto Nerd Font"}
|
||||||
|
|
||||||
implicitWidth: 1024
|
|
||||||
implicitHeight: 400
|
implicitHeight: 400
|
||||||
WlrLayershell.keyboardFocus: (up && !background.exit.running && !shortcut.pressed && background.index <= 1) ? WlrKeyboardFocus.Exclusive : WlrKeyboardFocus.None
|
WlrLayershell.keyboardFocus: (up && !background.exit.running && !shortcut.pressed && background.index <= 1) ? WlrKeyboardFocus.Exclusive : WlrKeyboardFocus.None
|
||||||
WlrLayershell.layer: WlrLayer.Overlay
|
WlrLayershell.layer: WlrLayer.Overlay
|
||||||
|
|||||||
Reference in New Issue
Block a user