From 2e77c22644a964f3b2c5c2e039b0abe64fdff212 Mon Sep 17 00:00:00 2001 From: RealStickman Date: Sat, 10 Oct 2020 21:38:20 +0200 Subject: [PATCH] Cuts everything after the comma and returns an integer --- arch-config/scripts/dunst-backlight.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch-config/scripts/dunst-backlight.sh b/arch-config/scripts/dunst-backlight.sh index ce75b117..8db54423 100644 --- a/arch-config/scripts/dunst-backlight.sh +++ b/arch-config/scripts/dunst-backlight.sh @@ -5,7 +5,7 @@ # $./dunst-backlight.sh down get_light() { - xbacklight -get + xbacklight -get | cut -f1 -d"." } send_notification() { @@ -20,12 +20,12 @@ send_notification() { case $1 in up) # Increase backlight - xbacklight -inc 10 + xbacklight -inc 10.000000 send_notification ;; down) # Decrease backlight - xbacklight -dec 10 + xbacklight -dec 10.000000 send_notification ;; esac