3 unstable releases
0.2.1 | May 7, 2023 |
---|---|
0.2.0 | May 7, 2023 |
0.1.0 | May 6, 2023 |
#1915 in Command line utilities
36 downloads per month
10KB
146 lines
dimmer
Dimmer smoothly transitions your screen from one brightness to another. Very simple, and only tested with Wayland and recent Linux kernels.
Usage
# Show usage information
dimmer --help
# Dim the screen to zero brightness over 5 seconds
dimmer
# Dim (or brighten) the screen to 30%, first saving the current brightness to a statefile
dimmer --save --target 30% --duration 5s
# Restore the screen from a previously saved brightness, using 2 seconds
dimmer --restore --duration 2s
Installation
Nix Flakes
Use as you would any nix flake, e.g. run directly withnix run github:koenw/dimmer
Cargo
Install to cargo's bin directory withcargo install dimmer
Dependencies
~1.8–2.5MB
~39K SLoC