blob: 817fe8c8eee7bf61e7a9e32d2ba6199e244d61f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
|