blob: 0ed851fd72b47ae2ed40011c5d64619038df5797 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
|