From db89de50d9acc335bc0c65e7be1cf2268ce9e2dd Mon Sep 17 00:00:00 2001
From: Luca Bilke <bilke@tralios.de>
Date: Tue, 28 Mar 2023 18:46:16 +0200
Subject: [PATCH] use new brightness notify script

---
 config.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/config.h b/config.h
index eb65340..d90ef7c 100644
--- a/config.h
+++ b/config.h
@@ -280,8 +280,8 @@ static const Key keys[] = {
     { 0, XF86XK_TouchpadOff,                   spawn,              {.v = (const char *[]){"synclient", "TouchpadOff=1", NULL}} },
     { 0, XF86XK_TouchpadOn,                    spawn,              {.v = (const char *[]){"synclient", "TouchpadOff=0", NULL}} },
     /* WARN: If you have multiple backlight controllers this will fail */
-    { 0, XF86XK_MonBrightnessUp,               spawn,              SHCMD("echo $(($(cat /sys/class/backlight/*/brightness) + 5)) | tee /sys/class/backlight/*/brightness") },
-    { 0, XF86XK_MonBrightnessDown,             spawn,              SHCMD("echo $(($(cat /sys/class/backlight/*/brightness) - 5)) | tee /sys/class/backlight/*/brightness") },
+    { 0, XF86XK_MonBrightnessUp,               spawn,              {.v = (const char *[]){"brightness-notify", "+5", NULL}} },
+    { 0, XF86XK_MonBrightnessDown,             spawn,              {.v = (const char *[]){"brightness-notify", "-5", NULL}} },
 };
 
 /* button definitions */