Adjust your monitor brightness through a simple taskbar app. Reach the maximum brightness for your monitor or dim your monitor below its natural settings by artificially darkening the screen.
Compatible with Windows, Linux, and macOS.
- 🌓 Adjust screen brightness beyond hardware limits
- 🎯 Simple slider interface accessible from system tray
- 🖥️ Cross-platform support (Windows, Linux, macOS)
- 🌑 Artificial darkening for ultra-low brightness
- ⚡ Lightweight and minimal resource usage
There are two ways to run FlexLux:
This method runs the Python script directly. Good for development or if you have Python installed.
# Linux/macOS
./flexlux.sh
# Windows
flexlux.bat
These scripts automatically create a virtual environment, install dependencies, and launch the application.
- Clone the repository:
git clone https://github.com/yourusername/flexlux.git
cd flexlux
- Create a virtual environment:
# Windows
python -m venv venv
.\venv\Scripts\activate
# Linux/macOS
python3 -m venv venv
source venv/bin/activate
- Install dependencies:
pip install -r requirements.txt
# or manually: pip install PyQt5 Pillow screen_brightness_control
- Run the application:
python flexlux.py
This method uses a standalone executable that includes Python and all dependencies. Best for end users.
If you have a pre-built executable:
- Windows: Double-click
flexlux.exe
in thedist/
folder - macOS: Double-click
flexlux.app
in thedist/
folder - Linux: Run
./dist/flexlux
from terminal or double-click if your file manager supports it
Important: PyInstaller creates platform-specific executables. You must build on each platform to get that platform's native format:
- Windows: Creates
flexlux.exe
- macOS: Creates
flexlux.app
bundle - Linux: Creates
flexlux
executable (no extension)
To build:
# First, install PyInstaller (if running from source)
pip install pyinstaller
# Build using the spec file (recommended)
pyinstaller flexlux.spec
# Or build manually:
# Windows
pyinstaller --onefile --windowed --icon=assets/icon.png --add-data="assets/icon.png;assets/" flexlux.py
# Linux/macOS
pyinstaller --onefile --windowed --icon=assets/icon.png --add-data="assets/icon.png:assets/" flexlux.py
The executable will be created in the dist/
directory.
- For running from source: Python 3.9 or higher (3.10+ recommended)
- For compiled executable: No prerequisites, everything is bundled
- Launch FlexLux - it will appear in your system tray
- Click the tray icon to show/hide the brightness slider
- Move the slider:
- Right (100-200): Increase hardware brightness
- Center (100): Minimum hardware brightness
- Left (0-100): Apply artificial darkening overlay
Right-click the tray icon for additional options.
- Windows: Full functionality supported
- Linux: Requires X11 window system. Wayland support may be limited
- macOS: May require accessibility permissions for overlay functionality
If brightness control doesn't work:
- Ensure your display drivers are up to date
- On Linux, you may need to run with elevated privileges:
sudo python flexlux.py
- Check that
screen_brightness_control
supports your hardware
This project is licensed under the terms in the License.md file.