dimmer

Crates.iodimmer
lib.rsdimmer
version0.2.1
sourcesrc
created_at2023-05-06 17:02:08.038839
updated_at2023-05-07 12:22:14.270094
descriptionDimmer smoothly transitions your screen from one brightness to another.
homepage
repositoryhttps://github.com/koenw/dimmer
max_upload_size
id858633
size26,116
(koenw)

documentation

README

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
Commit count: 10

cargo fmt