I have two monitors connected to my desktop running Lubuntu (14.04.3). The right one is dedicated to the computer and the left one is also connected to windows machine; it has a button to switch between inputs. I need the desktop extended over the two monitors (not mirrored). Lubuntu doesn't provide the option to extend screens from a control panel.
I also wanted the taskbar (lxpanel) to remain on the right monitor only, so I could always see it even when the left monitor is on windows.
How do I achieve this?
Best Answer
After researching it thoroughly, here are the steps to achieve this (terminal commands in grey):
xrandr -q
(to display info about displays, including the names. Mine are VGA-1 and DVI-I-1, used below)xrandr –-output VGA-1 –-left-of DVI-I-1
cd ~/
cat > .xsessionrc
(creates a text file named .xsessionrc that will persist your settings through restarts)arandr
(If not installed,sudo apt-get install arandr
)gedit .xsessionrc
xrandr –-output VGA-1 –-left-of DVI-I-1