From 3c37eda13b9f2e532e8d38cabfea0d88705ca20f Mon Sep 17 00:00:00 2001 From: Yorick Barbanneau Date: Mon, 29 Apr 2024 23:56:21 +0200 Subject: [PATCH] fix: rework DPI configuration on all devices Allow better font size on all screen --- modules/home-manager/application/foot/default.nix | 1 - .../home-manager/desktop/sway/includes/fuzzel.nix | 2 +- .../home-manager/desktop/sway/includes/kanshi.nix | 15 ++++++++++++--- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/modules/home-manager/application/foot/default.nix b/modules/home-manager/application/foot/default.nix index b241ef8..18496b2 100644 --- a/modules/home-manager/application/foot/default.nix +++ b/modules/home-manager/application/foot/default.nix @@ -12,7 +12,6 @@ in enable = true; settings = { main = { - dpi-aware = "yes"; font = "Fira Code Nerd Font Mono:size=10"; }; mouse = { diff --git a/modules/home-manager/desktop/sway/includes/fuzzel.nix b/modules/home-manager/desktop/sway/includes/fuzzel.nix index 76cb7fb..a788c7e 100644 --- a/modules/home-manager/desktop/sway/includes/fuzzel.nix +++ b/modules/home-manager/desktop/sway/includes/fuzzel.nix @@ -5,7 +5,7 @@ with lib; programs.fuzzel = { settings = { main = { - font = "Fira Code Nerd Font Mono:size=9"; + font = "Fira Code Nerd Font Mono:size=12"; icon-theme = "Papirus-Dark"; width = 60; show-actions = "yes"; diff --git a/modules/home-manager/desktop/sway/includes/kanshi.nix b/modules/home-manager/desktop/sway/includes/kanshi.nix index 389df08..d212c4b 100644 --- a/modules/home-manager/desktop/sway/includes/kanshi.nix +++ b/modules/home-manager/desktop/sway/includes/kanshi.nix @@ -5,20 +5,29 @@ with lib; services.kanshi = { enable = config.modules.desktop.sway.kanshi ; profiles = { + standalone = { + outputs = [ + { + criteria = "eDP-1"; + scale = 1.33; + status = "enable"; + } + ]; + }; home = { outputs = [ { criteria = "Iiyama North America PL2792UH 1166310803122"; mode = "3840x2160"; - position = "1080,0"; - scale = 2.0; + position = "1235,0"; + scale = 1.75; } { criteria = "Iiyama North America PL2792UH 1176923201598"; mode = "3840x2160"; position = "0,0"; transform = "90"; - scale = 2.0; + scale = 1.75; } { criteria = "eDP-1";