From 9f4d27711d7fa077ea887b8a586379cfb4c97b17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thea=20Sch=C3=B6bl?= Date: Tue, 30 Apr 2024 10:18:08 +0200 Subject: [PATCH] feat: improve monitor support --- modules/home-manager/desktops/hyprland/default.nix | 4 ---- modules/nixos/hardware/fv43u.nix | 6 +++++- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/home-manager/desktops/hyprland/default.nix b/modules/home-manager/desktops/hyprland/default.nix index 21b242d..8b4bf0b 100644 --- a/modules/home-manager/desktops/hyprland/default.nix +++ b/modules/home-manager/desktops/hyprland/default.nix @@ -41,10 +41,6 @@ bind = import ./keybinds.nix; bindm = import ./mousebinds.nix; bindr = [ "SUPER,SUPER_L,exec,pkill anyrun || anyrun" ]; - monitor = [ - "DP-1,highrr,0x0,1" - "DP-1,addreserved,250,0,0,0" - ]; workspace = [ "special:calc,border:false,gapsout:200,on-created-empty:[noanim;silent] kitty -e qalc" ]; diff --git a/modules/nixos/hardware/fv43u.nix b/modules/nixos/hardware/fv43u.nix index 199e11e..e30d2d6 100644 --- a/modules/nixos/hardware/fv43u.nix +++ b/modules/nixos/hardware/fv43u.nix @@ -1,5 +1,4 @@ { - pkgs, lib, config, username, @@ -20,6 +19,11 @@ in hardware.gbmonctl.enable = true; boot.kernelParams = [ "video=3840x2160@144" ]; + home-manager.users.${username}.wayland.windowManager.hyprland.settings.monitor = [ + "DP-1,highrr,0x0,1" + "DP-1,addreserved,300,0,0,0" + ]; + programs.steam.gamescopeSession = { env = { SCREEN_WIDTH = "3840";