diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-03-18 10:34:45 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-03-18 10:34:45 +0900 |
| commit | e7e178b44ed7b9c7113fecaea2ce9b4152e1290e (patch) | |
| tree | f5712c28238818f6f6994aac477d9ed437fda3a3 /ar/.local | |
| parent | 6263517b122e3225014951e4fa75704a5de767a8 (diff) | |
modified x11/xprofile, modified bin/setmonitors
Diffstat (limited to 'ar/.local')
| -rwxr-xr-x | ar/.local/bin/setmonitors | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ar/.local/bin/setmonitors b/ar/.local/bin/setmonitors index 3f83185..76dabb8 100755 --- a/ar/.local/bin/setmonitors +++ b/ar/.local/bin/setmonitors @@ -9,6 +9,15 @@ edp_cfg="--mode 1920x1080 --rotate normal --scale 1.0x1.0 --dpi 82" hdmi_cfg="--mode 1920x1080 --rotate normal --scale 1.0x1.0 --dpi 82" dp_cfg="--mode 2560x1600 --rotate normal --scale 1.0x1.0 --dpi 192" +# EDID 미감지 시 (640x480에 갇힌 경우) 1920x1080 폴백 적용 +if xrandr -q | grep " connected" | grep -q "640x480+"; then + xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync 2>/dev/null + for output in $(xrandr -q | grep -w "connected" | cut -d ' ' -f 1); do + xrandr --addmode "$output" 1920x1080_60.00 2>/dev/null + done + dp_cfg="--mode 1920x1080_60.00 --rotate normal --scale 1.0x1.0 --dpi 96" +fi + # Parse connected displays for connected in $(xrandr -q | grep -w "connected" | cut -d ' ' -f 1); do case $connected in |
