2021-07-02 22:36:30 +00:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
config = {
|
|
|
|
programs.autorandr = {
|
|
|
|
enable = true;
|
|
|
|
profiles = {
|
|
|
|
default = {
|
|
|
|
fingerprint.DP1 = "XXX";
|
|
|
|
config.DP1 = {
|
|
|
|
scale = {
|
|
|
|
x = 2;
|
|
|
|
y = 4;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-11-04 16:42:44 +00:00
|
|
|
test.stubs.autorandr = { };
|
|
|
|
|
2021-07-02 22:36:30 +00:00
|
|
|
nmt.script = ''
|
|
|
|
config=home-files/.config/autorandr/default/config
|
|
|
|
|
|
|
|
assertFileExists $config
|
|
|
|
assertFileContent $config \
|
|
|
|
${
|
|
|
|
pkgs.writeText "scale-expected.conf" ''
|
|
|
|
output DP1
|
|
|
|
scale 2x4''
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|