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 following
- Connect my laptop to the monitor
- run
xrandr --output DP1 --mode 2560x1600 --right-of eDP1 --output eDP1 --mode 1920x1080
- Restart 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 --off
- Restart 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?