2024-04-14 21:41:11 +02:00
|
|
|
{ config, lib,... }: {
|
2023-11-20 12:42:03 +01:00
|
|
|
|
2024-04-14 21:40:12 +02:00
|
|
|
config = lib.mkIf (config.usercfg.wm == "Wayland") {
|
2023-11-20 12:42:03 +01:00
|
|
|
services.kanshi = {
|
|
|
|
enable = true;
|
|
|
|
systemdTarget = "graphical-session.target";
|
|
|
|
profiles = {
|
|
|
|
tower_0 = {
|
|
|
|
outputs = [{
|
|
|
|
criteria = "CEX CX133 0x00000001";
|
|
|
|
mode = "1920x1200@59.972";
|
|
|
|
position = "0,0";
|
|
|
|
scale = 1.0;
|
|
|
|
status = "enable";
|
|
|
|
}];
|
|
|
|
};
|
|
|
|
tower_1 = {
|
|
|
|
outputs = [{
|
|
|
|
criteria = "AOC 16G3 1DDP7HA000348";
|
|
|
|
mode = "1920x1080@144.000";
|
|
|
|
position = "0,0";
|
|
|
|
status = "enable";
|
|
|
|
scale = 1.0;
|
|
|
|
adaptiveSync = true;
|
|
|
|
}];
|
|
|
|
};
|
|
|
|
tower_2 = {
|
|
|
|
outputs = [
|
|
|
|
{
|
|
|
|
criteria = "AOC 16G3 1DDP7HA000348";
|
|
|
|
mode = "1920x1080@144.000";
|
|
|
|
position = "0,0";
|
|
|
|
status = "enable";
|
|
|
|
scale = 1.0;
|
|
|
|
adaptiveSync = true;
|
|
|
|
}
|
|
|
|
{
|
|
|
|
criteria = "CEX CX133 0x00000001";
|
|
|
|
mode = "1920x1200@59.972";
|
|
|
|
position = "0,1080";
|
|
|
|
scale = 1.0;
|
|
|
|
status = "enable";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
laptop_0 = {
|
|
|
|
outputs = [{
|
|
|
|
criteria = "LG Display 0x060A Unknown";
|
|
|
|
mode = "1920x1080@60.020";
|
|
|
|
position = "0,0";
|
|
|
|
scale = 1.0;
|
|
|
|
status = "enable";
|
|
|
|
}];
|
|
|
|
};
|
|
|
|
laptop_1 = {
|
|
|
|
outputs = [
|
|
|
|
{
|
|
|
|
criteria = "CEX CX133 0x00000001";
|
|
|
|
mode = "2560x1600@59.972";
|
|
|
|
position = "0,0";
|
|
|
|
scale = 1.0;
|
|
|
|
status = "enable";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
criteria = "LG Display 0x060A Unknown";
|
|
|
|
mode = "1920x1080@60.020";
|
|
|
|
position = "2560,0";
|
|
|
|
scale = 1.0;
|
|
|
|
status = "enable";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
laptop_2 = {
|
|
|
|
outputs = [
|
|
|
|
{
|
|
|
|
criteria = "AOC 16G3 1DDP7HA000348";
|
|
|
|
mode = "1920x1080@144.000";
|
|
|
|
position = "0,0";
|
|
|
|
status = "enable";
|
|
|
|
scale = 1.0;
|
|
|
|
adaptiveSync = true;
|
|
|
|
}
|
|
|
|
{
|
|
|
|
criteria = "LG Display 0x060A Unknown";
|
|
|
|
mode = "1920x1080@60.020";
|
|
|
|
position = "1920,0";
|
|
|
|
scale = 1.0;
|
|
|
|
status = "enable";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-04-14 21:40:12 +02:00
|
|
|
};
|
2023-11-20 12:42:03 +01:00
|
|
|
}
|