{"id":17069505,"url":"https://github.com/mgalgs/idleminer","last_synced_at":"2025-03-23T10:43:22.147Z","repository":{"id":138480559,"uuid":"340579781","full_name":"mgalgs/idleminer","owner":"mgalgs","description":"Mine crypto while your computer is idle","archived":false,"fork":false,"pushed_at":"2021-12-05T16:45:03.000Z","size":437,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-15T07:44:22.873Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mgalgs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-02-20T06:26:17.000Z","updated_at":"2021-12-05T16:45:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"74d2c417-6e83-4460-bb7a-9972e2a93a8f","html_url":"https://github.com/mgalgs/idleminer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgalgs%2Fidleminer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgalgs%2Fidleminer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgalgs%2Fidleminer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgalgs%2Fidleminer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mgalgs","download_url":"https://codeload.github.com/mgalgs/idleminer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245090866,"owners_count":20559296,"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-10-14T11:27:03.169Z","updated_at":"2025-03-23T10:43:22.127Z","avatar_url":"https://github.com/mgalgs.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# idleminer\n\nMine crypto while your computer is idle. :pick:\n\n![Screenshot](docs/screenshot.png)\n\nThis might or might not be profitable or a good idea for you. It might make\nsense if you have a negative power bill from solar and would like a better\nreturn on that power generation than the pennies-on-the-dollar typically\noffered by power companies, for example (hmmm, not specific at all, is\nit?).\n\nOnly `ethminer` through [flexpool](https://flexpool.io/) is supported at\nthe moment.\n\nThis is really just a collection of scripts and systemd (user) service\nfiles. It starts and stops mining automatically, using `xprintidle` to\ndetermine idleness.\n\n## Installation\n\nInstall the prerequisites with your system package manager:\n\n  - `xprintidle`\n  - `units`\n  - `jq`\n  - `awk`\n\nThen copy the config and systemd units into their appropriate\ndirectories. We use \"user\" service files since `xprintidle` doesn't work as\nroot (at least not without X11 authentication shenanigans).\n\n    cp -v idleminer-environment ~/.config\n    mkdir -pv ~/.config/systemd/user\n    ln -sv $(realpath ethminer.service) ~/.config/systemd/user\n    ln -sv $(realpath idleminer.service) ~/.config/systemd/user\n    ln -sv $(realpath idleminer-starter.desktop) ~/.config/autostart/\n    ln -sv $(realpath idleminer.sh) ~/bin/\n    ln -sv $(realpath start_ethminer.sh) ~/bin/\n\nthen update `~/.config/idleminer-environment` with your miner address, idle\nthreshold, etc.\n\nReboot (or reload the `systemctl` daemon with `systemctl --user\ndaemon-reload`). `idleminer.service` will be started automatically when you\nlogin to your desktop. If you'd rather start it manually each time just\nremove `~/.config/autostart/idleminer-starter.desktop` and run `systemctl\n--user start idleminer.service`.\n\nNow when your computer is idle (as per `xprintidle`) for longer than the\nperiod specified in your `idleminer-environment` the `ethminer.service`\nwill be kicked off and start mining. When `xprintidle` detects user\nactivity again `ethminer.service` will be stopped.\n\nYou can monitor the progress of `idleminer.service` and `ethminer.service`\nwith:\n\n    journalctl --user -xf -u idleminer.service\n\nand\n\n    journalctl --user -xf -u ethminer.service\n\n## Limitations\n\nInnumerable.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgalgs%2Fidleminer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmgalgs%2Fidleminer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgalgs%2Fidleminer/lists"}