commit 324b0aa4c5214891877da27d49237249c54e52e0 parent 2b0e883390c96de2f138a8391fde89ce15033057 Author: Anders Damsgaard <anders@adamsgaard.dk> Date: Thu, 7 May 2020 17:28:44 +0200 Add xrandr --primary flag to first display Diffstat:
M | .local/bin/displayselect | | | 5 | +++-- |
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/.local/bin/displayselect b/.local/bin/displayselect @@ -36,8 +36,9 @@ twoscreen() { # If multi-monitor is selected and there are two screens. secondary=$(echo "$screens" | grep -v "$primary") direction=$(printf "left\\nright" | \ dmenu -i -p "What side of $primary should $secondary be on?") - xrandr --output "$primary" --auto --scale 1.0x1.0 --output "$secondary" \ - --"$direction"-of "$primary" --auto --scale 1.0x1.0 + xrandr --output "$primary" --primary --auto --scale 1.0x1.0 \ + --output "$secondary" --"$direction"-of "$primary" \ + --auto --scale 1.0x1.0 fi }