From 05379518795302c461bbc5c11c95b1909fe597d1 Mon Sep 17 00:00:00 2001 From: liv Date: Wed, 14 Aug 2024 11:02:49 +0200 Subject: [PATCH] add scaling parameter to monitor module --- home/desktop/hyprland/default.nix | 2 +- home/enoko.nix | 1 + modules/home-manager/monitors.nix | 4 ++++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/home/desktop/hyprland/default.nix b/home/desktop/hyprland/default.nix index 895b966..05bcaf9 100644 --- a/home/desktop/hyprland/default.nix +++ b/home/desktop/hyprland/default.nix @@ -189,7 +189,7 @@ monitor = map ( m: "${m.name},${ if m.enabled - then "${toString m.width}x${toString m.height}@${toString m.refreshRate},${m.position},1" + then "${toString m.width}x${toString m.height}@${toString m.refreshRate},${m.position},${m.scale}" else "disable" }" ) config.monitors; diff --git a/home/enoko.nix b/home/enoko.nix index 5e52877..4fb9916 100644 --- a/home/enoko.nix +++ b/home/enoko.nix @@ -13,6 +13,7 @@ workspace = "1"; primary = true; position = "0x0"; + scale = "1.175000"; } ]; # Fix HiDPI scaling diff --git a/modules/home-manager/monitors.nix b/modules/home-manager/monitors.nix index daed4ed..21aeff1 100644 --- a/modules/home-manager/monitors.nix +++ b/modules/home-manager/monitors.nix @@ -41,6 +41,10 @@ in { type = types.nullOr types.str; default = null; }; + scale = mkOption { + type = types.nullOr types.str; + default = "1"; + }; }; } );