I have a Lenovo X220 with a dock and external screen. Right now I have to launch a
xrandr shortcut by hand to use the screen I want, depending on the situation.
For example :
- Docked : xrandr with external screen output
- Not docked : xrandr with laptop screen output
I was wondering how to do this automatically, maybe with help of
lsusb's output ? When the laptop is docked it lists
Lenovo ThinkPad Mini Dock Plus Series 3, is there a way to detect that and then run the correspondig
xrandr command ?
Or maybe there's another simpler solution ?