From f3392d61ddec6004c2770873eb58344f2ac386e7 Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Thu, 15 Jul 2021 10:36:53 +0200 Subject: [PATCH] bin: add kdeconnect-share shortcut --- .local/bin/scripts/kdeconnect-share | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 .local/bin/scripts/kdeconnect-share diff --git a/.local/bin/scripts/kdeconnect-share b/.local/bin/scripts/kdeconnect-share new file mode 100755 index 0000000..232c461 --- /dev/null +++ b/.local/bin/scripts/kdeconnect-share @@ -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" "$@"