client-scripts/flameshot_upload.sh

16 lines
309 B
Bash
Raw Normal View History

2020-01-25 20:04:14 +01:00
#!/bin/sh
file_name=$(echo ~/Pictures/Screenshots/)
base_name=$(date +%F_%H-%M-%S)
base_name+=".png"
file_name+=$base_name
flameshot gui -r > $file_name
2020-08-13 11:36:52 +02:00
url=$(sh $(dirname $0)/push_file.sh $file_name)
2020-01-25 20:04:14 +01:00
echo $url | xclip -selection clipboard
notify-send "File upload complete" "$url" --icon=flameshot.svg