mirror of
https://github.com/kossLAN/dots.git
synced 2025-11-05 06:59:50 -05:00
put shell in subdir, and add nix package
This commit is contained in:
parent
c45c04e9ac
commit
f41ea4b1cb
100 changed files with 57 additions and 126 deletions
44
shell/lockscreen/Controller.qml
Normal file
44
shell/lockscreen/Controller.qml
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
pragma Singleton
|
||||
pragma ComponentBehavior: Bound
|
||||
|
||||
import Quickshell
|
||||
import Quickshell.Io
|
||||
import Quickshell.Wayland
|
||||
|
||||
Singleton {
|
||||
id: root
|
||||
|
||||
PersistentProperties {
|
||||
id: persist
|
||||
property bool locked: false
|
||||
}
|
||||
|
||||
IpcHandler {
|
||||
target: "lockscreen"
|
||||
|
||||
function lock(): void {
|
||||
persist.locked = true;
|
||||
}
|
||||
}
|
||||
|
||||
LockContext {
|
||||
id: passwordContext
|
||||
|
||||
onUnlocked: persist.locked = false
|
||||
}
|
||||
|
||||
WlSessionLock {
|
||||
id: lock
|
||||
|
||||
locked: persist.locked
|
||||
|
||||
WlSessionLockSurface {
|
||||
LockSurface {
|
||||
anchors.fill: parent
|
||||
context: passwordContext
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function init() {}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue