Ubuntu - ARandR and Panel ouput
Xubuntu has quite deficiencies when working with multiple displays. Xfce 4.12 was promising some improvements in support for multiple monitors, but still it doesn't work as well as expected.
Xfce 4.10 always assumes that display on the left is the primary one. After enabling second monitor positioned on the left, it will move all windows, desktop icons and panels to the left.
I found thread on xfce forum dealing with the same issue. The most suitable recommendation was to create script which will run xrandr for configuring two monitors and their positions:
#!/bin/sh xrandr --output HDMI1 --off --output LVDS1 --mode 1366x768 --pos 1920x832 --rotate normal --output VIRTUAL1 --off --output DP1 --off --output VGA1 --mode 1920x1200 --pos 0x0 --rotate normal
Then set output attribute of the panel to laptop screen which should behave as primary:
# For panel on LDVS1 xfconf-query -c xfce4-panel -p /panels/panel-0/output-name -n -t string -s LVDS1 xfce4-panel -r
I added additionally xfce4-panel -r, because, I don't know why, sometimes panel stood on the right, sometimes was moved to newly enabled monitor on the left.
I saved script to ~/.screenlayout/layout1.sh with 755 and assigned it via keyboard configuration window to shortcut super+P













