{"id":29553405,"url":"https://github.com/fededp/clight","last_synced_at":"2025-07-18T06:38:00.410Z","repository":{"id":37270049,"uuid":"73610210","full_name":"FedeDP/Clight","owner":"FedeDP","description":"A C daemon that turns your webcam into a light sensor. It will adjust screen backlight based on ambient brightness.","archived":false,"fork":false,"pushed_at":"2024-05-12T14:02:03.000Z","size":1590,"stargazers_count":746,"open_issues_count":22,"forks_count":27,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-20T06:34:12.436Z","etag":null,"topics":["battery","brightness","c","capture","capture-frames","daemon","gamma-correction","linux","screen-backlight","systemd","webcam"],"latest_commit_sha":null,"homepage":"","language":"C","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/FedeDP.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","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":"2016-11-13T10:59:54.000Z","updated_at":"2025-03-18T10:28:48.000Z","dependencies_parsed_at":"2023-10-13T04:49:41.075Z","dependency_job_id":"ef9b4019-25ef-4455-ad82-2917f7acdee2","html_url":"https://github.com/FedeDP/Clight","commit_stats":null,"previous_names":[],"tags_count":31,"template":false,"template_full_name":null,"purl":"pkg:github/FedeDP/Clight","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FedeDP%2FClight","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FedeDP%2FClight/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FedeDP%2FClight/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FedeDP%2FClight/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FedeDP","download_url":"https://codeload.github.com/FedeDP/Clight/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FedeDP%2FClight/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265711464,"owners_count":23815542,"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":["battery","brightness","c","capture","capture-frames","daemon","gamma-correction","linux","screen-backlight","systemd","webcam"],"created_at":"2025-07-18T06:37:58.160Z","updated_at":"2025-07-18T06:38:00.400Z","avatar_url":"https://github.com/FedeDP.png","language":"C","readme":"# Clight [![CI Build](https://github.com/FedeDP/clight/actions/workflows/ci.yaml/badge.svg)](https://github.com/FedeDP/clight/actions/workflows/ci.yaml) [![CodeQL](https://github.com/FedeDP/clight/actions/workflows/codeql.yaml/badge.svg)](https://github.com/FedeDP/clight/actions/workflows/codeql.yaml)\n\n[![Packaging status](https://repology.org/badge/vertical-allrepos/clight.svg)](https://repology.org/project/clight/versions)\n\nClight is a C user daemon utility that aims to fully manage your display.  \nIt was heavily inspired by [calise](http://calise.sourceforge.net/wordpress/) in its initial intents.  \n\n**For a guide on how to build, features and lots of other infos, head to [Clight Wiki Pages](https://github.com/FedeDP/Clight/wiki).**  \n**Note that Wiki pages will always refer to master branch.**  \n*For any other info, please before opening an issue, head to [FAQ](https://github.com/FedeDP/Clight/wiki/FAQ).*  \nIf the issue is not listed there, feel free to open a new one!\n\nLast, but not least, special thanks to all people involved in Clight!\n\n## Features\n\nClight allows to match your backlight level to ambient brightness, computed by capturing frames from webcam or Ambient Light Sensors.  \nIt does also support adjusting external monitors and keyboard backlight.  \nMoreover, it can manage your screen temperature, just like redshift does.  \nFinally, it can dim your screen after a timeout and manage screen DPMS.  \n\nNote that all its features are available on both **X, Wayland and tty** and can be turned off from its config file.  \nOn wayland Clight requires specific protocols to be implemented by your compositor; have a look at https://github.com/FedeDP/Clight/wiki/Modules#wayland-support.  \n\n## GUI\n\nGithub user [nullobsi](https://github.com/nullobsi) created a (super nice!) qt gui for clight, with a useful tray applet too.  \nRemember to check it out: https://github.com/nullobsi/clight-gui!\n\n## Developers Corner\n\nClight makes use of [Clightd](https://github.com/FedeDP/Clightd), a system DBus service that exposes an [API](https://github.com/FedeDP/Clightd/wiki/Api) to manage various aspects of your screen and allows Webcam/ALS devices captures.  \nIts API is as generic as possible and it has nothing specifically for Clight; this means anyone can make use of it.  \nIf you are interested, please have a look at its wiki pages too!  \nIndeed i even developed a super simple Clight clone as an hello world application in Go: https://github.com/FedeDP/GoLight.  \nIt is much simpler than Clight for obvious reasons and i do not expect to develop it further.  \n\nBoth Clight and Clightd make use of [libmodule](https://github.com/FedeDP/libmodule), a C library developed with modularity in mind that offers a simple actor framework for C, with an integrated event loop.\n\nMorever, note that Clight exposes a DBus [API](https://github.com/FedeDP/Clightd/wiki/Api) itself too; it allows quickly testing config values or building scripts around it, some of which you can find in Clight FAQ: https://github.com/FedeDP/Clight/wiki/FAQ#dbus-tricks.  \nThe DBus API first and main user is clight-gui.  \nFinally, it can also be expanded through [Custom modules](https://github.com/FedeDP/Clight/wiki/Custom-Modules) that enable users to build their own plugins to further customize Clight behaviour.  \n\n## License\nThis software is distributed with GPL license, see [COPYING](https://github.com/FedeDP/Clight/blob/master/COPYING) file for more informations.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffededp%2Fclight","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffededp%2Fclight","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffededp%2Fclight/lists"}