Update for the new monitors.lua

This commit is contained in:
David Heinemeier Hansson
2026-05-25 22:41:01 +02:00
parent 106b25e65a
commit 2d86736fb0
+2 -1
View File
@@ -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"