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