15 lines
320 B
Bash
Executable File
15 lines
320 B
Bash
Executable File
#!/bin/sh
|
|
|
|
latest_screenshot=$(ls -t ~/Pictures/Screenshots/ | head -1)
|
|
|
|
file_name=$(echo ~/Pictures/Screenshots/)
|
|
base_name=$latest_screenshot
|
|
|
|
file_name+=$base_name
|
|
|
|
url=$(sh $(dirname $0)/push_file.sh $file_name)
|
|
|
|
echo $url | xclip -selection clipboard
|
|
|
|
notify-send "File upload complete" "$url" --icon=flameshot.svg
|