diff --git a/bin/monitors b/bin/monitors index e0d5055..3aeb5d6 100755 --- a/bin/monitors +++ b/bin/monitors @@ -34,7 +34,7 @@ dual_monitor() { # Configuracion para multiples monitores multi_monitor() { - display_ports=$(xrandr --query | grep "DisplayPort" | grep -v "disconnected" | cut -d" " -f1) + display_ports=$(xrandr --query | grep "DisplayPort" | grep " connected" | cut -d" " -f1) monitor_izquierdo=$(echo $display_ports | cut -d" " -f1) monitor_derecho=$(echo $display_ports | cut -d" " -f2)