#!/bin/bash # See https://wiki.archlinux.org/title/Multihead # Didn't know how to get the screen name, this works for now #screen=$(xrandr | grep "primary" | awk '{ print $1 }') # But now how do I get the rest? And the correct order? Maybe it's better just # to define "hardcoded" functions and just call them. simple_2_monitor() { xrandr --output eDP --auto xrandr --output HDMI-A-0 --auto --right-of eDP } simple_2_monitor