dotfiles/bin/switch_monitors.sh

10 lines
218 B
Bash
Raw Normal View History

2018-09-15 15:24:15 +00:00
#!/bin/bash
intern=eDP-1
extern=HDMI-1
if xrandr | grep "$extern disconnected"; then
xrandr --output "$extern" --off --output "$intern" --auto
else
xrandr --output "$intern" --off --output "$extern" --auto
fi