2024-04-13 20:51:44 -04:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
options = {
|
2024-04-17 22:39:00 -04:00
|
|
|
alyraffauf.apps.kanshi.enable =
|
2024-04-13 20:51:44 -04:00
|
|
|
lib.mkEnableOption "Enable kanshi monitor profiles";
|
|
|
|
};
|
|
|
|
|
2024-04-17 22:39:00 -04:00
|
|
|
config = lib.mkIf config.alyraffauf.apps.kanshi.enable {
|
2024-04-13 20:51:44 -04:00
|
|
|
# Packages that should be installed to the user profile.
|
|
|
|
home.packages = with pkgs; [
|
|
|
|
kanshi
|
|
|
|
];
|
|
|
|
|
|
|
|
services.kanshi.enable = true;
|
|
|
|
services.kanshi.profiles.lavaridge = {
|
|
|
|
outputs = [
|
|
|
|
{
|
|
|
|
status = "enable";
|
|
|
|
criteria = "BOE 0x095F Unknown";
|
|
|
|
scale = 1.5;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
services.kanshi.profiles.petalburg = {
|
|
|
|
outputs = [
|
|
|
|
{
|
|
|
|
status = "enable";
|
|
|
|
criteria = "Samsung Display Corp. 0x4152 Unknown";
|
|
|
|
scale = 2.0;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
2024-04-19 22:15:42 -04:00
|
|
|
services.kanshi.profiles.rustboro = {
|
|
|
|
outputs = [
|
|
|
|
{
|
|
|
|
status = "enable";
|
|
|
|
criteria = "LG Display 0x0569 Unknown";
|
|
|
|
scale = 1.2;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
2024-04-13 20:51:44 -04:00
|
|
|
services.kanshi.profiles.mauville = {
|
|
|
|
outputs = [
|
|
|
|
{
|
|
|
|
status = "enable";
|
2024-04-13 21:27:41 -04:00
|
|
|
criteria = "LG Electronics LG ULTRAWIDE 311NTAB5M720";
|
2024-04-13 23:38:36 -04:00
|
|
|
scale = 1.2;
|
|
|
|
adaptiveSync = false;
|
2024-04-13 20:51:44 -04:00
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|