From a7a979e17e5e341232fbb9bbb8a5587a298b6a20 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 12 Jun 2024 09:00:00 +0100 Subject: [PATCH] Add `move-firefox-screenshots` script --- CHANGELOG.md | 6 ++++++ bin/move-firefox-screenshots | 11 +++++++++++ 2 files changed, 17 insertions(+) create mode 100755 bin/move-firefox-screenshots 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}" \;