Creates the scripts.

This commit is contained in:
2026-08-25 12:18:46 -06:00
commit 67e1cd9d3b
3 changed files with 259 additions and 0 deletions

11
android-watch-lock Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/bash
# ADB watch for login and unlock a phone
dbus-monitor --session "type=signal,interface=org.freedesktop.ScreenSaver" | while read MSG; do
LOCK_STAT=`echo $MSG | grep boolean | awk '{print $2}'`
if [[ "$LOCK_STAT" == "true" ]]; then
android-lock -l
elif [[ "$LOCK_STAT" == "false" ]]; then
android-lock -u
fi
done