summaryrefslogtreecommitdiffstats
path: root/connect-screen
diff options
context:
space:
mode:
Diffstat (limited to 'connect-screen')
-rwxr-xr-xconnect-screen3
1 files changed, 3 insertions, 0 deletions
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"