distro-files: better startwm handling

This commit is contained in:
Matheus
2024-09-05 19:15:28 -03:00
parent 6ef3609789
commit 515a4689a6
2 changed files with 9 additions and 2 deletions
+23
View File
@@ -0,0 +1,23 @@
#!/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 -