mirror of
https://github.com/bvanroll/_dotfiles.git
synced 2025-08-29 20:12:42 +00:00
init
This commit is contained in:
41
.config/i3blocks/brightness/README.md
Normal file
41
.config/i3blocks/brightness/README.md
Normal file
@@ -0,0 +1,41 @@
|
||||
# brightness
|
||||
|
||||
## Description
|
||||
|
||||
This small tool listens to file "actual_brightness" modification and reports current brightness percentage. Written in C. It can be used with i3blocks persistent block.
|
||||
|
||||

|
||||
|
||||
## How to build
|
||||
|
||||
`make release`
|
||||
|
||||
The result executable will be placed into bin directory.
|
||||
|
||||
## Config
|
||||
|
||||
```
|
||||
[brightness]
|
||||
command=./brightness/bin/brightness -a /sys/class/backlight/intel_backlight/actual_brightness -m /sys/class/backlight/intel_backlight/max_brightness
|
||||
interval=persist
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```
|
||||
brightness 0.1 - read actual brightness value in non-blocking style.
|
||||
|
||||
Usage: brightness [options]
|
||||
|
||||
Options:
|
||||
-a, --actual_brightness_path path to file with actual brightness string
|
||||
-m, --max_brightness_path path to file with max brightness string
|
||||
-h, --help print this help.
|
||||
-V, --version print version and exit.
|
||||
|
||||
```
|
||||
|
||||
## Roadmap
|
||||
|
||||
- [x] Connect tool with i3blocks
|
||||
- [ ] Remove full paths from command arguments. Make it possible to set class or device and parse full path automatically via "/sys/brightness" or "/sys/leds".
|
Reference in New Issue
Block a user