From 5a03cddbe99fff4292961baff34946266fe18ace Mon Sep 17 00:00:00 2001 From: Trianta <56975502+Trimutex@users.noreply.github.com> Date: Thu, 9 May 2024 01:38:39 -0500 Subject: [PATCH] hyprland: add xrandr script for custom windowed resolutions --- hypr/scripts/xrandr.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 hypr/scripts/xrandr.sh diff --git a/hypr/scripts/xrandr.sh b/hypr/scripts/xrandr.sh new file mode 100755 index 0000000..2d8ce45 --- /dev/null +++ b/hypr/scripts/xrandr.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +# Custom resolution through xrandr +xrandr --newmode "2560x1080" 677.75 2560 2784 3064 3568 1080 1083 1093 1188 -hsync +vsync +xrandr --addmode DP-3 2560x1080 + +# 3200x900 suggestion +xrandr --newmode "3200x900" 704.50 3200 3472 3824 4448 900 903 913 991 -hsync +vsync +xrandr --addmode DP-3 3200x900 + +# 3200x1100 suggestion +xrandr --newmode "3200x1100" 863.75 3200 3480 3832 4464 1100 1103 1113 1210 -hsync +vsync +xrandr --addmode DP-3 3200x1100 + +sleep 2 && xrandr --output DP-3 --primary # Set primary monitor for xwayland