feat(lockscreen): add FileWatcher IPC trigger, lock_screen.sh helper, and desktop entry for Meta+L shortcut binding

This commit is contained in:
Sho 2026-08-02 16:25:28 +09:00
parent 0bbe3b637a
commit 3871310e50
2 changed files with 11 additions and 0 deletions

3
quickshell/lock_screen.sh Executable file
View File

@ -0,0 +1,3 @@
#!/usr/bin/env bash
# QuickShell Lockscreen Trigger Script
touch /tmp/quickshell_lock_trigger

View File

@ -33,6 +33,14 @@ Item {
usernameProc.running = true usernameProc.running = true
} }
FileWatcher {
id: lockTriggerWatcher
path: "/tmp/quickshell_lock_trigger"
onFileChanged: {
root.lock()
}
}
Process { Process {
id: usernameProc id: usernameProc
command: ["whoami"] command: ["whoami"]