{"id":15634887,"url":"https://github.com/d4l3k/go-sct","last_synced_at":"2025-04-13T18:40:21.919Z","repository":{"id":56049443,"uuid":"46323739","full_name":"d4l3k/go-sct","owner":"d4l3k","description":"A color temperature setting library and CLI that operates in a similar way to f.lux and Redshift. Supports Wayland, X and Windows","archived":false,"fork":false,"pushed_at":"2024-04-04T03:13:30.000Z","size":55,"stargazers_count":129,"open_issues_count":1,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-27T09:21:28.782Z","etag":null,"topics":["color-temperature","flux","redshift","sct","wayland"],"latest_commit_sha":null,"homepage":"","language":"C","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/d4l3k.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":"2015-11-17T04:42:48.000Z","updated_at":"2025-02-14T02:19:40.000Z","dependencies_parsed_at":"2024-06-19T00:23:04.840Z","dependency_job_id":"97a5f01c-4f33-44fd-94d5-7b4f7e87b2b5","html_url":"https://github.com/d4l3k/go-sct","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d4l3k%2Fgo-sct","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d4l3k%2Fgo-sct/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d4l3k%2Fgo-sct/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d4l3k%2Fgo-sct/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/d4l3k","download_url":"https://codeload.github.com/d4l3k/go-sct/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248764166,"owners_count":21158037,"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":["color-temperature","flux","redshift","sct","wayland"],"created_at":"2024-10-03T10:58:42.549Z","updated_at":"2025-04-13T18:40:21.896Z","avatar_url":"https://github.com/d4l3k.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-sct [![GoDoc](https://godoc.org/github.com/d4l3k/go-sct?status.svg)](https://godoc.org/github.com/d4l3k/go-sct)\n\nA color temperature setting library and CLI that operates in a similar way to f.lux and Redshift.\n\nThe command line app automatically determines your location using GeoIP and adjusts the color temperature depending on time.\n\nFor wayland support replace all commands with `waysct` instead of `sct`.\n\n```sh\n# For X11 and Windows\n$ go install github.com/d4l3k/go-sct/cmd/sct@latest\n\n$ sct # Launch in background\n$ sct 3000 # One time temperature change. Temperature must be 1000-10000.\n\n# For Wayland\n$ go install github.com/d4l3k/go-sct/cmd/waysct@latest\n\n$ waysct # Launch in background\n$ waysct 3000 # One time temperature change. Wayland requires a persistent manager so this will immediately revert.\n```\n\n## Windows\nBy default, the lowest color temperature allowed is around 4500K. More\ninformation is available [here](http://jonls.dk/2010/09/windows-gamma-adjustments/)\n\nThere is a workaround to allow all possible adjustments by alterting the registry.\n\n```\nWindows Registry Editor Version 5.00\n\n[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\ICM]\n\"GdiIcmGammaRange\"=dword:00000100\n```\nSave the above as a file with a \".reg\" extension and double click to apply.\n\n## Credit\nSetting the color temperature uses a port of [sct](http://www.tedunangst.com/flak/post/sct-set-color-temperature) in Go. Credit goes to him for figuring out how to do this.\n\ngo-sct also provides the `geoip` package which is a packaged version of\nhttp://devdungeon.com/content/ip-geolocation-go\n\n## License\nMade by [Tristan Rice](https://fn.lc).\n\ngo-sct is licensed under the MIT license. `geoip` and `sct` are copyrighted by their respective owners.\n\n`waysct` is using code from the redshift implementation and is licensed under\nGPLv3. See https://github.com/minus7/redshift/commit/7da875d34854a6a34612d5ce4bd8718c32bec804\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd4l3k%2Fgo-sct","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fd4l3k%2Fgo-sct","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd4l3k%2Fgo-sct/lists"}