Managing multiple screens from CLI/i3wm
"Managing multiple screens from CLI/i3wm" on https://aligot-death.space, available at https://aligot-death.space/wiki/sysadmin/linux/i3-multiple-screens-en
install xrandr. On debian, do:
sudo apt install x11-xserver-utils
More often than not, this is enough:
xrandr --auto
to see possible settings, type:
xrandr
to add a second screen next to a 2560x1440, plugged on HDMI2:
xrandr --output HDMI-2 --pos 2560x0 --mode 1920x1080 --rate 60
Remove a screen:
xrandr --output HDMI-2 --off