From 3208a040a598625e23addb8f600af24e43e684ee Mon Sep 17 00:00:00 2001 From: "flyingscorpio@arch-desktop" Date: Sun, 19 Dec 2021 23:44:46 +0100 Subject: [PATCH] Dynamically set monitor resolution in xinitrc --- dotfiles/xinitrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dotfiles/xinitrc b/dotfiles/xinitrc index 1580f02..30148da 100644 --- a/dotfiles/xinitrc +++ b/dotfiles/xinitrc @@ -51,4 +51,8 @@ if command -v protonvpn >/dev/null 2>&1; then sudo protonvpn c -f fi +for monitor in $(xrandr --listactivemonitors | awk '{print $4}'); do + xrandr --output "$monitor" --mode 1920x1080 +done + exec i3