Automation scripts in scripts/.
Sorts macOS screenshots into ~/Pictures/Screenshots/YYYY/MM-Mon/ subfolders
by parsing the date from the filename. Handles both old (Screen Shot ...) and
new (Screenshot ...) naming formats, plus screen recordings.
# Preview what would happen
sort-screenshots --dry-run
# Sort screenshots already in ~/Pictures/Screenshots (default)
sort-screenshots
# Sort from a different source directory
sort-screenshots ~/DesktopSetup: macOS screenshots are redirected to ~/Pictures/Screenshots/:
defaults write com.apple.screencapture location ~/Pictures/Screenshots
killall SystemUIServerCron: runs nightly at midnight to sort new screenshots into subfolders:
0 0 * * * /Users/vsb/dotfiles/scripts/sort-screenshots >> /tmp/sort-screenshots.log 2>&1
Prints a compact CPU/RAM status line for the tmux status bar. Used by
.tmux.conf to display system load.
⚡ CPU 12% · RAM 68%/16G