Skip to content

Commit

Permalink
Add xrandr newmode
Browse files Browse the repository at this point in the history
  • Loading branch information
wizawu committed May 10, 2023
1 parent 231d9fc commit 2e4c28e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/x
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ for i in {1..9}; do
echo [$i] ${DISPLAYS[i]}
if [ "$1" = "-a" ]; then
xrandr --output ${DISPLAYS[i]} --auto
xrandr --newmode 1920x1080x60 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
xrandr --newmode 3680x2070x28 288.50 3680 3904 4288 4896 2070 2073 2078 2106 -hsync +vsync
xrandr --addmode ${DISPLAYS[i]} 1920x1080x60
xrandr --addmode ${DISPLAYS[i]} 3680x2070x28
fi
done

Expand Down

0 comments on commit 2e4c28e

Please sign in to comment.