{"id":27888614,"url":"https://github.com/getbettr/loglux","last_synced_at":"2026-01-19T00:01:29.870Z","repository":{"id":258072655,"uuid":"864488882","full_name":"getbettr/loglux","owner":"getbettr","description":"Logarithmic brightness control for Linux. 🦀🐧","archived":false,"fork":false,"pushed_at":"2025-12-21T02:07:39.000Z","size":93,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-22T23:13:21.275Z","etag":null,"topics":["brightness-control","linux","musl-libc","rust","sysfs"],"latest_commit_sha":null,"homepage":"https://getbetter.ro/projects/#loglux","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/getbettr.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-09-28T10:59:29.000Z","updated_at":"2025-01-01T21:19:14.000Z","dependencies_parsed_at":"2024-10-17T14:55:17.791Z","dependency_job_id":"352de673-44f2-4958-acfc-af27e07f363c","html_url":"https://github.com/getbettr/loglux","commit_stats":null,"previous_names":["rarescosma/loglux","getbettr/loglux"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/getbettr/loglux","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getbettr%2Floglux","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getbettr%2Floglux/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getbettr%2Floglux/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getbettr%2Floglux/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/getbettr","download_url":"https://codeload.github.com/getbettr/loglux/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getbettr%2Floglux/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28554368,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T23:48:35.235Z","status":"ssl_error","status_checked_at":"2026-01-18T23:47:49.178Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["brightness-control","linux","musl-libc","rust","sysfs"],"created_at":"2025-05-05T09:10:07.955Z","updated_at":"2026-01-19T00:01:29.851Z","avatar_url":"https://github.com/getbettr.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"Loglux\n======\n\n[![License](https://img.shields.io/badge/license-UNLICENSE-blue.svg?style=flat)](https://github.com/rarescosma/loglux/blob/master/UNLICENSE)\n\nLoglux is a simple rust application with portable binaries to control brightness.\n\nWhile heavily inspired by the original [lux][lux], it differs from it in one major aspect:\n\nThe brightness control is [logarithmic][weber-fechner] - as we approach darker and\ndarker brightness values the control step gets smaller and smaller.\n\nIt's perfect for us creatures of the night watching rust streams in complete\ndarkness at 1AM as it allows us to make the laptop screen *really* dark.\n\n## Usage\n\n```\nloglux OPERATION [-p|--path (default: /sys/class/backlight)] [-n|--num-steps (default: 75)] [--no-notify]\n```\n\n* `OPERATION` is either `up` or `down`\n* `--path` can be either a start directory containing multiple controllers, or a path to specific\n  controller.\n  In the directory case, the controller with the highest `max_brightness` setting will be selected.\n* `--num-steps` is the only tunable parameter and it specifies the total number of steps for the\n  adjustment scale. The default is tuned for steps of 9-10% near the maximum, then they'll get\n  smaller and smaller as we approach the minimum.\n* `--no-notify` skips the notification of the new value via `notify-send`.\n\n## Installation\n\nBinaries for Linux on various architectures are available on the [releases][releases] page.\n\nThey are statically linked against [musl][musl] to completely reduce runtime dependencies.\n\n\u003e [!NOTE]\n\u003e Your user _must_ have write rights for the `/sys/class/backlight/.../brightness`\n\u003e file you're planning to use.\n\u003e\n\u003e Your best bet is to do a `ls -a /sys/class/backlight/*/brightness` and check if\n\u003e it's owned by the `video` group and if the group has write rights.\n\u003e\n\u003e If that's the case, simply add your user to the `video` group: `sudo usermod -aG video $USER`\n\u003e\n\u003e For a more involved solution using `udev` you could first add your user to the `wheel` group:\n\u003e\n\u003e ```\n\u003e sudo usermod -aG wheel $USER\n\u003e ```\n\u003e\n\u003e Then define the udev rules to ensure the brightness file is writeable:\n\u003e\n\u003e ```\n\u003e sudo tee /etc/udev/rules.d/99-loglux.rules \u003c\u003cEOF\n\u003e RUN+=\"/bin/chgrp wheel /sys/class/backlight/intel_backlight/brightness\"\n\u003e RUN+=\"/bin/chmod g+w /sys/class/backlight/intel_backlight/brightness\"\n\u003e EOF\n\u003e ```\n\u003e\n\u003e Finally, trigger udev:\n\u003e\n\u003e ```\n\u003e sudo udevadm control --reload-rules \u0026\u0026 sudo udevadm trigger\n\u003e ```\n\n[lux]: https://github.com/Ventto/lux\n\n[weber-fechner]: https://en.wikipedia.org/wiki/Weber%E2%80%93Fechner_law\n\n[releases]: https://github.com/rarescosma/loglux/releases\n\n[musl]: https://musl.libc.org/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetbettr%2Floglux","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgetbettr%2Floglux","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetbettr%2Floglux/lists"}