Files
Nixos/hm-modules/random/kanshi/default.nix
T
2026-04-15 10:19:42 +02:00

78 lines
1.6 KiB
Nix

{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.dov.kanshi;
in {
options.dov.kanshi.enable = mkEnableOption "kanshi config";
config = mkIf cfg.enable {
home.packages = with pkgs; [ kanshi ];
services.kanshi = {
enable = true;
settings = [
{
profile = {
name = "default";
outputs = [
{
criteria = "eDP-1";
}
];
};
}
{
profile = {
name = "home";
outputs = [
{
criteria = "eDP-1";
position = "480,1440";
}
{
criteria = "LG Electronics LG ULTRAWIDE 201NTTQC5617";
position = "0,0";
mode = "3440x1440";
}
];
};
}
{
profile = {
name = "home2";
outputs = [
{
criteria = "eDP-1";
position = "3840,720";
}
{
criteria = "Samsung Electric Company U32R59x H1AK500000";
position = "0,0";
mode = "3840x2160";
}
];
};
}
{
profile = {
name = "reserve-home";
outputs = [
{
criteria = "eDP-1";
position = "480,1440";
}
{
criteria = "DP-5";
position = "0,0";
mode = "3440x1440";
}
];
};
}
];
};
};
}