#brightness #workspace #i3 #tiling

app i3-workspace-brightness

Utility to auto-adjust the brightness of i3wm workspaces

4 stable releases

1.0.3 Jan 1, 2023
1.0.2 Aug 29, 2020
1.0.1 Aug 12, 2020
1.0.0 Aug 11, 2020

#277 in Operating systems

GPL-3.0 license

16KB

i3-workspace-brightness

Release AUR crates.io

About

Rust port of this Python script with a few improvements.

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

paru -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 © 2020-2023, Orhun Parmaksız

Dependencies

~2.5MB
~42K SLoC