Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 1.02 KB

File metadata and controls

42 lines (29 loc) · 1.02 KB

Scripts

Automation scripts in scripts/.

scripts/sort-screenshots

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 ~/Desktop

Setup: macOS screenshots are redirected to ~/Pictures/Screenshots/:

defaults write com.apple.screencapture location ~/Pictures/Screenshots
killall SystemUIServer

Cron: runs nightly at midnight to sort new screenshots into subfolders:

0 0 * * * /Users/vsb/dotfiles/scripts/sort-screenshots >> /tmp/sort-screenshots.log 2>&1

scripts/tmux-sysinfo.sh

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