https://github.com/proffix4/kbdled
Small utility for controlling your keyboard LEDs
https://github.com/proffix4/kbdled
Last synced: 5 months ago
JSON representation
Small utility for controlling your keyboard LEDs
- Host: GitHub
- URL: https://github.com/proffix4/kbdled
- Owner: proffix4
- Created: 2022-05-27T12:50:58.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2016-08-05T23:05:42.000Z (almost 10 years ago)
- Last Synced: 2025-06-05T07:04:25.021Z (about 1 year ago)
- Size: 5.86 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# kbdled
A small utility for controlling your keyboard LEDs.
Tested under FreeBSD 10.1.
## Installation
```bash
make install
```
## Usage
```
usage: kbdled [+-][cnsr]
kbdled -t tty [+-][cnsr]
```
Toggle your Caps Lock LED:
```bash
kbdled c
```
Toggle Num Lock LED:
```bash
kbdled n
```
Toggle Scroll Lock LED:
```bash
kbdled s
```
Reset all LEDs to off:
```bash
kbdled r
```
You can combine options to toggle multiple LEDs.
Toggle all LEDs:
```bash
kbdled cns
```
Prefix an LED with `+` to enable it and with `-` to disable it.
Enable the Caps Lock LED:
```bash
kbdled +c
```
Disable the Caps Lock LED:
```bash
kbdled -c
```
Enable all LEDs not matter their previous state:
```bash
kbdled +c+n+s
```
You can specify a tty like this:
```bash
kbdled -t /dev/ttyv8 +cns
```
There is some simple support for animating your LEDs.
The following example enables your Caps Lock LED, waits 250 ms and then disables it again.
```bash
kblded +c w250 -c
```
You can loop with `loop`. This makes your Caps Lock LED blink forever:
```bash
kbdled +c w250 -c w250 loop
```
To make all LEDs "bounce" back and forth:
```bash
kbdled r+n w250 -n+c w250 -c+s w250 -s+c w250 -c+n w250 loop
```
## License
Copyright (c) 2015 by Tobias Kortkamp
Distributed under the BSD 2-Clause License.