Re-enable screen lock to allow device sleep now that we've fixed the return from sleep
This commit is contained in:
parent
a3589547ff
commit
a88294b92a
1 changed files with 5 additions and 0 deletions
5
lib/systemd/system-sleep/gemian-lock
Executable file
5
lib/systemd/system-sleep/gemian-lock
Executable file
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
if [ "${1}" == "pre" ]; then
|
||||
USER=`loginctl list-sessions | grep seat0 | awk '{print $3}'`
|
||||
/bin/su - ${USER:-gemini} -c "DISPLAY=:0 gemian-lock"
|
||||
fi
|
||||
Loading…
Add table
Reference in a new issue