Skip to content

orhun/i3-workspace-brightness

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

i3-workspace-brightness

Release AUR crates.io

About

Rust port of this Python script.

It allows individual brightness levels for each workspace and changes the brightness automatically while switching between them.

Installation

Cargo

cargo install i3-workspace-brightness

AUR

yay -S i3-workspace-brightness

Configuration

Add this line to your i3 config:

exec_always --no-startup-id i3-workspace-brightness

Replacing xbacklight commands

Use GET_BRIGHTNESS and SET_BRIGHTNESS environment variables for the command to use. For example:

export GET_BRIGHTNESS="light"
export SET_BRIGHTNESS="light -S {}"
i3-workspace-brightness

or set the variables while running i3-workspace-brightness:

GET_BRIGHTNESS="light" SET_BRIGHTNESS="light -S {}" i3-workspace-brightness

License

GNU General Public License (v3)

Copyright

Copyright (c) 2020, orhun