https://github.com/franeklubi/abak
An unnecessarily minimal backlight controller
https://github.com/franeklubi/abak
asm assembly-x86 backlight nasm x86 x86-64
Last synced: 9 months ago
JSON representation
An unnecessarily minimal backlight controller
- Host: GitHub
- URL: https://github.com/franeklubi/abak
- Owner: franeklubi
- License: mit
- Created: 2020-04-06T22:02:03.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-15T12:36:10.000Z (about 6 years ago)
- Last Synced: 2025-04-19T05:09:43.301Z (about 1 year ago)
- Topics: asm, assembly-x86, backlight, nasm, x86, x86-64
- Language: Assembly
- Homepage:
- Size: 9.77 KB
- Stars: 7
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# abak
### Usage:
```sh
$ abak ; output: current backlight percentage
$ abak 20 ; sets backlight to 20%
$ abak +10 ; adds 10% to backlight
$ abak -10 ; subtracts 10% from backlight
```
### Installation:
(warning: I'm lazy - this makefile just builds the thing and moves it to /bin/)
1. You'll need to manually modify the config.asm
If You don't know how, You can use this sed command and it SHOULD work 😎:
```sh
sed -i -e "s/intel_backlight/$(ls /sys/class/backlight)/g" ./config.asm
```
2.
```sh
make install
```