.dotfiles/.scripts/screenshot_save_and_upload_last_to_catbox.sh
2024-09-21 20:14:02 -03:00

6 lines
236 B
Bash
Executable File

FOLDER=~/Screenshots/uploaded_screenshots/
SCRIPT_PATH=~/.scripts/bashed-catbox.sh
flameshot gui -s --path $FOLDER
file_path=$(ls $FOLDER -Art | tail -n 1 | xargs -I {} realpath "$FOLDER/{}")
"$SCRIPT_PATH" file -s "$file_path" | xclip