client-scripts/flameshot_upload_latest.sh

15 lines
320 B
Bash
Raw Normal View History

2020-01-25 20:04:14 +01:00
#!/bin/sh
latest_screenshot=$(ls -t ~/Pictures/Screenshots/ | head -1)
file_name=$(echo ~/Pictures/Screenshots/)
base_name=$latest_screenshot
file_name+=$base_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