From 314f376f5150bac89711a7110fcd27a502f237a0 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Mon, 25 Nov 2024 15:22:26 -0500 Subject: [PATCH] petalburg: set display to 1.25 scale --- hosts/petalburg/default.nix | 6 +++--- hosts/petalburg/home.nix | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/hosts/petalburg/default.nix b/hosts/petalburg/default.nix index cfddb365..abf313de 100644 --- a/hosts/petalburg/default.nix +++ b/hosts/petalburg/default.nix @@ -37,12 +37,12 @@ }; }; - environment.variables.GDK_SCALE = "1"; + environment.variables.GDK_SCALE = "1.25"; networking.hostName = "petalburg"; services.udev.extraRules = let hyprlandDynamicRes = pkgs.writeShellScript "hyprland-dynamic-resolution" '' - MON="eDP-1" + MON="desc:China Star Optoelectronics Technology Co. Ltd MNG007QA1-1" RES="1920x1200" for dir in /run/user/*; do @@ -52,7 +52,7 @@ monitor_info=$(echo -e "monitors" | ${lib.getExe pkgs.socat} - UNIX-CONNECT:"$socket") if echo "$monitor_info" | grep -q "$MON"; then - echo -e "keyword monitor $MON, $RES@$1, 0x0, 1, vrr, $2" | ${lib.getExe pkgs.socat} - UNIX-CONNECT:"$socket" + echo -e "keyword monitor $MON, $RES@$1, 0x0, 1.25, vrr, $2" | ${lib.getExe pkgs.socat} - UNIX-CONNECT:"$socket" fi fi diff --git a/hosts/petalburg/home.nix b/hosts/petalburg/home.nix index 6fde37f5..972aea5f 100644 --- a/hosts/petalburg/home.nix +++ b/hosts/petalburg/home.nix @@ -3,13 +3,13 @@ sharedModules = [ { wayland.windowManager.sway.config.output = { - "eDP-1" = { + "eDP-2" = { adaptive_sync = "on"; - scale = "2.0"; + scale = "1.25"; }; }; - ar.home.desktop.hyprland.laptopMonitors = ["eDP-1,1920x1200@165, 0x0, 1, vrr, 0"]; + ar.home.desktop.hyprland.laptopMonitors = ["desc:China Star Optoelectronics Technology Co. Ltd MNG007QA1-1,1920x1200@165, 0x0, 1.25, vrr, 1"]; } ];