From a237eab58f45890a07adc21284b9461452d8be69 Mon Sep 17 00:00:00 2001 From: thek4n Date: Thu, 15 May 2025 16:22:09 +0300 Subject: [PATCH] refactor slm default --- home/user/.screenlayout/default | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/home/user/.screenlayout/default b/home/user/.screenlayout/default index 19b9f00..9f588de 100755 --- a/home/user/.screenlayout/default +++ b/home/user/.screenlayout/default @@ -1,5 +1,10 @@ #!/bin/sh -xrandr --output DVI-D-0 --off \ - --output HDMI-0 --mode 1920x1080 --pos 0x-1080 --rotate normal \ - --output DP-0 --primary --mode 1920x1080 --pos 0x0 --rotate normal \ - --output DP-1 --off + +readonly PRIMARY="DP-0" +readonly RESOLUTION="1920x1080" + +xrandr \ + --output "${PRIMARY}" --primary --mode "${RESOLUTION}" -r 60 --pos 0x0 --rotate normal \ + --output HDMI-0 --mode "${RESOLUTION}" -r 60 --right-of "${PRIMARY}" --rotate normal \ + --output DP-1 --off \ + --output DVI-D-0 --off