diff --git a/configs/hypr/hyprland.conf b/configs/hypr/hyprland.conf index 7458726..3c08c70 100644 --- a/configs/hypr/hyprland.conf +++ b/configs/hypr/hyprland.conf @@ -26,7 +26,7 @@ monitor = $SIDE,1920x1080@60,-1400x-1080,1 # Autostart exec-once = waybar & hyprpaper & dbus-launch kdeconnect-indicator exec-once = /run/current-system/sw/bin/antimicrox --tray --hidden --eventgen uinput --profile /etc/antimicrox/controller-mouse.amgp -exec-once = sh -lc 'sleep 5; for _ in $(seq 1 10); do out="$(/run/current-system/sw/bin/hyprctl monitors | /run/current-system/sw/bin/awk ''/^Monitor / { name=$2 } /description: LG Electronics LG ULTRAWIDE 512AZWSDD473/ { print name; exit }'')"; [ -z "$out" ] && sleep 2 && continue; /run/current-system/sw/bin/xrandr --query | /run/current-system/sw/bin/grep -q "^$out connected primary " && exit 0; /run/current-system/sw/bin/xrandr --output "$out" --primary --auto >/dev/null 2>&1 && exit 0; sleep 2; done' +exec-once = sh -lc 'for _ in $(seq 1 60); do out="$(/run/current-system/sw/bin/hyprctl monitors | /run/current-system/sw/bin/awk '"'"'/^Monitor / { name=$2 } /description: LG Electronics LG ULTRAWIDE 512AZWSDD473/ { print name; exit }'"'"')"; if [ -n "$out" ] && /run/current-system/sw/bin/xrandr --query >/dev/null 2>&1; then /run/current-system/sw/bin/xrandr --output "$out" --primary --auto >/dev/null 2>&1; fi; sleep 2; done' # Source a file (multi-file configs) # source = ~/.config/hypr/myColors.conf