This tool automatically organizes your Downloads folder by moving newly downloaded files into categorized subfolders based on their file type (Images, Videos, Documents, etc.). It uses a Bash script and incron to watch for new files and trigger sorting in real-time.
- Automatically sorts files into:
- Images (
.png,.jpg,.jpeg, etc.) - Videos (
.mp4,.mkv, etc.) - Audios (
.mp3,.wav, etc.) - Documents (
.pdf,.txt,.docx, etc.) - Archives (
.zip,.rar,.gz, etc.) - Presentations (
.pptx) - Others (anything else)
- Images (
- Triggered instantly on new file creation or move
- Works in the background using
incron
git clone https://github.com/yourusername/auto-download-sorter.git
cd auto-download-sortersudo dnf install incron
sudo systemctl enable --now incrondchmod +x sort_download.shincrontab -eAdd this line (replace /absolute/path/to/ if needed):
/home/YOUR_USERNAME/Downloads IN_CLOSE_WRITE /absolute/path/to/sort_download.sh %w%f