This is a simple tool that helps you to clean your desktop (or any directory) by moving specific groups of file types to a designated folder.
You pass in a directory, and the tool will organize that directory by moving files of specific types to a designated folder within that directory.
You can configure the file types and the folders in the config file.
if you do not specify a path, the tool will use your desktop, if a desktop cannot be found, it will use your home.
You can always use the .
path to specify the current directory.
- Add support for config file
- Add support for custom file types
- Add support for custom folders
- Automatically create config file if it does not exist
- Add colors to the output
- Add support for subdirectories
- Add support for cross-link and cross-device file manipulation
- Add installers
- Sign releases
desktop_cleaner [OPTIONS] [PATH] [OPTIONAL TARGET PATH]
We also support the alias
dcx [OPTIONS] [PATH] [OPTIONAL TARGET PATH]
All commands have alises.
completion Generate the autocompletion script for the specified shell
help Help about any command
organize Organize files in the specified directory, based on the configuration file rules
rewind Rewind the operations to an earlier state, uses git and revision sha (need git installed)
upgrade Upgrade DesktopCleaner to the latest version
version Print the version number of DesktopCleaner
PATH The path to the folder you want to clean
TARGET PATH The path you want to move everything to, then organize in the new location
You can install from the releases or build from source.
Important
MacOS ARM64 users will have to build from source, as I do not have a new Mx Mac to build the executable on, yet. If you have a Mac and would like to help, please open an issue, I will be very grateful. Otherwise, if you feel like supporting me, check out my Github Sponsors Page, I will be very grateful too 😄
Note
Releases are only available for Linux and Windows at the moment.
Warning
Releases are not signed, so you will get a warning from your OS when you try to download and run the executable, this is normal and you can safely ignore it.
- Download the latest release from here
- Place the executable somewhere on your computer
- Add the location of the executable to your PATH
Important
This section of documentation is being worked on.
- Clone the repository
- Make sure go is installed.
make build
Or to build and install
make build && make install
To test the executable
make test
Please see the config file for an example.
The list of file types and their associated folders is only limited by your imagination (and the rules of your OS).