diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2026-09-24 11:29:13 +0200 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2026-09-24 11:29:13 +0200 |
| commit | 2f166a32c3e0411adf56c414ae8a05bd4291cc48 (patch) | |
| tree | 10f7833e64d3315447399619df010a96afcac4d7 | |
| parent | 56a38bc2821e2a00efd75274ad080cde5614f7ce (diff) | |
| download | nixos-2f166a32c3e0411adf56c414ae8a05bd4291cc48.tar nixos-2f166a32c3e0411adf56c414ae8a05bd4291cc48.tar.gz nixos-2f166a32c3e0411adf56c414ae8a05bd4291cc48.tar.bz2 nixos-2f166a32c3e0411adf56c414ae8a05bd4291cc48.tar.xz nixos-2f166a32c3e0411adf56c414ae8a05bd4291cc48.zip | |
...
| -rw-r--r-- | accounts/gkleen@skadhi/shell/quickshell/Services/Brightness.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/accounts/gkleen@skadhi/shell/quickshell/Services/Brightness.qml b/accounts/gkleen@skadhi/shell/quickshell/Services/Brightness.qml index 2d7b2e01..63edb127 100644 --- a/accounts/gkleen@skadhi/shell/quickshell/Services/Brightness.qml +++ b/accounts/gkleen@skadhi/shell/quickshell/Services/Brightness.qml | |||
| @@ -49,8 +49,8 @@ Singleton { | |||
| 49 | if (typeof prev === 'undefined' || Math.abs(root.currBrightness - prev) < 0.01) | 49 | if (typeof prev === 'undefined' || Math.abs(root.currBrightness - prev) < 0.01) |
| 50 | return; | 50 | return; |
| 51 | 51 | ||
| 52 | const max = Number(maxFile.text()); | 52 | const max = Number(maxFile.text()) - deadzone; |
| 53 | const actual = Number(currFile.text()); | 53 | const actual = Number(currFile.text()) - deadzone; |
| 54 | let curr = Math.max(0, Math.min(max, Math.pow(root.currBrightness, root.exponent) * max)); | 54 | let curr = Math.max(0, Math.min(max, Math.pow(root.currBrightness, root.exponent) * max)); |
| 55 | if (Math.round(curr) == actual && curr < actual) | 55 | if (Math.round(curr) == actual && curr < actual) |
| 56 | curr = Math.max(0, actual - 1); | 56 | curr = Math.max(0, actual - 1); |
