mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 15:08:21 +00:00
distro-files: better startwm handling
This commit is contained in:
Executable
+23
@@ -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 -
|
||||
Reference in New Issue
Block a user