{"id":18021010,"url":"https://github.com/tedezed/cmstrom_led_control","last_synced_at":"2026-05-19T07:32:17.349Z","repository":{"id":77721781,"uuid":"262419804","full_name":"Tedezed/cmstrom_led_control","owner":"Tedezed","description":"Cmstrom led control for Linux","archived":false,"fork":false,"pushed_at":"2023-10-07T11:44:46.000Z","size":61,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-08T02:47:00.047Z","etag":null,"topics":["cpp","keyboard","linux"],"latest_commit_sha":null,"homepage":null,"language":"C++","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/Tedezed.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":"2020-05-08T20:15:56.000Z","updated_at":"2023-10-07T09:38:20.000Z","dependencies_parsed_at":"2024-10-30T06:28:45.346Z","dependency_job_id":null,"html_url":"https://github.com/Tedezed/cmstrom_led_control","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Tedezed/cmstrom_led_control","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tedezed%2Fcmstrom_led_control","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tedezed%2Fcmstrom_led_control/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tedezed%2Fcmstrom_led_control/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tedezed%2Fcmstrom_led_control/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tedezed","download_url":"https://codeload.github.com/Tedezed/cmstrom_led_control/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tedezed%2Fcmstrom_led_control/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33206320,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-19T07:16:55.748Z","status":"ssl_error","status_checked_at":"2026-05-19T07:16:54.366Z","response_time":58,"last_error":"SSL_read: 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":["cpp","keyboard","linux"],"created_at":"2024-10-30T06:08:30.720Z","updated_at":"2026-05-19T07:32:17.330Z","avatar_url":"https://github.com/Tedezed.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CMSTROM led control for Linux\n\nCode designed for this specific keyboard **Cooler Master CM Storm Devastator**, but easily modifiable for others, modify variables: `led_path` and `kbd`\n\n\u003cimg src=\"./img/cm-storm-devastator-teclado-raton.jpg\" /\u003e\n\n### Install\n\n- Build: `g++ cmstrom_led.cpp -o cmstrom_led -lncurses`\n- Check that it works correctly: `./cmstrom_led`\n- Install: `sudo cp -f cmstrom_led /bin/`\n\nGet input id:\n```\n$ ls /sys/class/leds/\ninput7::capslock  input7::numlock  input7::scrollloc\n```\n\nCheck path:\n```\n$ ls /sys/class/leds/input7::scrolllock/brightness\n/sys/class/leds/input7::scrolllock/brightness\n```\n\nInput is 7 in my case.\n\n##### Option 1 - Create: `/etc/systemd/system/cmstrom_led.service`\n```\niption=/bin/cmstrom_led\nConditionPathExists=/bin/cmstrom_led\n \n[Service]\nType=simple\nUser=root\nExecStart=/bin/bash -c \"/bin/cmstrom_led $(ls /sys/class/leds/ | grep scroll | cut -d ':' -f1 | sed 's/input//g')\"\nTimeoutSec=0\nStandardOutput=tty\nRemainAfterExit=yes\nSysVStartPriority=99\n \n[Install]\nWantedBy=multi-user.target\n```\n\nReload units: `systemctl daemon-reload`\nEnable unit: `sudo systemctl enable cmstrom_led \u0026\u0026 systemctl start cmstrom_led`\n\n\n##### Option 2 - Create: `/etc/rc3.d/S01cmstrom_led.sh`\n```\n#!/bin/sh -e\n/bin/bash -c \"/bin/cmstrom_led $(ls /sys/class/leds/ | grep scroll | cut -d ':' -f1 | sed 's/input//g')\" \u0026\nexit 0\n```\n\nPermissions: `chmod +x /etc/rc3.d/cmstrom_led.sh`\n\n### Bonus\n\nYou can see which key you are pressing, uncomment the following line: https://github.com/Tedezed/cmstrom_led_control/blob/master/cmstrom_led.cpp#L33\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftedezed%2Fcmstrom_led_control","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftedezed%2Fcmstrom_led_control","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftedezed%2Fcmstrom_led_control/lists"}