{"id":18711634,"url":"https://github.com/maybethisisru/keep-clean","last_synced_at":"2025-07-02T17:32:28.962Z","repository":{"id":119544618,"uuid":"366929918","full_name":"MaybeThisIsRu/keep-clean","owner":"MaybeThisIsRu","description":null,"archived":false,"fork":false,"pushed_at":"2021-05-13T04:07:00.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-02T04:55:59.669Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MaybeThisIsRu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-13T04:06:45.000Z","updated_at":"2023-03-04T10:47:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"5b958bb8-3010-4fee-9320-46c0fb7c788e","html_url":"https://github.com/MaybeThisIsRu/keep-clean","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MaybeThisIsRu/keep-clean","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaybeThisIsRu%2Fkeep-clean","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaybeThisIsRu%2Fkeep-clean/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaybeThisIsRu%2Fkeep-clean/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaybeThisIsRu%2Fkeep-clean/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MaybeThisIsRu","download_url":"https://codeload.github.com/MaybeThisIsRu/keep-clean/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaybeThisIsRu%2Fkeep-clean/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263184643,"owners_count":23427061,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T12:40:04.026Z","updated_at":"2025-07-02T17:32:28.937Z","avatar_url":"https://github.com/MaybeThisIsRu.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# keep-clean\n\nA bash script I use to watch for certain file extensions and move them from the Downloads directory to the appropriate home directory (Documents/Pictures/Videos).\n\n## Dependencies\n\n- `inotify-tools`\n    - On Ubuntu and its derivatives: `sudo apt install inotify-tools`\n- `rsync` to move files and delete the source after\n\n## Usage\n\n- The bash script is available as `clean.sh`. Copy it wherever you'd like to keep the script.\n- A systemd unit configuration file, `clean-docs.service`, is also available. This must be copied to `/etc/systemd/system/clean-docs.service`. Configure the service environment variables to move different file extensions to different directories (`source`, `destination`, `look_for`).\n    - Each configuration set can be a new `.service` file.\n- Since we have added or edited a service file, reload systemctl: `systemctl daemon-reload`\n- _Enable_ the service to start on login automatically: `systemctl enable clean-docs`\n- Start now with `systemctl start clean-docs`.\n- Check logs (and test) with `journalctl -u clean-docs --follow`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaybethisisru%2Fkeep-clean","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaybethisisru%2Fkeep-clean","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaybethisisru%2Fkeep-clean/lists"}