diff options
-rwxr-xr-x | unlock | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -0,0 +1,17 @@ +#!/data/data/com.termux/files/usr/bin/bash +#Dependecies: termux-api, openssh, jq + +toast() { + termux-toast -g bottem -b black $1 +} + +# Try to unlock +FINGERPRINT=$(termux-fingerprint | jq -r '.fingerprints[0].fingerprint') +if ( "$FINGERPRINT"); then + ssh pc "pkill slock" + toast "Success" +else + toast "Failed" +fi + +exit 0 |