dots

git clone git://mattcarlson.org/repos/dots.git
Log | Files | Refs

commit a9375e7f0f20b44edab6cb1295cf4a95d7b720c0
parent 287be756878999128403268266bf4882ee41b0bf
Author: Matthew Carlson <matt@mcarlson.xyz>
Date:   Mon, 10 Jan 2022 16:43:12 -0500

redirect stderr should have been in subshell

Diffstat:
M.local/bin/bar/monitor.sh | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.local/bin/bar/monitor.sh b/.local/bin/bar/monitor.sh @@ -39,7 +39,7 @@ set_brightness() { env HERBE_ID=/0 herbe "Brightness: ${brightness}%" & # get actual brightness and send output to cache - printf '%s\n' "$(doas ddcutil getvcp ${VCP_CODE} | awk '{ print $9 }' | tr -d '[:punct:]')" 2>/dev/null > "${BRIGHTNESS}" + printf '%s\n' "$(doas ddcutil getvcp ${VCP_CODE} | awk '{ print $9 }' | tr -d '[:punct:]' 2>/dev/null)" > "${BRIGHTNESS}" } bar() {