Files
dotfiles/bin/switch_monitors.sh
2019-02-05 20:31:53 +01:00

10 lines
176 B
Bash
Executable File

#!/bin/bash
intern=eDP-1
extern=HDMI-1
if xrandr --listactivemonitors | grep "$intern"; then
xrandr --output "$intern" --off
else
xrandr --output "$intern" --auto
fi