bin: add kdeconnect-share shortcut
This commit is contained in:
parent
642e0d8ebd
commit
f3392d61dd
1 changed files with 6 additions and 0 deletions
6
.local/bin/scripts/kdeconnect-share
Executable file
6
.local/bin/scripts/kdeconnect-share
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/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" "$@"
|
Loading…
Add table
Reference in a new issue