Fix order
This commit is contained in:
parent
2f77c9e94e
commit
a7cf5a9a92
1 changed files with 2 additions and 2 deletions
|
@ -6,8 +6,8 @@ num_monitors="$(echo "${monitors}" | wc -l)"
|
|||
if [[ $num_monitors -ge 3 ]]; then
|
||||
xrandr --output eDP-1 --off --output DP-4 --left-of DP-3 --primary --output DP-3 --auto
|
||||
else
|
||||
primary="$(echo "${monitors}" | head -n 1)"
|
||||
output="$(echo "${monitors}" | tail -n 1)"
|
||||
primary="$(echo "${monitors}" | tail -n 1)"
|
||||
output="$(echo "${monitors}" | head -n 1)"
|
||||
command="xrandr --output --output ${primary} --primary"
|
||||
if [[ ${output} != ${primary} ]]; then
|
||||
command="${command} --right-of ${output} --output ${output} --auto"
|
||||
|
|
Loading…
Add table
Reference in a new issue