From 7f1f34732a217e83ee777a725dab1ac9f684b36e Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Mon, 20 Apr 2026 13:05:20 -0700 Subject: [PATCH] feat(hyprland): add ultrawide-only dock profile --- nixos/hyprland.nix | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/nixos/hyprland.nix b/nixos/hyprland.nix index ec497602..d41bfe6b 100644 --- a/nixos/hyprland.nix +++ b/nixos/hyprland.nix @@ -36,6 +36,7 @@ let settings = [ { # USB-C connector names can move between DP-* ports across docks/reboots. + # Match the ultrawide by make/model and allow the serial field to vary. profile.name = "ultrawide-usbc-desk"; profile.outputs = [ { @@ -46,7 +47,7 @@ let scale = 1.0; } { - criteria = "Microstep MPG341CX OLED Unknown"; + criteria = "Microstep MPG341CX OLED *"; status = "enable"; mode = "3440x1440@240Hz"; position = "2560,0"; @@ -54,6 +55,20 @@ let } ]; } + { + # When the laptop panel is unavailable (e.g. lid-closed docked use), + # still drive the ultrawide at its full refresh rate. + profile.name = "ultrawide-only"; + profile.outputs = [ + { + criteria = "Microstep MPG341CX OLED *"; + status = "enable"; + mode = "3440x1440@240Hz"; + position = "0,0"; + scale = 1.0; + } + ]; + } ]; };