So I have a laptop I take to work and connect to a big monitor. Right now, when I get to work I do the followingConnect my laptop to the monitorrun xrandr --output DP1 --mode 2560x1600 --right-of eDP1 --output eDP1 --mode 1920x1080Restart my window manager. (I use i3, so it's actually a really cheap step)When I leave work, I do the following:run xrandr --output eDP1 --mode 1920x1080 --output DP1 --offRestart my window manager.Disconnect the monitor.This is annoying. Is there any way to tell my laptop that the above settings should be automatically applied whenever it connects to this monitor?
Do the right xrandr calls when I connect/disconnect monitors
xrandr;monitors;multi monitor