#!/bin/sh

xrandr | grep -q "HDMI-1 connected"

if [ "$?" -eq "0" ]; then
    echo "Two screens available"
    ~/.screenlayout/twoscreens.sh
else
    echo "Only one screen available"
    ~/.screenlayout/onescreen.sh
fi
