A background C daemon that automatically moves files from your Desktop into organized monthly folders. Only screenshots for now.
Runs every 8 hours and moves all files starting with Captura (macOS Portuguese) or Screenshot (macOS English) from ~/Desktop/ into:
~/Desktop/Screenshots/YYYY-MM/
make # build
make run # run (loops indefinitely in foreground)
make clean # kill the process and remove the binary- Detects the current user's home directory dynamically via
getpwuid - Creates
~/Desktop/Screenshots/and the currentYYYY-MMsubfolder if they don't exist - Uses
rename()to move matching files (no copy, instant) - Loops forever with an 8-hour sleep between runs (
sleep(28800))
src/
main.c # Entry point, loop + sleep
desktop_screenshot_organizer.c # Core logic
Makefile