https://github.com/markusressel/keyboard-backlight-daemon
A daemon to make your keyboard backlight smart.
https://github.com/markusressel/keyboard-backlight-daemon
backlight backlight-dimming daemon input keyboard keyboard-backlight
Last synced: 3 months ago
JSON representation
A daemon to make your keyboard backlight smart.
- Host: GitHub
- URL: https://github.com/markusressel/keyboard-backlight-daemon
- Owner: markusressel
- License: agpl-3.0
- Created: 2022-01-16T01:49:38.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-09-15T10:51:17.000Z (7 months ago)
- Last Synced: 2024-11-21T01:44:44.964Z (5 months ago)
- Topics: backlight, backlight-dimming, daemon, input, keyboard, keyboard-backlight
- Language: Go
- Homepage:
- Size: 208 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
keyboard-backlight-daemon
A daemon to make your keyboard backlight smart.
[]()
[](https://github.com/markusressel/keyboard-backlight-daemon/releases)
[](/LICENSE)# Features
* [x] Light up keyboard backlight based on user interaction (keyboard, mouse, touchpad)
* [x] No system dependencies# Tested on
* [x] Asus ROG Zephyrus M16 (2021)
# How to use
## Installation
### 
```shell
cd contrib
makepkg -sic
```### Manual
Download the latest release from GitHub:
```shell
curl -L -o keyboard-backlight-daemon https://github.com/markusressel/keyboard-backlight-daemon/releases/latest/download/keyboard-backlight-daemon-linux-amd64
chmod +x keyboard-backlight-daemon
sudo cp ./keyboard-backlight-daemon /usr/bin/keyboard-backlight-daemon
sudo keyboard-backlight-daemon
```Or compile yourself:
```shell
git clone https://github.com/markusressel/keyboard-backlight-daemon.git
cd keyboard-backlight-daemon
make build
sudo cp ./bin/keyboard-backlight-daemon /usr/bin/keyboard-backlight-daemon
sudo chmod ug+x /usr/bin/keyboard-backlight-daemon
sudo keyboard-backlight-daemon
```## Configuration
If you want to change the default behaviour of keyboard-backlight-daemon you can create a YAML configuration file in **one** of the following locations:
* `/etc/keyboard-backlight-daemon/keyboard-backlight-daemon.yaml` (recommended)
* `~/.config/keyboard-backlight-daemon.yaml`
* `./keyboard-backlight-daemon.yaml````shell
sudo mkdir /etc/keyboard-backlight-daemon
sudo nano /etc/keyboard-backlight-daemon/keyboard-backlight-daemon.yaml
```## Run
### Systemd Service
Use the [systemd unit file](./keyboard-backlight-daemon.service) in this repository. To enable it simply run:
```shell
sudo cp ./keyboard-backlight-daemon.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable --now keyboard-backlight-daemon
# follow logs
journalctl -u keyboard-backlight-daemon -f
```# Dependencies
See [go.mod](go.mod)
# Similar Projects
* [alexmohr/keyboard-backlight](https://github.com/alexmohr/keyboard-backlight)
* [ruben2020/kbd_backlight_ctrl](https://github.com/ruben2020/kbd_backlight_ctrl)
* [moson-mo/smartlight](https://github.com/moson-mo/smartlight)# License
```
keyboard-backlight-daemon
Copyright (C) 2021 Markus ResselThis program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
```