mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
nix: rename custom -> packages
This commit is contained in:
parent
754882bf0d
commit
afc2eea47a
24 changed files with 1 additions and 1 deletions
16
nix/packages/xbrightness.nix
Normal file
16
nix/packages/xbrightness.nix
Normal 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)"
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue