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