distro-files: add startnscde command

This commit is contained in:
Matheus
2026-05-29 12:24:16 -03:00
parent fb34ed77c8
commit c66ef2166b
3 changed files with 26 additions and 1 deletions
+1
View File
@@ -11,4 +11,5 @@ alias grep="grep --color=auto"
if [ $(tty) == "/dev/console" ]
then
alias startwm="exec /usr/libexec/astral/startwm"
alias startnscde="exec /usr/libexec/astral/startnscde"
fi
@@ -0,0 +1,22 @@
#!/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
nscde &> /tmp/.nscdestderr > /tmp/.nscdestdout
stty -echo -echoctl -isig -icanon min 0 time 0
cat -