Below you will find pages that utilize the taxonomy term “xrandr”
November 17, 2016
Quick xrandr script
Just wanted to write down that I created a quick method for a coworker to fix her monitors when she docked her laptop. The problem was that XFCE (she’s using Xubuntu 16.04) wasn’t remembering the monitor’s settings. When she docked the laptop, she had to manually put things back using the GUI for monitor settings. I wrote a quick script something like this:
#!/bin/bash xrandr --output <monitor 1> --auto xrandr --output <monitor 2> --auto xrandr --output <monitor 3> --auto xrandr --output <monitor 2> --right-of <monitor 1> --output <monitor 3> --right-of <monitor 2> The names were different, I retrieved them from her system using xrandr -q.