diff --git a/CHANGELOG.md b/CHANGELOG.md index 79b0aad..d1ec57d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com), but adapt Instead of grouping changes by tag, they are grouped by the date they are released. +## 12th June 2024 + +### Added + +- Add `move-firefox-screenshots` - a script to move screenshots created in Firefox from my Downloads directory into my screenshots directory as there isn't a Firefox setting for this. + ## 11th June 2024 ### Changed diff --git a/bin/move-firefox-screenshots b/bin/move-firefox-screenshots new file mode 100755 index 0000000..d47e522 --- /dev/null +++ b/bin/move-firefox-screenshots @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +set -o errexit +set -o nounset +set -o pipefail + +original_directory="${HOME}/Downloads" +new_directory="${HOME}/Pictures/Screenshots" + +find "${original_directory}" -mindepth 1 -maxdepth 1 -type f -name "Screenshot *" \ + -exec mv {} "${new_directory}" \;