mirror of
https://github.com/sahinakkaya/dotfiles.git
synced 2024-12-23 07:39:36 +01:00
15 lines
296 B
Plaintext
15 lines
296 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
if [ -z "$1" ]
|
||
|
then
|
||
|
file=$(find . -maxdepth 1 -type f | cut -c 3- | rofi -i -dmenu -p "Select file to share")
|
||
|
else
|
||
|
file=$1
|
||
|
fi
|
||
|
|
||
|
if [ -z "$file" ]; then
|
||
|
exit
|
||
|
fi
|
||
|
curl -F "file=@$file" https://0x0.st | xclip -selection c
|
||
|
notify-send "Link to $file is copied to clipboard!"
|