
* lock.sh is specific to Nokia N900, so move to device-nokia-n900 * use tinydm instead of lightdm Signed-off-by: Sicelo A. Mhlongo <absicsz@gmail.com> [ci:skip-build]: already built successfully in CI
14 lines
291 B
Bash
14 lines
291 B
Bash
#!/bin/sh
|
|
|
|
FILE=~/.screenoff
|
|
if [ -f $FILE ]; then
|
|
xinput set-prop 8 "Device Enabled" 1
|
|
xset dpms force on
|
|
rm "$FILE"
|
|
else
|
|
xinput set-prop 8 "Device Enabled" 0
|
|
# Turn screen off twice (sometimes it does not work on first run)
|
|
xset dpms force off
|
|
xset dpms force off
|
|
touch "$FILE"
|
|
fi
|