{"id":19684099,"url":"https://github.com/sammy-ette/Mori","last_synced_at":"2025-04-29T05:31:56.945Z","repository":{"id":104343253,"uuid":"370528969","full_name":"sammy-ette/Mori","owner":"sammy-ette","description":"🌲 Automatically put osu! related archives in their places.","archived":false,"fork":false,"pushed_at":"2021-12-25T16:48:09.000Z","size":67,"stargazers_count":8,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T13:38:10.913Z","etag":null,"topics":["beatmaps","daemon","directory-watching-daemon","golang","linux","osu","osugame"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sammy-ette.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-25T01:24:33.000Z","updated_at":"2024-01-08T21:50:52.000Z","dependencies_parsed_at":"2023-07-07T09:01:09.438Z","dependency_job_id":null,"html_url":"https://github.com/sammy-ette/Mori","commit_stats":null,"previous_names":["sammy-ette/mori","torchedsammy/mori"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sammy-ette%2FMori","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sammy-ette%2FMori/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sammy-ette%2FMori/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sammy-ette%2FMori/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sammy-ette","download_url":"https://codeload.github.com/sammy-ette/Mori/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251444662,"owners_count":21590548,"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":["beatmaps","daemon","directory-watching-daemon","golang","linux","osu","osugame"],"created_at":"2024-11-11T18:16:50.252Z","updated_at":"2025-04-29T05:31:56.674Z","avatar_url":"https://github.com/sammy-ette.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mori\n\u003e 🌲 Automatically put osu! related archives in their places.\n\nMori is a simple file/directory watching daemon, which moves recently downloaded\nosu! archives (osz/osk, beatmaps/skins) into their relevant directories.\nFor people that are lazy and don't want to drag and drop ([or can't](#Rationale)).\n\n## Rationale\nI have recently got into playing osu! again, while on Linux. \nWith a handy script, I got it setup easily and performs better than osu!lazer on my bad\nlaptop. Except drag and drop did not work so I could not import skins/beatmaps\nin that way. This is why Mori was born. It automatically puts recently created/\ndownloaded osu! beatmaps into osu!'s song directory, and skins in the skins\ndirectory. Then to import, just press F5 in beatmaps list. Or when you go back to it,\nit'll import.\n\n# Install\nIf you want, you can manually compile Mori with the steps below.\nGetting Mori is pretty easy. All you need is [Go](https://go.dev) downloaded\n(and git, yknow).\n\nType these commands in a terminal:  \n```\ngit clone https://github.com/TorchedSammy/Mori\ncd Mori\ngo get -d\ngo build -ldflags \"-s -w\" -o mori\nsudo cp mori /usr/local/bin/ # install globally (chose a different path if you want)\n```  \n\n# Usage\n\u003e Mori won't move beatmaps that are moved in normally to the source direcory\nimmediately, read on how [it watches for changes](#Detection).\n\nSimply run `mori \u0026`, which will spawn Mori as a background job in your shell.  \nIt'll log any files that were moved. You can also make Mori startup on boot as a\nuser service.\n\n## Configuration\nMori uses a JSON config, located in `~/.config/mori/mori.json`.\nIf you want, you can change this to another location with the `-C` flag.\nIt does not create this default config, but as a reference it looks like:  \n```json\n{\n\t\"osuDir\": \"~/.local/share/osu-wine/OSU\",\n\t\"sourceDir\": \"~/Downloads\",\n\t\"sweepTime\": \"5m\",\n\t\"autoExtract\": true\n}\n```\n`sourceDir` is where Mori will watch, and copy from.  \n`osuDir` is the osu! data directory, where all the files are.  \n`sweepTime` is the interval of when Mori will sweep the source directory for archives.  \n`autoExtract` defines whether Mori will automatically extract skins.\n\n## Detection\nMori detects \"new\" osu! archives by watching the configured directory to see if\nany files have been chmod'd, which is usually what happens when a while is created\n(and also when you, well, chmod a file). This means that beatmaps/skins that were\nalready in the configured directory or moved in won't automatically be moved to\ntheir direcory. Fear not, as Mori checks every 5 minutes if there are files in\nthe current directory that have the `osz` or `osk` extension! If they do, it'll\nmove them.\n\n# License\nMori is licensed under the BSD 3-Clause license.  \n[Read here](LICENSE) for more info.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsammy-ette%2FMori","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsammy-ette%2FMori","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsammy-ette%2FMori/lists"}