Files
Astral/distro-files/usr/libexec/astral/startwm
T
2026-06-29 20:35:33 -03:00

31 lines
588 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
[ -f /etc/X11/Xresources ] && xrdb -merge /etc/X11/Xresources
[ -f "$HOME/.Xresources" ] && xrdb -merge "$HOME/.Xresources"
[ -f "$HOME/.Xdefaults" ] && xrdb -merge "$HOME/.Xdefaults"
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 -