{"id":21481869,"url":"https://github.com/pboardman/laplights","last_synced_at":"2025-09-02T03:39:16.577Z","repository":{"id":104928614,"uuid":"99030311","full_name":"pboardman/laplights","owner":"pboardman","description":"Python module used to control the leds and/or backlights on a laptop.","archived":false,"fork":false,"pushed_at":"2017-08-01T18:44:24.000Z","size":1,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-17T09:15:35.188Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/pboardman.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":"2017-08-01T18:15:03.000Z","updated_at":"2017-08-01T18:18:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"9f5799bc-54d4-4d78-a205-03046d9126aa","html_url":"https://github.com/pboardman/laplights","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pboardman/laplights","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pboardman%2Flaplights","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pboardman%2Flaplights/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pboardman%2Flaplights/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pboardman%2Flaplights/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pboardman","download_url":"https://codeload.github.com/pboardman/laplights/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pboardman%2Flaplights/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273226450,"owners_count":25067535,"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","status":"online","status_checked_at":"2025-09-02T02:00:09.530Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-23T12:28:40.391Z","updated_at":"2025-09-02T03:39:16.549Z","avatar_url":"https://github.com/pboardman.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laplights\nLaplights is a python module used to control the leds and/or backlights on a laptop.\nIt only has support for the Thinkpad T460 for now but adding your own model is easy.\n\n## How to use\njust import laplights like this:\n`from laplights import Lights`\n\nthen you can do something like:\n```python\nlaptop_lights = Lights(\"t460\")\nlaptop_lights.set_brightness(\"screen_backlight\", 30)\n```\n\n## Adding your laptop model\nTo add your laptop model just add\n```python\nelif model == \"YOUR_MODEL\":\n  light_info[\"screen_backlight\"] = \"PATH_TO_YOUR_SYSCLASS_SCREEN_BACKLIGHT_DIR\"\n  light_info[\"kb_backlight\"] = \"PATH_TO_YOUR_SYSCLASS_KEYBOARD_BACKLIGHT_DIR\"\n  light_info[\"pwr_led\"] = \"PATH_TO_YOUR_SYSCLASS_PWR_LED_DIR\"\n  #etc... You can add more if you like\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpboardman%2Flaplights","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpboardman%2Flaplights","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpboardman%2Flaplights/lists"}