Took caelestia lid logic (prepare to sleep) instead
This commit is contained in:
@@ -29,6 +29,10 @@ Scope {
|
||||
Quickshell.execDetached(action);
|
||||
}
|
||||
|
||||
LidWatcher {
|
||||
onAboutToSleep: root.lock.lock.locked = true
|
||||
}
|
||||
|
||||
Variants {
|
||||
model: Config.general.idle.timeouts
|
||||
|
||||
|
||||
@@ -9,7 +9,6 @@ import qs.Components
|
||||
Scope {
|
||||
id: root
|
||||
|
||||
required property var lid
|
||||
property alias lock: lock
|
||||
property int seenOnce: 0
|
||||
|
||||
@@ -22,13 +21,6 @@ Scope {
|
||||
onRequestLock: lock.locked = true
|
||||
onUnlock: lock.locked = false
|
||||
|
||||
Connections {
|
||||
target: root.lid
|
||||
function onRequestLock(): void {
|
||||
lock.locked = true
|
||||
}
|
||||
}
|
||||
|
||||
LockSurface {
|
||||
id: lockSurface
|
||||
|
||||
|
||||
Reference in New Issue
Block a user