darkman: add proper brightness configuration

This commit is contained in:
Aminda Suomalainen 2025-07-10 17:42:46 +03:00
parent e1972ab14f
commit c4d7080123
Signed by: Mikaela
GPG Key ID: 99392F62BAE30723
2 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,7 @@
#!/usr/bin/env bash
. ~/.local/share/dark-mode.d/00-do-not-repeat-yourself.bash
if [[ -f $HOME/.local/share/darkman-brightness.txt ]]; then
$QTDBUSBIN org.kde.Solid.PowerManagement /org/kde/Solid/PowerManagement/Actions/BrightnessControl org.kde.Solid.PowerManagement.Actions.BrightnessControl.setBrightness $(head -n1 $HOME/.local/share/darkman-brightness.txt)
fi

View File

@ -0,0 +1 @@
../dark-mode.d/10-brightness.bash