blob: ea327ad918c9720669ff907621f2fb36a631298b (
plain) (
blame)
1
2
3
4
5
6
7
|
#!/usr/bin/env bash
image_name=$(rofi -dmenu -l 0 -p "Image name")
xclip -selection clipboard -t image/png -o > ~/Documents/tehbox-files/$image_name
eval $(ssh-agent)
rsync ~/Documents/tehbox-files/$image_name boss@tehbox.org:/srv/files
notify-send "uploaded https://files.tehbox.org/$image_name"
echo -n "https://files.tehbox.org/$image_name" | xclip -i -selection clipboard
|