Files
Astral/distro-files/usr/libexec/astral/startwm
T
2024-09-05 19:15:28 -03:00

24 lines
400 B
Bash
Executable File

#!/usr/bin/bash
export DISPLAY=":0"
X &
while [ 1 ]
do
if [ -S /tmp/.X11-unix/X0 ]
then
break
fi
if [ $SECONDS -gt 15 ]
then
echo timeout
exit 1
fi
sleep 0.5
done
stty -echo -echoctl -isig -icanon min 0 time 0
xterm -e "bash -l" & &> /tmp/.xtermstderr > /tmp/.xtermstdout
fvwm3 &> /tmp/.fvwm3stderr > /tmp/.fvwm3stdout
stty -echo -echoctl -isig -icanon min 0 time 0
cat -