{"id":18044834,"url":"https://github.com/will/detectbg","last_synced_at":"2025-04-05T03:27:09.143Z","repository":{"id":206275096,"uuid":"716253046","full_name":"will/detectbg","owner":"will","description":"standalone program to detect terminal background light/dark","archived":false,"fork":false,"pushed_at":"2023-11-08T18:50:07.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-10T11:45:44.776Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Nix","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/will.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":"2023-11-08T18:48:23.000Z","updated_at":"2023-11-08T18:50:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"3fd61ebe-ef70-44c2-9455-c40a6b2db158","html_url":"https://github.com/will/detectbg","commit_stats":null,"previous_names":["will/detectbg"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/will%2Fdetectbg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/will%2Fdetectbg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/will%2Fdetectbg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/will%2Fdetectbg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/will","download_url":"https://codeload.github.com/will/detectbg/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247284927,"owners_count":20913689,"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-30T18:10:57.738Z","updated_at":"2025-04-05T03:27:09.107Z","avatar_url":"https://github.com/will.png","language":"Nix","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Usage\n\n```bash\n$ detectbg\n$ detectbg [print-if-light default=light] [print-if-dark default=dark]\n```\n\n## Develop\n\n- `nix develop`: opens up a `bash` shell with the bare minimum Rust toolset (`cargo` \u0026 `rustc`) by default\n- `nix build` : builds the Rust project. Outputs the binary to `./result/bin/\u003cname\u003e`\n- `nix run`: runs the Rust program.\n\n\n## Reference\n\n1. [wiki/Flakes](https://nixos.wiki/wiki/Flakes)\n2. [Fenix](https://github.com/nix-community/fenix) - used for managing Rust toolchains (read the `makeRustPlatform` example)\n3. [rust-section of language frameworks](https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks/rust.section.md#cargo-features-cargo-features) - optional (use it for extending the template)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwill%2Fdetectbg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwill%2Fdetectbg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwill%2Fdetectbg/lists"}