dotfiles/dot_local/bin/executable_mirror-outputs

7 lines
282 B
Text
Raw Normal View History

2022-12-22 04:07:12 -05:00
#!/bin/bash
## Simple script to mirror all connected displays for presentations
RESOLUTION=3840x2160
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'