From 30c406f8c4a950d85ff836058a3534560b1ffb19 Mon Sep 17 00:00:00 2001 From: lucca Date: Sat, 19 Sep 2026 22:59:02 -0400 Subject: [PATCH] shifted x axis of 480i modeline for sdtv into good alignment --- profile | 36 +++++++++++++++++++++++++----------- 1 file changed, 25 insertions(+), 11 deletions(-) diff --git a/profile b/profile index c2d5eb1..8db8fbf 100644 --- a/profile +++ b/profile @@ -128,13 +128,6 @@ testvidmode () { xrandr --addmode HDMI-A-0 $1 xrandr --output HDMI-A-0 --mode $1 } -testvidmode2 () { - xrandr --delmode DisplayPort-0 $1 - xrandr --rmmode $1 - xrandr --newmode $* - xrandr --addmode DisplayPort-0 $1 - xrandr --output DisplayPort-0 --mode $1 -} nintendontify () { for i in *; do mkdir "$(echo $i | sed 's/.iso//')"; mv "$i" "$(echo $i | sed 's/.iso//')"/game.iso; done } @@ -144,12 +137,33 @@ wiiconnect () { vsync () { picom --backend glx --vsync } +testvidmode2 () { + xrandr --delmode DisplayPort-0 $1 + xrandr --rmmode $1 + xrandr --newmode $* + xrandr --addmode DisplayPort-0 $1 + xrandr --output DisplayPort-0 --mode $1 +} +crtTVSet480i () { + testvidmode2 "1280x480_60i" 26.108 1280 1364 1487 1664 480 483 489 523 interlace -hsync -vsync +} crtTV () { -       testvidmode "1280x480_60i" 26.108 1280 1332 1455 1664 480 483 489 523 interlace -hsync -vsync -       xrandr --output DisplayPort-0 --mode 1280x480_60i --scale-from 640x480 --below HDMI-A-0 + crtTVSet480i + xrandr --output DisplayPort-0 --mode 1280x480_60i --scale-from 640x480 --below HDMI-A-0 } crtTVscale () { -       testvidmode "1280x480_60i" 26.108 1280 1332 1455 1664 480 483 489 523 interlace -hsync -vsync -       xrandr --output DisplayPort-0 --mode 1280x480_60i --scale-from 1280x960 --below HDMI-A-0 + crtTVSet480i + xrandr --output DisplayPort-0 --mode 1280x480_60i --scale-from 1280x960 --same-as HDMI-A-0 +} +crtTVSet240p () { + testvidmode2 "1280x240_60" 26.108 1280 1396 1519 1664 240 241 244 262 -hsync -vsync +} +crtTV240 () { + crtTVSet240p + xrandr --output DisplayPort-0 --mode 1280x240_60 --scale-from 320x240 --below HDMI-A-0 } +crtTV240scale () { + crtTVSet240p + xrandr --output DisplayPort-0 --mode 1280x240_60 --scale-from 1280x960 --same-as HDMI-A-0 +}