Utility for controlling laptop backlight brightness on Linux.

Related tags

Utilities licht
Overview

Licht

Utility for chaning laptop backlight brightness, supporting different stepping modes.

Usage

licht 

USAGE:
    licht [OPTIONS] <SUBCOMMAND>

OPTIONS:
        --device-name <DEVICE_NAME>    The backlight class device from sysfs to act on. E.g.
                                       intel_backlight If no device name is supplied and unless any
                                       other related flag is set licht will attempt to discover a
                                       backlight device in sysfs
    -h, --help                         Print help information

SUBCOMMANDS:
    get     
    help    Print this message or the help of the given subcommand(s)
    set     
licht-set 

USAGE:
    licht set [OPTIONS] <SUBCOMMAND>

OPTIONS:
        --device-name <DEVICE_NAME>
            The backlight class device from sysfs to act on. E.g. intel_backlight If no device name
            is supplied and unless any other related flag is set licht will attempt to discover a
            backlight device in sysfs

        --min-brightness <MIN_BRIGHTNESS>
            Clamps the brightness to a minimum value [default: 0]

        --verbose
            Use verbose output

        --dry-run
            Do not write the new brightness value to the backlight device. dry-run implies verbose

        --all
            Operate on all backlight devices

    -h, --help
            Print help information

SUBCOMMANDS:
    absolute     Sets the current brightness value to <STEP>%
    blend        Maps the current birghtness value onto the function ratio*x^a + (1-m) *
                     (1-(1-x)^(1/b) and advances it <STEP>% on that function. Recommended parameters
                     for this function are ratio = 0.75, a = 1.8, b = 2.2. The argument for that
                     would be --blend (0.75,1.8,2.2) Enter the above function into e.g. desmos or
                     geogebra and change the parameters to your liking
    geometric    Multiplies the current brightness value by <STEP>%
    help         Print this message or the help of the given subcommand(s)
    linear       Adds <STEP>% to the current brightness value
    parabolic    Maps the current brightness value onto a the parabolic function x^exponent and
                     advances it <STEP>% on that function
licht-get-info 

USAGE:
    licht get info [OPTIONS] <--name|--class|--brightness|--percent|--max-brightness|--everything>

OPTIONS:
        --device-name <DEVICE_NAME>    The backlight class device from sysfs to act on. E.g.
                                       intel_backlight If no device name is supplied and unless any
                                       other related flag is set licht will attempt to discover a
                                       backlight device in sysfs
        --brightness                   
        --class                        
        --csv                          
        --everything                   
    -h, --help                         Print help information
        --max-brightness               
        --name                         
        --percent                      
licht-get-list 
List availble backlight devices

USAGE:
    licht get list [OPTIONS]

OPTIONS:
        --device-name <DEVICE_NAME>    The backlight class device from sysfs to act on. E.g.
                                       intel_backlight If no device name is supplied and unless any
                                       other related flag is set licht will attempt to discover a
                                       backlight device in sysfs
    -h, --help                         Print help information

Example

// Reduces brightness by 10%
licht set linear -10

// Reduces brigthness by 20% on the parabolic brightness curve x^exponent. 
// Actual brightness progression: 100% -> 64% -> 36% -> 16% -> 4%
licht set parabolic 2 -20

// Increases brightness of intel_backlight by 10% on the custom blend function 0.75*x^1.8 + (1-0.75)*(1-(1-x)^(1/2.2))
licht --device-name intel_backlight set blend 0.75 1.8 2.2 -10

// List all backlight deices
licht get list

// Get current brightness of default backlight
licht get info --brightness

// Get name, class, brightness, brightness percent and maximum brightness of intel_backlight
licht --device-name intel_backlight get info --everything
You might also like...
Emoji-printer - Utility to convert strings with emoji shortcodes to strings with the emoji unicode

Emoji Printer Intro Utility to convert strings with emoji shortcodes (:sushi:) to strings with the emoji unicode ( 🍣 ) Install cargo add emoji-printe

Rs.aws-login - A command line utility to simplify logging into AWS services.

aws-login A command line utility to simplify logging into AWS accounts and services. $ aws-login use ? Please select a profile to use: › ❯ dev-read

A rust-based version of the popular dnsgen python utility

ripgen A rust-based version of the popular dnsgen python utility. ripgen is split into two main parts: ripgen: A CLI utility that calls into ripgen_li

Tons of extension utility functions for Rust

LazyExt Tons of extension utility functions for Rust. English | 简体中文 Status Name Status Crate Documents Introduction lazyext-slice Alpha Thousands of

Lupus is a utility to administer backups with future integration with rsync

Lupus is a utility to administer backups with future integration with rsync. Many other features are either included or planned such as chat bridges using rcon and or parsing the pipe output from programs/games.

Small utility to display hour in a binary format on the Novation's Launchpad X.
Small utility to display hour in a binary format on the Novation's Launchpad X.

lpx-binary-clock Small utility to display hour in a binary format on the Novation's Launchpad X. Hours, minutes and seconds are displayed one digit pe

Cakecutter - a utility tool that quickly sets up a project from a pre-built template
Cakecutter - a utility tool that quickly sets up a project from a pre-built template

Cakecutter Create projects from pre-built cakes (templates)! Supports files, packages, content, running commands and more! Cakecutter is a utility too

A decoder and utility for the Flipnote Studios .ppm animation format
A decoder and utility for the Flipnote Studios .ppm animation format

A decoder and utility for the Flipnote Studios .ppm animation format

Verbump - A simple utility written in rust to bump and manage git semantic version tags.

Verbump - A simple utility written in rust to bump and manage git semantic version tags.

Owner
null
Batch rename utility for developers

nomino Batch rename utility for developers How to install Pre-Compiled You can download a pre-compiled executable for Linux, MacOS and Windows operati

Navid 458 Dec 27, 2022
A small utility for tracking the change in opening and closing of issues in a GitHub repo

A small utility for tracking the change in opening and closing of issues in a GitHub repo. This tool can be used to build visualizations for issue triage over time with the hope of motivating closing more issues than are opened.

Ryan Levick 12 Sep 29, 2021
mdTranslation is a utility to prepare multi-lingual Markdown documents.

mdTranslation is a utility to prepare multi-lingual Markdown documents. There's also a mdBook preprocessor called mdbook-translation for

Charles Lew 15 Dec 26, 2022
ᎩᎦᎨᎢ (IPA: [gigagei]) is a random quote fetching console utility. Written in Rust.

gigagei ᎩᎦᎨᎢ (IPA: [gigagei]) is a random quote fetching console utility. Written in Rust. Installing Use latest pre-built binary from releases Buildi

veleth 10 Jun 17, 2022
Utility library to work with tuples.

Utility library to work with tuples.

René Kijewski 9 Nov 30, 2022
Devmode is a project management utility for developers.

Dev(mode) Dev(mode) is a project management utility for developers.

Eduardo Flores 15 Dec 11, 2022
A fast, multi-threaded line counting utility written in Rust.

xloc A fast, multi-threaded line counting utility written in Rust. What is xloc A drop in replacement for bash's wc -l. Your project has x lines of co

null 1 Nov 15, 2021
Provides utility functions to perform a graceful shutdown on an tokio-rs based service

tokio-graceful-shutdown IMPORTANT: This crate is in an early stage and not ready for production. This crate provides utility functions to perform a gr

null 61 Jan 8, 2023
A cli utility written in Rust that allows fetching all the labels of a project, save those as a YAML file

A cli utility written in Rust that allows fetching all the labels of a project, save those as a YAML file that you can easily edit or save as backup and apply a saved preset to new repositories.

Chevdor 4 May 5, 2022
Progmem utility for the AVR architecture

avr-progmem Progmem utilities for the AVR architectures. This crate provides unsafe utilities for working with data stored in the program memory of an

null 15 Nov 20, 2022