11 lines
290 B
Bash
Executable File
11 lines
290 B
Bash
Executable File
#!/bin/bash
|
|
left=HDMI-0
|
|
right=DVI-I-3
|
|
|
|
#if xrandr | grep "$right disconnected"; then
|
|
if ! xrandr --listmonitors | grep "$right"; then
|
|
xrandr --output "$right" --primary --auto --output "$left" --left-of "$right" --auto
|
|
else
|
|
xrandr --output "$right" --off --output "$left" --auto
|
|
fi
|