ref: 1ae6af7661efaedd3b32e6e3be714d7b093deff6
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