Do you often find yourself manually cleaning up your messy desktop?
I built a small Python script that organizes your desktop by sorting files into folders by type (images, docs, videos, etc). It takes a few seconds to run and instantly gives your workspace a clean look β no more chaos!
π§ What It Does
This script scans a folder (your desktop or any other) and moves files into categorized subfolders:
πΌ Images (PNG, JPG, JPEG, GIF)
π Documents (PDF, DOCX, TXT, XLSX)
π Videos (MP4, MOV, AVI)
π¦ Archives (ZIP, RAR)
π» How to Use It
python desktop_cleaner.py
# β Enter the path to your desktop (e.g., C:\Users\YourName\Desktop)
Thatβs it. It will automatically sort files into folders within that path.
π‘ Why I Made It
This is one of several utility scripts Iβve written to automate small daily tasks. The idea is to save 5β10 minutes a day on repetitive stuff and free your mind for more creative work.
Iβve bundled 5 such scripts into a free/open pack:
Script Purpose
π excel_analyzer.py Summarizes Excel columns (amounts, scores)
π bulk_renamer.py Renames multiple files using a prefix
π api_fetcher.py Fetches JSON from APIs and saves as CSV
π§Ή desktop_cleaner.py Sorts files into folders
πΌ image_resizer.py Resizes all images in a folder
π¦ Get the Full Pack
GitHub (Free & Open):
π https://github.com/Lunsy/desktopCleanerPublic.git
I also made a Gumroad version with a README and one-click download:
π https://lunsy.gumroad.com/l/python-automation-pack
π§ Thoughts?
Iβd love feedback, especially on what other small scripts could be useful. I plan to expand the pack over time.
Happy automating!
Lunsy
Top comments (0)