nix: rename custom -> packages

This commit is contained in:
Primrose 2024-09-22 13:57:30 +02:00
parent 754882bf0d
commit afc2eea47a
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
24 changed files with 1 additions and 1 deletions

View file

@ -0,0 +1,16 @@
{
writeShellApplication,
bc,
}:
writeShellApplication {
name = "xbrightness";
runtimeInputs = [ bc ];
text = ''
device=$1
rel=$2
brightness=$(xrandr --verbose | grep Brightness | cut -d':' -f 2)
xrandr --output "$device" --brightness "$(echo "$brightness $rel" | bc -l)"
'';
}