petalburg: set display to 1.25 scale
Some checks are pending
git-mirror / gitlab-sync (push) Waiting to run
nix-build / adjustor-build (push) Waiting to run
nix-build / clean-install-build (push) Waiting to run
nix-build / emudeck-build (push) Waiting to run
nix-build / hhd-ui-build (push) Waiting to run
nix-build / rofi-bluetooth-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / pacifidlog-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-build / slateport-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run

This commit is contained in:
Aly Raffauf 2024-11-25 15:22:26 -05:00
parent dd96ce155a
commit fb322fefad
2 changed files with 6 additions and 6 deletions

View file

@ -37,12 +37,12 @@
}; };
}; };
environment.variables.GDK_SCALE = "1"; environment.variables.GDK_SCALE = "1.25";
networking.hostName = "petalburg"; networking.hostName = "petalburg";
services.udev.extraRules = let services.udev.extraRules = let
hyprlandDynamicRes = pkgs.writeShellScript "hyprland-dynamic-resolution" '' hyprlandDynamicRes = pkgs.writeShellScript "hyprland-dynamic-resolution" ''
MON="eDP-1" MON="desc:China Star Optoelectronics Technology Co. Ltd MNG007QA1-1"
RES="1920x1200" RES="1920x1200"
for dir in /run/user/*; do for dir in /run/user/*; do
@ -52,7 +52,7 @@
monitor_info=$(echo -e "monitors" | ${lib.getExe pkgs.socat} - UNIX-CONNECT:"$socket") monitor_info=$(echo -e "monitors" | ${lib.getExe pkgs.socat} - UNIX-CONNECT:"$socket")
if echo "$monitor_info" | grep -q "$MON"; then 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
fi fi

View file

@ -3,13 +3,13 @@
sharedModules = [ sharedModules = [
{ {
wayland.windowManager.sway.config.output = { wayland.windowManager.sway.config.output = {
"eDP-1" = { "eDP-2" = {
adaptive_sync = "on"; 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"];
} }
]; ];