i have some code like this:
#!bin/bash
Xephyr :2 -fullscreen
DISPLAY=:2 startplasma-x11
but Xephyr wont stop until you end it with ctrl+c is there anyway to execute Xephyr :2 -fullscreen and then, after a one second delay, run DISPLAY=:2 startplasma-x11 while Xephyr :2 -fullscreen is still running???