1 2 3 4 5 6 7 8 9 10 11 12
#!/usr/bin/env bash # get a random display display=$RANDOM # start xwl satellite xwayland-satellite :$display & # wait till xwl satellite started sleep 1 # start reaper DISPLAY=:$display /usr/bin/reaper # kill xwl satellite after reaper closes killall xwayland-satellite