ref: 9504301637366db8d41fd4d3c7bfb2cce968b233
bin/displayctl
#!/bin/sh # Run this after connecting or disconnecting an external display xrandr --output eDP-1 --primary --output DP-1 --auto --left-of eDP-1