last 7 months of qs changes

This commit is contained in:
outfoxxed 2025-01-06 00:13:19 -08:00
parent 2c64563ade
commit 4b90113a54
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
103 changed files with 3467 additions and 1415 deletions

View file

@ -3,8 +3,10 @@ pragma Singleton
import QtQuick
import QtQuick.Controls
import Quickshell
import Quickshell.Io
import Quickshell.Wayland
import Quickshell.Hyprland
import Quickshell.Services.Pam
import ".."
import "../.."
@ -61,18 +63,15 @@ Singleton {
root.oldWorkspaces = ({});
}
Shortcut {
name: "lock"
onPressed: {
if (root.locked) root.locked = false;
else root.locked = true;
}
IpcHandler {
target: "lockscreen"
function lock(): void { root.locked = true; }
}
LazyLoader {
id: lockContextLoader
LockContext {
SessionLockContext {
onUnlocked: root.locked = false;
}
}
@ -82,7 +81,7 @@ Singleton {
onSecureChanged: {
if (secure) {
Qt.callLater(() => root.workspaceLockAnimation());
root.workspaceLockAnimation();
}
}
@ -108,7 +107,7 @@ Singleton {
LockContent {
id: lockContent
context: lockContextLoader.item;
state: lockContextLoader.item.state;
visible: false
width: lockSurface.width
@ -128,7 +127,6 @@ Singleton {
onVisibleChanged: {
if (visible) {
lockContent.y = -lockSurface.height
console.log(`y ${lockContent.y}`)
lockContent.visible = true;
lockAnim.running = true;
}