This commit is contained in:
js0ny 2025-11-16 20:03:33 +00:00
parent 25a8b45d79
commit d12c5d5e4e
2 changed files with 51 additions and 0 deletions

View file

@ -0,0 +1,50 @@
{...}: let
g14-internal = "Samsung Display Corp. ATNA40CU05-0 Unknown";
lg4k60 = "LG Electronics LG HDR 4K 0x0004DC58";
in {
services.kanshi = {
enable = true;
settings = [
# Outputs
{
output = {
criteria = g14-internal;
alias = "g14-internal";
mode = "2880x1800@120";
scale = 1.5;
};
}
{
output = {
criteria = lg4k60;
alias = "lg4k60";
mode = "3840x2160@59.997";
scale = 1.75;
};
}
# Profiles
{
profile.name = "laptop";
profile.outputs = [
{
criteria = g14-internal;
status = "enable";
}
];
}
{
profile.name = "docked";
profile.outputs = [
{
criteria = g14-internal;
status = "disable";
}
{
criteria = lg4k60;
status = "enable";
}
];
}
];
};
}

View file

@ -36,6 +36,7 @@ in {
../../rofi.nix
./waybar.nix
./swww.nix
./kanshi.nix
];
home.packages = with pkgs; [
swayidle # Screensaver