pragma ComponentBehavior: Bound import "root:/widgets" import Quickshell import Quickshell.Io import Quickshell.Wayland Scope { WlSessionLock { id: lock LockSurface { lock: lock } } CustomShortcut { name: "lock" description: "Lock the current session" onPressed: lock.locked = true } CustomShortcut { name: "unlock" description: "Unlock the current session" onPressed: lock.locked = false } IpcHandler { target: "lock" function lock(): void { lock.locked = true; } } }