feat(lockscreen): add FileWatcher IPC trigger, lock_screen.sh helper, and desktop entry for Meta+L shortcut binding
This commit is contained in:
parent
0bbe3b637a
commit
3871310e50
3
quickshell/lock_screen.sh
Executable file
3
quickshell/lock_screen.sh
Executable file
@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
# QuickShell Lockscreen Trigger Script
|
||||
touch /tmp/quickshell_lock_trigger
|
||||
@ -33,6 +33,14 @@ Item {
|
||||
usernameProc.running = true
|
||||
}
|
||||
|
||||
FileWatcher {
|
||||
id: lockTriggerWatcher
|
||||
path: "/tmp/quickshell_lock_trigger"
|
||||
onFileChanged: {
|
||||
root.lock()
|
||||
}
|
||||
}
|
||||
|
||||
Process {
|
||||
id: usernameProc
|
||||
command: ["whoami"]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user