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-01 16:52:43 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-06-01 16:52:43 +0200
commit26b1713ee422117c0ffd2c67677f66f43ab6c897 (patch)
treec7ec5262cd529ef7dc9cd558d2c152c72fb6a69a /pkgs
parentfix(pkgs/brightness): Act on the correct backlight path (diff)
downloadnixos-config-26b1713ee422117c0ffd2c67677f66f43ab6c897.tar.gz
nixos-config-26b1713ee422117c0ffd2c67677f66f43ab6c897.zip
fix(pkgs/brightness): Actually change something
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 d763b3ca..d0cccfee 100755
--- a/pkgs/by-name/br/brightness/brightness.sh
+++ b/pkgs/by-name/br/brightness/brightness.sh
@@ -43,7 +43,7 @@ brightness() {
 
     output="$(echo | awk --assign=new="$new" --assign=max="$max" '{printf max * new}')"
 
-    msg "echo \"$output\" > $BACKLIGHT/brightness"
+    echo "$output" | sudo tee "$BACKLIGHT/brightness" >/dev/null
 }
 
 for arg in "$@"; do