diff --git a/install/first-run/gdk-scale.sh b/install/first-run/gdk-scale.sh index ba39e92a..ee42e4a4 100644 --- a/install/first-run/gdk-scale.sh +++ b/install/first-run/gdk-scale.sh @@ -1,3 +1,4 @@ # Set the default GDK_SCALE from what the monitor is currently reporting -sed -i -E "s|^([[:space:]]*env[[:space:]]*=[[:space:]]*GDK_SCALE,).*|\\1$(omarchy-hyprland-monitor-scaling)|" ~/.config/hypr/monitors.conf +scale=$(omarchy-hyprland-monitor-scaling) +sed -i -E "s|^local omarchy_gdk_scale = .*|local omarchy_gdk_scale = ${scale}|" "$HOME/.config/hypr/monitors.lua"