Automatic xrandr call when plug monitor

Pétùr peturvilj at
Thu Dec 6 16:01:54 CET 2018


I use two monitors : laptop and above an external one.

I have configured this layout in xfce4-display-settings and it is
working if I power on the laptop when the external monitor plugged.

However, if I unplug and replug the external monitor, I have mirror
screens. At this point, I use xrandr to set the layout :

xrandr --output DP-1-2 --above eDP-1

I would like this command to be launched each time I plug the external

Is it possible in Xfce?


More information about the Xfce mailing list