From c2e4f54322ea781123e08932ed2d7a069cf99a19 Mon Sep 17 00:00:00 2001 From: Zhongheng Liu Date: Sun, 1 Sep 2024 09:22:37 +0300 Subject: [PATCH] feat: Hyprland monitor config and display scale Change displayScale to 2 Add explicit eDP config --- common/variables.nix | 2 +- home-manager/stvnliu/hypr/hyprland.nix | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/common/variables.nix b/common/variables.nix index a432d0e..b97ff23 100644 --- a/common/variables.nix +++ b/common/variables.nix @@ -21,7 +21,7 @@ config = rec { myUserName = "stvnliu"; myHostName = "nixos-msi"; - displayScale = 1; + displayScale = 2; myWallPaperPathString = "/home/${myUserName}/wallpaper.jpg"; myDisplayName = "Zhongheng Liu"; myEmail = "z.liu@outlook.com.gr"; diff --git a/home-manager/stvnliu/hypr/hyprland.nix b/home-manager/stvnliu/hypr/hyprland.nix index 916f05f..19fbc48 100644 --- a/home-manager/stvnliu/hypr/hyprland.nix +++ b/home-manager/stvnliu/hypr/hyprland.nix @@ -9,12 +9,18 @@ enable = true; # The hyprland package to use package = pkgs.hyprland; - plugins = with pkgs.hyprlandPlugins; [hyprfocus csgo-vulkan-fix]; + plugins = with pkgs.hyprlandPlugins; [ + hyprfocus + csgo-vulkan-fix + ]; # Whether to enable XWayland xwayland.enable = true; settings = { xwayland = {force_zero_scaling = true;}; - monitor = ",preferred,auto,${builtins.toString config.displayScale}"; + monitor = [ + #"eDP-1, 1920x1080@165,0x0,1" + ",preferred, auto, ${builtins.toString config.displayScale}" + ]; input = { # xset rate 250 50 replacement on wayland... # FAST MODE LET'S GOOO