{ config, lib, ... }: let cfg = config.my.kanshi; in { options.my.kanshi.enable = lib.mkEnableOption { }; config.services.kanshi = lib.mkIf cfg.enable { enable = true; settings = [ { profile = { name = "home"; outputs = [ { criteria = "AOC 24G2W1G4 ATNM6XA004804"; position = "0,0"; } { criteria = "LG Electronics 25UM58G 0x01010101"; position = "1920,215"; scale = 1.2; mode = "2560x1080@74.991Hz"; } ]; exec = [ "xrdb .Xresources" ]; }; } { profile = { name = "sedetary"; outputs = [ { criteria = "eDP-1"; status = "disable"; position = "1920,312"; } { criteria = "HDMI-A-1"; position = "0,0"; } ]; exec = [ "xrdb .Xresources" ]; }; } { profile = { name = "nomad"; outputs = [ { criteria = "eDP-1"; status = "enable"; position = "1920,312"; } ]; exec = [ "xrdb .Xresources" ]; }; } ]; }; }