From 61f47e3366ef2e9f9f61906839dbd854884df9e0 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Tue, 25 May 2021 13:52:04 +0200 Subject: connect-screen: Mark one screen as primary for i3bar config Signed-off-by: Florian Pritz --- connect-screen | 3 +++ 1 file changed, 3 insertions(+) diff --git a/connect-screen b/connect-screen index 58fa6cd..8c65078 100755 --- a/connect-screen +++ b/connect-screen @@ -13,6 +13,7 @@ has_dp2=$(xrandr | grep '^DP2 connected') if [[ $has_hdmi2 && $has_dp1 ]]; then xrandr --output DP1 --right-of eDP1 --auto xrandr --output HDMI2 --right-of DP1 --auto + xrandr --output DP1 --primary else if [[ $has_hdmi2 ]]; then xrandr --output HDMI2 --right-of eDP1 --auto @@ -25,6 +26,8 @@ else if [[ $has_dp2 ]]; then xrandr --output DP2 --right-of eDP1 --auto fi + + xrandr --output eDP1 --primary fi xkbcomp .xkbmap "$DISPLAY" -- cgit v1.2.3-24-g4f1b