https://github.com/primalmotion/librem14-led
SImple bash script to pilot the Librem 14 notification LED
https://github.com/primalmotion/librem14-led
Last synced: 9 months ago
JSON representation
SImple bash script to pilot the Librem 14 notification LED
- Host: GitHub
- URL: https://github.com/primalmotion/librem14-led
- Owner: primalmotion
- License: gpl-3.0
- Created: 2021-05-24T07:06:00.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-07-02T05:29:04.000Z (almost 5 years ago)
- Last Synced: 2025-02-28T20:21:26.014Z (over 1 year ago)
- Language: Shell
- Size: 18.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# librem14-led
Controls Purism Librem's 14 notification LED.
Usage: $(basename $0) [-c _color_ ] [-r]
Value of -c can be an hexadcimal color without the `#` prefix or one the
constants:
- `r`: red
- `g`: green
- `b`: blue
- `w`: white
If you set `-r`, it will remember the current state of the led then
restore it before exiting. This can be used to make the led flash
to a different color then go back to its previous state.
Not passing any argument will turn the led off (equivalent to `-c 000000`).
This script uses `sudo`. To avoid having to enter your password, add the
following to `/etc/sudoers`:
ALL ALL=(ALL) NOPASSWD: /usr/bin/tee /sys/class/leds/*\:status/brightness