Skip to content

Ch-Tima/fw13-auto-brightness

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

status: experimental limited

fw13-auto-brightness 🚧 (v0.1-beta)

fw13-auto-brightness is a system for automatic laptop screen brightness control based on ambient light sensor data.

The project consists of two parts:

  • AutoBrightnessIluminance — a C++/DBus daemon running in the background and managing screen brightness.
  • AutoBrightnessUI — a Qt-based application for configuring the daemon parameters through a graphical interface.

Screenshots

Project structure:

fw13-auto-brightness
├── demon/        # sources of AutoBrightnessIluminance
├── ui/           # sources of the Qt UI (AutoBrightnessUI)
├── installer/    # installer, configs, icons, .desktop/.service files
└── README.md

Development environment

The project was originally developed on Arch Linux (KDE Plasma).

The daemon uses systemd/*.h for DBus/systemd integration.

The UI is built on top of Qt6.

For a full list of required libraries, check demon/CMakeLists.txt and ui/CMakeLists.txt

Build

Requirements:
- CMake ≥ 3.10
- Qt6 (Core, Widgets, DBus, Charts, Svg, Concurrent)
- systemd headers/INIReader
#UI
cd ui
mkdir build && cd build
cmake ..
make
./AutoBrightnessUI

#SERVICE
cd demon
mkdir build && cd build
cmake ..
make
./AutoBrightnessIluminance

Installation

Requires administrator privileges!

cd installer
sudo ./i.sh /opt

The script will:

  • Copy files to /opt/autobrightnessiluminance
  • Install autobrightness.desktop and autobrightness.service
  • Automatically start the daemon via systemd

Note: the daemon starts immediately after autobrightness.service is installed!service!

Contributing

PRs and bug reports are welcome ;)

Planned:

  • Add more settings to the UI
  • Extend support for other DEs (Gnome, XFCE)
  • Test across different laptops

Developer

License

This project is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0)
See the LICENSE file for details.

About

fw13-auto-brightness is a system for automatic laptop screen brightness control based on ambient light sensor data.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors