#!/bin/sh

DELAY=5

echo >&2 Executing autorandr postswitch after $DELAY seconds…
sleep $DELAY
xconfig

if command -v awesome-client >/dev/null; then
  echo >&2 Restarting awesome…
  echo "awesome.restart()" | awesome-client
fi