#!/bin/sh
xset r rate 180 80
setxkbmap -option caps:escape

#!/bin/sh
if [ "$DISPLAY" != "" ]; then
  xset r rate 180 80
  setxkbmap -option caps:escape
fi

Add guard to keyboard script to ensure there is a display
Add guard to keyboard script to ensure there is a display
