mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
vanadium/autorandr: reference programs directly in hooks
This commit is contained in:
parent
1635fdc3a3
commit
0d55754272
1 changed files with 4 additions and 4 deletions
|
|
@ -51,7 +51,7 @@
|
|||
|
||||
switches = {
|
||||
setDPI = {dpi}:
|
||||
singleton "10_xrdb-dpi" "xrdb -merge ${pkgs.writeText "xrdb-dpi-config" ''
|
||||
singleton "10_xrdb-dpi" "${lib.getExe pkgs.xorg.xrdb} -merge ${pkgs.writeText "xrdb-dpi-config" ''
|
||||
Xcursor.size: 64
|
||||
Xft.dpi: ${toString dpi}
|
||||
''}";
|
||||
|
|
@ -66,7 +66,7 @@
|
|||
# For that reason, we can't base our delay on its output, sadly.
|
||||
singleton "10_xrandr_brightness" ''
|
||||
sleep 10
|
||||
xrandr --output ${device} --brightness ${toString brightness}
|
||||
${lib.getExe pkgs.xorg.xrandr} --output ${device} --brightness ${toString brightness}
|
||||
'';
|
||||
|
||||
# Is scoped to an output device, no need to be called on built-in display
|
||||
|
|
@ -75,7 +75,7 @@
|
|||
brightness, # [0..1]
|
||||
}:
|
||||
singleton "10_ddc_brightness" ''
|
||||
ddcutil --model ${modelName} setvcp 10 ${toString (builtins.floor (brightness * 100))}
|
||||
${lib.getExe pkgs.ddcutil} --model ${modelName} setvcp 10 ${toString (builtins.floor (brightness * 100))}
|
||||
'';
|
||||
|
||||
setDDCContrast = {
|
||||
|
|
@ -83,7 +83,7 @@
|
|||
contrast, # [0..1]
|
||||
}:
|
||||
singleton "10_ddc_contrast" ''
|
||||
ddcutil --model ${modelName} setvcp 12 ${toString (builtins.floor (contrast * 100))}
|
||||
${lib.getExe pkgs.ddcutil} --model ${modelName} setvcp 12 ${toString (builtins.floor (contrast * 100))}
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue