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,41 @@
import Quickshell
import Quickshell.Io
import Quickshell.Wayland
Scope {
// This stores all the information shared between the lock surfaces on each screen.
LockContext {
id: lockContext
onUnlocked: {
// Unlock the screen before exiting, or the compositor will display a
// fallback lock you can't interact with.
lock.locked = false;
}
}
WlSessionLock {
id: lock
// Lock the session immediately when quickshell starts.
locked: false
WlSessionLockSurface {
LockSurface {
anchors.fill: parent
context: lockContext
}
}
}
IpcHandler {
target: "lockscreen"
function lock() {
lock.locked = true;
}
function unlock() {
lock.locked = false;
}
}
}