Files
z-bar-qt/Modules/Lock/Lock.qml
T
AramJonghu a128c0fa40
Lint & Format (JS/TS) / lint-format (pull_request) Successful in 11s
Python / lint-format (pull_request) Successful in 21s
Python / test (pull_request) Successful in 52s
Lint & Format (Rust) / lint-format (pull_request) Successful in 1m4s
removal reduntant config option and settings, unused lines in Lock.qml
2026-06-03 17:59:03 +02:00

52 lines
593 B
QML

pragma ComponentBehavior: Bound
import Quickshell
import Quickshell.Wayland
import Quickshell.Io
import QtQuick
import qs.Components
Scope {
id: root
property alias lock: lock
property int seenOnce: 0
WlSessionLock {
id: lock
signal requestLock
signal unlock
LockSurface {
id: lockSurface
lock: lock
pam: pam
}
}
Pam {
id: pam
lock: lock
}
IpcHandler {
function lock() {
return lock.locked = true;
}
target: "lock"
}
CustomShortcut {
description: "Lock the current session"
name: "lock"
onPressed: {
lock.locked = true;
}
}
}