dotfiles/bin/switch_monitors.sh

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