#!/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 '.auth_result | contains("SUCCESS")') if ( "$FINGERPRINT"); then ssh pc "pkill slock" toast "Success" else toast "Failed" fi exit 0