quickshell and hyprland additions

This commit is contained in:
2026-03-15 13:56:00 +02:00
parent c9c27d1554
commit 1ad06b82a6
509 changed files with 68371 additions and 19 deletions

View File

@@ -0,0 +1,55 @@
pragma ComponentBehavior: Bound
import qs.components.misc
import Quickshell
import Quickshell.Io
import Quickshell.Wayland
Scope {
property alias lock: lock
WlSessionLock {
id: lock
signal unlock
LockSurface {
lock: lock
pam: pam
}
}
Pam {
id: pam
lock: lock
}
CustomShortcut {
name: "lock"
description: "Lock the current session"
onPressed: lock.locked = true
}
CustomShortcut {
name: "unlock"
description: "Unlock the current session"
onPressed: lock.unlock()
}
IpcHandler {
target: "lock"
function lock(): void {
lock.locked = true;
}
function unlock(): void {
lock.unlock();
}
function isLocked(): bool {
return lock.locked;
}
}
}