about summary refs log tree commit diff stats
path: root/pkgs
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-06-19 07:14:26 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-06-19 07:14:26 +0200
commit16f50d274245004f52d387a12f0830b3312ef06c (patch)
treef09cad1629a2900d972650ba6516d5961b48c929 /pkgs
parentbuild(flake): Update (diff)
downloadnixos-config-16f50d274245004f52d387a12f0830b3312ef06c.tar.gz
nixos-config-16f50d274245004f52d387a12f0830b3312ef06c.zip
fix(pkgs/brightness): Remove unneeded variable assignment
Diffstat (limited to 'pkgs')
-rwxr-xr-xpkgs/by-name/br/brightness/brightness.sh2
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}')"