Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 21 lines (16 sloc) 384 Bytes
#!/bin/bash
# Rafael Cavalcanti
if (( $# == 0 )); then
printf "Usage: $(basename "$0") file [file...]\n"
exit 1
fi
phone_id=$(kdeconnect-cli -l --id-only | head -1)
while (( $# > 0 )); do
if kdeconnect-cli --device "$phone_id" --share "$1"; then
msg="File sent - $(basename -- "$1")"
else
msg="Failed to send the file."
fi
notify-send -a "send2phone" "$msg"
shift
done
You can’t perform that action at this time.