#!/usr/bin/env bash
if [ -x "$(which logger)" ] ; then
logger "configure-display called"
fi
ls -1 $HOME/.screenlayout/*.sh | while read -r f ; do
echo "attempting script $f"
if [ ! -x "$f" ] ; then
echo "ignore $f, not executable"
continue
fi
if "$f" ; then
echo "configured successfully"
break
else
echo "script failed"
fi
done
~/bin/restore-sanity