#screen #wayland #brightness #transition #another #linux-kernel #duration

app dimmer

Dimmer smoothly transitions your screen from one brightness to another

3 unstable releases

0.2.1 May 7, 2023
0.2.0 May 7, 2023
0.1.0 May 6, 2023

#17 in #transition

Unlicense OR MIT

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 with
nix run github:koenw/dimmer
Cargo Install to cargo's bin directory with
cargo install dimmer

Dependencies

~2.4–3MB
~52K SLoC