https://github.com/boredsquirrel/kde-lower-brightness
A Kwin effect to reduce the brightness of the screen lower than supported by the display. Makes most sense on OLED or at least IPS displays.
https://github.com/boredsquirrel/kde-lower-brightness
Last synced: over 1 year ago
JSON representation
A Kwin effect to reduce the brightness of the screen lower than supported by the display. Makes most sense on OLED or at least IPS displays.
- Host: GitHub
- URL: https://github.com/boredsquirrel/kde-lower-brightness
- Owner: boredsquirrel
- License: mit
- Created: 2025-03-26T11:08:15.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-26T11:18:24.000Z (over 1 year ago)
- Last Synced: 2025-03-26T12:26:31.686Z (over 1 year ago)
- Language: C++
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# KDE-lower-brightness
A Kwin effect to reduce the brightness of the screen lower than supported by the display. Makes most sense on OLED or at least IPS displays.
Warning: I have no idea what I am doing, this is experimental.
## Build on OpenSUSE tumbleweed
I am using a distrobox to compile the effect
```
# build reqs
sudo zypper in kf6-coreaddons-devel kf6-kguiaddons-devel kf6-kconfigwidgets-devel kwin6-devel qt6-core-devel extra-cmake-modules cmake clang
# target directories
mkdir -p ~/.local/share/kwin/effects/LowerBrightness/
mkdir -p ~/.local/lib/qt6/plugins/kwin/effects/
# cmake
export CMAKE_PREFIX_PATH=/usr/lib64/cmake/KF6:$CMAKE_PREFIX_PATH
mkdir -p ./build
cmake -B build -DCMAKE_INSTALL_PREFIX=~/.local
cmake --build build --parallel
# install
cmake --install build
```
apply
```
kwin_wayland --replace &
```
test
```
qdbus org.kde.KWin /KWin org.kde.KWin.supportedEffects | grep lowerbrightness
```