Skip to content

Commit

Permalink
xr: On external-*, consider the external the primary
Browse files Browse the repository at this point in the history
  • Loading branch information
cdown committed Mar 15, 2024
1 parent f1bd773 commit bb7cea7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/xr
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ case $1 in
direction="${1#external-}"
[[ $direction == right || $direction == left ]] && direction+=-of

xrandr --output "$main_display" --auto --primary
xrandr --output "${external_displays[0]}" --"$direction" "$main_display" --auto
xrandr --output "$main_display" --auto
xrandr --output "${external_displays[0]}" --"$direction" "$main_display" --auto --primary
;;
tv)
xrandr --output "$main_display" --auto --primary
Expand Down

0 comments on commit bb7cea7

Please sign in to comment.