Bash script for cleaning the Linux system with notifications
Light Bash script for automatic disk cleanup on Linux. It removes package cache, orphaned dependencies, system logs, and user caches. It sends desktop notifications with a progress bar during the process and a final report detailing how much space has been freed in each partition.
What the script can do:
- Backs up the list of installed packages before cleanup
- Completely clears the pacman cache and AUR helpers (yay, paru)
- Removes orphaned dependencies
- Trims the pacman log
- Cleans systemd logs (keeps the last 50 MB)
- Deletes safe directories of user cache (thumbnails, mesa shaders, fontconfig, etc.)
- Clears pip cache
- Sends a notification with the percentage of completion at each step
- At the end, sends a final notification with a breakdown by partitions
Stack:
Bash, pacman, systemd, notify-send, pip
For whom:
Users of Arch Linux and other distributions on systemd. Works with Hyprland, KDE, GNOME, and any other environment that supports notify-send.
GitHub: https://github.com/fedyaqq34356/arch-cleanup.git
What the script can do:
- Backs up the list of installed packages before cleanup
- Completely clears the pacman cache and AUR helpers (yay, paru)
- Removes orphaned dependencies
- Trims the pacman log
- Cleans systemd logs (keeps the last 50 MB)
- Deletes safe directories of user cache (thumbnails, mesa shaders, fontconfig, etc.)
- Clears pip cache
- Sends a notification with the percentage of completion at each step
- At the end, sends a final notification with a breakdown by partitions
Stack:
Bash, pacman, systemd, notify-send, pip
For whom:
Users of Arch Linux and other distributions on systemd. Works with Hyprland, KDE, GNOME, and any other environment that supports notify-send.
GitHub: https://github.com/fedyaqq34356/arch-cleanup.git