vanadium/display: add language comments

This helps neovim to syntax highlight the code
This commit is contained in:
Primrose 2025-11-09 09:01:13 +08:00
parent 156181fc14
commit eac1c86fe8
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA

View file

@ -69,7 +69,7 @@
device, # obtain with `xrandr`
brightness, # [0..1]
}:
singleton "10_xrandr_brightness" ''
singleton "10_xrandr_brightness" /* bash */ ''
${lib.getExe pkgs.xorg.xrandr} --output ${device} --brightness ${toString brightness}
'';
@ -79,7 +79,7 @@
modelName, # obtain with `ddcutil detect`
brightness, # [0..1]
}:
singleton "10_ddc_brightness" ''
singleton "10_ddc_brightness" /* bash */ ''
${lib.getExe pkgs.ddcutil} --model ${modelName} setvcp 10 ${
toString (builtins.floor (brightness * 100))
}
@ -90,7 +90,7 @@
modelName, # obtain with `ddcutil detect`
contrast, # [0..1]
}:
singleton "10_ddc_contrast" ''
singleton "10_ddc_contrast" /* bash */ ''
${lib.getExe pkgs.ddcutil} --model ${modelName} setvcp 12 ${
toString (builtins.floor (contrast * 100))
}