diff --git a/home/Aloria.nix b/home/Aloria.nix index 0efa0ef..f9c5416 100644 --- a/home/Aloria.nix +++ b/home/Aloria.nix @@ -15,7 +15,7 @@ }; in { imports = [ - (import ./utils/desktop.nix {inherit inputs config pkgs;}) + (import ./utils/desktop.nix {inherit inputs config pkgs; scale = 1.2;}) (import ./utils/fzgo_links.nix {inherit config pkgs fzgo_paths;}) ]; diff --git a/home/niri/default.nix b/home/niri/default.nix index 137ab9b..49ff05d 100644 --- a/home/niri/default.nix +++ b/home/niri/default.nix @@ -1,4 +1,4 @@ -{pkgs, ...}: let +{pkgs, scale ? null, ...}: let terminal = "${pkgs.foot}/bin/footclient"; nautilus = "${pkgs.nautilus}/bin/nautilus"; playerctl = "${pkgs.playerctl}/bin/playerctl"; @@ -141,10 +141,11 @@ in { focus-follows-mouse max-scroll-amount="10%" warp-mouse-to-focus } +${if scale != null then '' output "eDP-1" { - scale 1.2 + scale ${toString scale} } - window-rule { +'' else ""} window-rule { match app-id="vicinae" open-floating true } diff --git a/home/utils/desktop.nix b/home/utils/desktop.nix index b46fcb5..61c9be5 100644 --- a/home/utils/desktop.nix +++ b/home/utils/desktop.nix @@ -2,13 +2,14 @@ inputs, config, pkgs, + scale ? null, ... }: { imports = [ (import ./common.nix {inherit inputs config pkgs;}) (import ./python.nix {inherit inputs config pkgs;}) # (import ../hyprland {inherit inputs pkgs;}) - (import ../niri {inherit inputs config pkgs;}) + (import ../niri {inherit inputs config pkgs scale;}) (import ../ags {inherit inputs pkgs;}) ../rofi ../vicinae