diff options
author | Benjamin Chausse <benjamin@chausse.xyz> | 2020-10-08 01:53:07 -0400 |
---|---|---|
committer | Benjamin Chausse <benjamin@chausse.xyz> | 2020-10-08 01:53:07 -0400 |
commit | e860d9a8f7ca586fa88ba2f0b1325377ebb14615 (patch) | |
tree | 22775fb8343e95ae56b26a8207b6a31c857ee419 /.local/bin/dbshare | |
parent | c295d8331ff5193cb97b1e3f6b15836654b010cc (diff) |
dwmblocks scripts
Diffstat (limited to '.local/bin/dbshare')
-rwxr-xr-x | .local/bin/dbshare | 14 |
1 files changed, 14 insertions, 0 deletions
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 |