From a2f7b04ab8ca758e996508da39cb8de20ebf2dbb Mon Sep 17 00:00:00 2001 From: Sheldon Lee Date: Tue, 21 Nov 2023 17:30:32 +0800 Subject: [PATCH] Correct monitor offset --- .config/scripts/sway/set-primary-monitor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/scripts/sway/set-primary-monitor b/.config/scripts/sway/set-primary-monitor index b7b743e..090841e 100755 --- a/.config/scripts/sway/set-primary-monitor +++ b/.config/scripts/sway/set-primary-monitor @@ -1,6 +1,6 @@ #!/bin/sh # Get monitor offset using xrandr -monitor_offset="1920+0" +monitor_offset="+1080" display=$(xrandr --listactivemonitors | grep "$monitor_offset" | head -n1 | cut -d' ' -f6) if [ -n "$display" ]; then