Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.
/ wlr-brightness Public archive

Adjust the brightness of wlroots-based compositors such as sway.

License

Notifications You must be signed in to change notification settings

mherzberg/wlr-brightness

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wlr-brightness

wlr-brightness adjust the brightness of your screen when using wlroots-based Wayland compositors such as sway. It works by adjusting the gamma values of your screen and therefore supports both screens with and without backlight (such as OLED).

Installation

From Source

Dependencies:

  • wlroots
  • wayland
  • dbus
  • wlr-protocols

Pull wlr-protocols:

git submodule update --init --recursive

Compile:

make

If you want to install wlr-brightness, you can use the systemd service:

sudo make install
cp res/wlr-brightness.service ~/.config/systemd/user/
systemctl --user enable --now wlr-brightness

Usage

Start the daemon:

wlr-brightness

wlr-brightness is a Wayland-client and therefore needs to keep running. The brightness will reset to the maximum on exit. To control wlr-brightness, use any dbus utility, e.g.:

gdbus call -e -d de.mherzberg -o /de/mherzberg/wlrbrightness -m de.mherzberg.wlrbrightness.get
gdbus call -e -d de.mherzberg -o /de/mherzberg/wlrbrightness -m de.mherzberg.wlrbrightness.set 0.7
gdbus call -e -d de.mherzberg -o /de/mherzberg/wlrbrightness -m de.mherzberg.wlrbrightness.increase 0.1
gdbus call -e -d de.mherzberg -o /de/mherzberg/wlrbrightness -m de.mherzberg.wlrbrightness.decrease 0.1

About

Adjust the brightness of wlroots-based compositors such as sway.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published