3

I have an Asus EEE PC 701 laptop with 7" 800x480 screen running Debian Jessie with Openbox as a WM. As I try to maximally use all the capabilities of this laptop, I'm searching for a way to get a dynamically-configurable dual monitor setup, so that when I feel limited by this laptop's small screen, I can just attach an external monitor and it will work. However, there seems to be little or no information about it, keeping in mind that I have integrated Intel GPU with one VGA output. The question is - what should I install&&configure in order to just plug in a monitor in my laptop and instantly have my workspace extended?

Jeff Schaller
  • 67,283
  • 35
  • 116
  • 255

1 Answers1

1

You could write your own script and use xrandr.

examples: check if new monitor is connected:

xrandr | grep -i conntected

But you can grep your new monitor.

xrandr | grep -i "The name of your monitor"

So if the command:

xrandr | grep -i "the name of your monitor" is true do something with it.

if (xrandr | grep -i "connected"); then                                  
  echo "yes"
  # do something with the new monitor 
else
  # no new monitors connected do nothing
  echo "nope"
fi
AME
  • 192
  • Aha, so it all comes to polling =( In the end, I just installed arandr and forgot about anything being dynamic, that's all. Thank you for your answer! – Arya Voronova Aug 05 '14 at 22:51