aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts/Brightness.sh
diff options
context:
space:
mode:
authorJaKooLit <ejhay.games@gmail.com>2024-07-02 19:53:06 +0900
committerJaKooLit <ejhay.games@gmail.com>2024-07-02 19:53:06 +0900
commitbc761a2489cec861ef91f01f737340404ec0cd2d (patch)
treeb9710857cf94cfd90fff7d6c766731c4f8a3cd82 /config/hypr/scripts/Brightness.sh
parentb2cd847f4115271a2441fb0c1a1df60cac36027c (diff)
set minimum brightness of 5%
Diffstat (limited to 'config/hypr/scripts/Brightness.sh')
-rwxr-xr-xconfig/hypr/scripts/Brightness.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/hypr/scripts/Brightness.sh b/config/hypr/scripts/Brightness.sh
index c42837f2..d1f80932 100755
--- a/config/hypr/scripts/Brightness.sh
+++ b/config/hypr/scripts/Brightness.sh
@@ -45,8 +45,8 @@ change_backlight() {
fi
# Ensure new brightness is within valid range
- if (( new_brightness < 0 )); then
- new_brightness=0
+ if (( new_brightness < 5 )); then
+ new_brightness=5
elif (( new_brightness > 100 )); then
new_brightness=100
fi
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage