Re-enable screen lock to allow device sleep now that we've fixed the return from sleep

This commit is contained in:
Adam Boardman 2021-03-29 10:54:56 +01:00
parent a3589547ff
commit a88294b92a

View 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