diff --git a/nixcfgs/users/js0ny/programs/desktop/wayland-wm/kanshi.nix b/nixcfgs/users/js0ny/programs/desktop/wayland-wm/kanshi.nix new file mode 100644 index 0000000..dce39f2 --- /dev/null +++ b/nixcfgs/users/js0ny/programs/desktop/wayland-wm/kanshi.nix @@ -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"; + } + ]; + } + ]; + }; +} diff --git a/nixcfgs/users/js0ny/programs/desktop/wayland-wm/packages.nix b/nixcfgs/users/js0ny/programs/desktop/wayland-wm/packages.nix index 88edf43..3d38693 100644 --- a/nixcfgs/users/js0ny/programs/desktop/wayland-wm/packages.nix +++ b/nixcfgs/users/js0ny/programs/desktop/wayland-wm/packages.nix @@ -36,6 +36,7 @@ in { ../../rofi.nix ./waybar.nix ./swww.nix + ./kanshi.nix ]; home.packages = with pkgs; [ swayidle # Screensaver