commit 3dc199b1babd79187882348f733e7f41c49d5457 parent f20192b8538e549d80231640d52030c3a9e75dd5 Author: Jake Koroman <jakekoroman@gmail.com> Date: Thu, 7 Mar 2024 10:22:47 -0500 update brightness script to 5% Diffstat:
M | scripts/brightness | | | 5 | +++-- |
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/scripts/brightness b/scripts/brightness @@ -1,6 +1,7 @@ #!/bin/sh fifo_path="/tmp/wobpipe-brightness" +rate="5%" if test ! -e $fifo_path; then killall wob @@ -9,9 +10,9 @@ if test ! -e $fifo_path; then fi if test "$1" = "up"; then - brightnessctl s 10%+ | egrep -o "[0-9]*%" | sed "s/%//g" > $fifo_path + brightnessctl s "$rate+" | egrep -o "[0-9]*%" | sed "s/%//g" > $fifo_path elif test "$1" = "down"; then - brightnessctl s 10%- | egrep -o "[0-9]*%" | sed "s/%//g" > $fifo_path + brightnessctl s "$rate-" | egrep -o "[0-9]*%" | sed "s/%//g" > $fifo_path else echo "Usage: ./brightness [up|down]" fi