ref: a3188c16c2d36b1e3262955452bff6c36edc3f48 dotfiles/overlay/bin/configure-display -rwxr-xr-x 370 bytes View raw
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/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