Organize scripts

This commit is contained in:
2022-03-01 16:07:01 +03:00
parent 95d8d8e1c4
commit 5630243ef1
11 changed files with 78 additions and 31 deletions

14
scripts/shrfile Executable file
View File

@ -0,0 +1,14 @@
#!/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!"