mirror of
https://codeberg.org/andyscott/dotfiles.git
synced 2024-12-22 18:03:11 -05:00
10 lines
364 B
Bash
10 lines
364 B
Bash
#!/bin/bash
|
|
## Simple script to mirror all connected displays for presentations
|
|
|
|
{{- if eq .chezmoi.hostname "helix" }}
|
|
RESOLUTION=3840x2160
|
|
{{ else }}
|
|
RESOLUTION=1920x1080
|
|
{{- end }}
|
|
|
|
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'
|