Fix XWayland primary monitor retry

This commit is contained in:
ltadeu6 2026-04-30 20:48:01 -03:00
parent ecb3438cfd
commit fc811cda63
No known key found for this signature in database
GPG key ID: FB9FDAB6B6F3418D

View file

@ -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