From 3eca9573ea1328e3a6e3c34d4649ffdc6e26af10 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 9 May 2026 19:29:22 +0200 Subject: [PATCH] Make GDK_SCALE change alongside the general monitor scaling --- bin/omarchy-hyprland-monitor-scaling-cycle | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/omarchy-hyprland-monitor-scaling-cycle b/bin/omarchy-hyprland-monitor-scaling-cycle index 8628c17c..d776f552 100755 --- a/bin/omarchy-hyprland-monitor-scaling-cycle +++ b/bin/omarchy-hyprland-monitor-scaling-cycle @@ -40,7 +40,10 @@ MONITOR_CONF="$HOME/.config/hypr/monitors.conf" if [[ -f $MONITOR_CONF ]]; then mapfile -t ACTIVE_LINES < <(grep -E '^[[:space:]]*monitor=' "$MONITOR_CONF" | grep -vE 'disable[[:space:]]*$') if [[ ${#ACTIVE_LINES[@]} -eq 1 ]] && [[ "${ACTIVE_LINES[0]}" =~ ^monitor=,preferred,auto, ]]; then - sed -i -E "s|^(monitor=,preferred,auto,).*|\\1${NEW_SCALE}|" "$MONITOR_CONF" + sed -i -E \ + -e "s|^(monitor=,preferred,auto,).*|\\1${NEW_SCALE}|" \ + -e "s|^([[:space:]]*env[[:space:]]*=[[:space:]]*GDK_SCALE,).*|\\1${NEW_SCALE}|" \ + "$MONITOR_CONF" fi fi