dotfiles/hypr/scripts/xrandr.sh
2024-11-19 00:36:14 -06:00

20 lines
704 B
Bash
Executable File

#!/bin/bash
# Custom resolution through xrandr (21:9)
xrandr --newmode "2560x1080" 677.75 2560 2784 3064 3568 1080 1083 1093 1188 -hsync +vsync
xrandr --addmode DP-1 2560x1080
# 3200x900 suggestion (32:9)
xrandr --newmode "3200x900" 704.50 3200 3472 3824 4448 900 903 913 991 -hsync +vsync
xrandr --addmode DP-1 3200x900
# 3200x1100 suggestion
xrandr --newmode "3200x1100" 863.75 3200 3480 3832 4464 1100 1103 1113 1210 -hsync +vsync
xrandr --addmode DP-1 3200x1100
# 3200x1100 suggestion (21:9)
xrandr --newmode "2100x900" 462.50 2100 2280 2512 2920 900 903 913 991 -hsync +vsync
xrandr --addmode DP-1 2100x900
sleep 2 && xrandr --output DP-1 --primary # Set primary monitor for xwayland