Added proposed fixes and implemented some animations+error text

This commit is contained in:
reakjra
2025-11-06 22:41:14 +01:00
parent 60144ca3de
commit f4c32f89f2
4 changed files with 57 additions and 6 deletions
@@ -47,12 +47,23 @@ Scope {
id: grab
windows: [overlayWindow]
active: GlobalStates.overlayOpen
onActiveChanged: {
if (active) {
// Quick workspace flick to unlock cursor from game's relative mode
cursorUnlockProcess.running = true;
}
}
onCleared: () => {
if (!active)
GlobalStates.overlayOpen = false;
}
}
Process {
id: cursorUnlockProcess
command: ["bash", "-c", "ws=$(hyprctl activeworkspace -j | jq -r '.id'); hyprctl --batch \"keyword animations:enabled 0 ; dispatch workspace empty ; dispatch workspace $ws ; keyword animations:enabled 1\""]
}
OverlayContent {
id: overlayContent
anchors.fill: parent