From 241c90868abc8dc5faf354fe50d6d4374f22fa70 Mon Sep 17 00:00:00 2001
From: Lilou <quentinduchemin@tuta.io>
Date: Wed, 5 Feb 2025 13:12:52 +0100
Subject: [PATCH] [Brightness] Use hex instead of decimal

---
 .config/i3/scripts/brightness.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.config/i3/scripts/brightness.sh b/.config/i3/scripts/brightness.sh
index 59f6489..c2fd8df 100755
--- a/.config/i3/scripts/brightness.sh
+++ b/.config/i3/scripts/brightness.sh
@@ -4,6 +4,6 @@ MONITORS='1 4'
 BRIGHT=`zenity --entry --width 40 --text="Brightness:"`
 
 for m in ${MONITORS}; do
-    ddccontrol dev:/dev/i2c-${m} -r 0x10 -w ${BRIGHT}
+	ddccontrol dev:/dev/i2c-${m} -r 0x10 -w $(printf "%x\n" ${BRIGHT})
 done