Skip to content

Tech-Matt/bright-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

bright-rs

A simple backlight controller for intel_backlight in Rust. This code makes use of DBus system bus in Linux. Through the bus a user can make some calls like SetBrightness which bypass the requirenent of root access, and thus modify the brightness. The code can then be used from a HotKey Daemon Like sxhkd to bind the command to keyboard shortcuts (a setup guide is provided below).

Command line options

The script provides 3 basic commands:

  • brightrs -i [VAL] increases the screen brightness by 5%;
  • brightrs -d [VAL] decreases screen brightness by 5%;
  • brightrs -s [VAL] set a specific value in the possible range.

HotKey Deamon Setup

About

A backlight controller for Linux written in Rust

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages