.dotfiles/.scripts/screenshot_save_and_upload_last_to_catbox.sh

6 lines
236 B
Bash
Raw Normal View History

2024-09-21 19:14:02 -04:00
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