dotfiles/.local/bin/scripts/kdeconnect-share

7 lines
235 B
Plaintext
Raw Normal View History

2021-07-15 08:36:53 +00:00
#!/bin/sh
if ! test -f "$1"; then echo "Please specify a file to share" && exit 1; fi
file="$1"
device="$(kdeconnect-cli --list-available 2>/dev/null | fzf -0 -1 | cut -d' ' -f3)"
shift
kdeconnect-cli "--share=$file" -d "$device" "$@"