From e860d9a8f7ca586fa88ba2f0b1325377ebb14615 Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Thu, 8 Oct 2020 01:53:07 -0400 Subject: dwmblocks scripts --- .local/bin/dbshare | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 .local/bin/dbshare (limited to '.local/bin/dbshare') diff --git a/.local/bin/dbshare b/.local/bin/dbshare new file mode 100755 index 0000000..817fe8c --- /dev/null +++ b/.local/bin/dbshare @@ -0,0 +1,14 @@ +#!/bin/bash + +output="$(dropbox-cli sharelink $1)" + +case "$output" in + https*) + echo "$output" | xsel -b + notify-send -a " Dropbox" "Your file $1 can now be shared. It's url is: +$output +It has been copied to your clipboard." ;; + *) + notify-send -a " Dropbox" "ERROR: +Your file could not be shared." ;; +esac -- cgit v1.2.3