mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-28 12:09:17 -05:00
petalburg: set display to 1.25 scale
This commit is contained in:
parent
f6caaa423b
commit
314f376f51
|
@ -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
|
||||
|
|
|
@ -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"];
|
||||
}
|
||||
];
|
||||
|
||||
|
|
Loading…
Reference in a new issue