dotfiles/bin/mirror-outputs
2022-06-06 20:47:35 -04:00

6 lines
282 B
Bash
Executable file

#!/bin/bash
## Simple script to mirror all connected displays for presentations
RESOLUTION=1920x1080
xrandr --listmonitors | sed -n '1!p' | sed -e 's/\s[0-9].*\s\([a-zA-Z0-9\-]*\)$/\1/g' | xargs -n 1 -- bash -xc 'xrandr --output $0 --mode '$RESOLUTION' --pos 0x0 --rotate normal'