diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-06-19 07:14:26 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-06-19 07:14:26 +0200 |
commit | 16f50d274245004f52d387a12f0830b3312ef06c (patch) | |
tree | f09cad1629a2900d972650ba6516d5961b48c929 /pkgs | |
parent | build(flake): Update (diff) | |
download | nixos-config-16f50d274245004f52d387a12f0830b3312ef06c.tar.gz nixos-config-16f50d274245004f52d387a12f0830b3312ef06c.zip |
fix(pkgs/brightness): Remove unneeded variable assignment
Diffstat (limited to 'pkgs')
-rwxr-xr-x | pkgs/by-name/br/brightness/brightness.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/by-name/br/brightness/brightness.sh b/pkgs/by-name/br/brightness/brightness.sh index a3f93bfd..887dbb1e 100755 --- a/pkgs/by-name/br/brightness/brightness.sh +++ b/pkgs/by-name/br/brightness/brightness.sh @@ -34,7 +34,7 @@ brightness() { max="$(cat $BACKLIGHT/max_brightness)" - new="$(echo | awk --assign=per="$cur_perc" --assign=perc="$perc" '{printf (perc / 100)}')" + new="$(echo | awk --assign=perc="$perc" '{printf (perc / 100)}')" output="$(echo | awk --assign=new="$new" --assign=max="$max" '{printf max * new}')" |