102 lines
2.7 KiB
Nix
Raw Normal View History

2024-04-14 22:45:21 +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") {
2024-04-14 22:45:21 +02:00
services.kanshi = {
enable = true;
systemdTarget = "graphical-session.target";
2024-05-18 07:55:03 +02:00
settings = [
{
profile.name = "tower_0";
profile.outputs = [{
2023-11-20 12:42:03 +01:00
criteria = "CEX CX133 0x00000001";
mode = "1920x1200@59.972";
position = "0,0";
scale = 1.0;
status = "enable";
2024-04-14 22:45:21 +02:00
}];
2024-05-18 07:55:03 +02:00
}
{
profile.name = "tower_1";
profile.outputs = [{
2023-11-20 12:42:03 +01:00
criteria = "AOC 16G3 1DDP7HA000348";
mode = "1920x1080@144.000";
position = "0,0";
status = "enable";
scale = 1.0;
adaptiveSync = true;
2024-04-14 22:45:21 +02:00
}];
2024-05-18 07:55:03 +02:00
}
{
profile.name = "tower_2";
profile.outputs = [
2024-04-14 22:45:21 +02:00
{
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";
}
];
2024-05-18 07:55:03 +02:00
}
{
profile.name = "laptop_0";
profile.outputs = [{
2023-11-20 12:42:03 +01:00
criteria = "LG Display 0x060A Unknown";
mode = "1920x1080@60.020";
2024-04-14 22:45:21 +02:00
position = "0,0";
2023-11-20 12:42:03 +01:00
scale = 1.0;
status = "enable";
2024-04-14 22:45:21 +02:00
}];
2024-05-18 07:55:03 +02:00
}
{
profile.name = "laptop_1";
profile.outputs = [
2024-04-14 22:45:21 +02:00
{
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";
}
];
2024-05-18 07:55:03 +02:00
}
{
profile.name = "laptop_2";
profile.outputs = [
2024-04-14 22:45:21 +02:00
{
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-05-18 07:55:03 +02:00
}
];
2023-11-20 12:42:03 +01:00
};
};
}