lid behavior watcher to lock session #115
@@ -1,18 +0,0 @@
|
||||
import Quickshell
|
||||
import ZShell
|
||||
import QtQuick
|
||||
|
||||
Scope {
|
||||
id: root
|
||||
|
||||
signal requestLock
|
||||
|
||||
Connections {
|
||||
function onStateChanged(): void {
|
||||
if (LidWatcher.state === LidWatcher.Closed)
|
||||
root.requestLock();
|
||||
}
|
||||
|
||||
target: LidWatcher
|
||||
}
|
||||
}
|
||||
@@ -2,6 +2,7 @@ pragma ComponentBehavior: Bound
|
||||
|
||||
import Quickshell
|
||||
import Quickshell.Wayland
|
||||
import ZShell.internal
|
||||
import qs.Config
|
||||
import qs.Helpers
|
||||
|
||||
|
||||
Reference in New Issue
Block a user