This commit is contained in:
kento2 2026-03-05 06:53:52 +01:00
parent 7b29e1df22
commit d8f852ab18
6 changed files with 22 additions and 13 deletions

View file

@ -6,13 +6,9 @@ export XBPS_DISTDIR="$HOME/void-packages"
export EDITOR=/usr/bin/vis
exists() {
which "$1" >/dev/null 2>&1
}
grep 'l' <<< "$-" && \
test "$(tty)" = '/dev/tty1' && \
cd &&
echo 'Press return to start gui' &&
read &&
exec ~/.winit
if grep -q l <<< "$-" && test "$(tty)" = '/dev/tty1'; then
rm -f "$HOME"/.config/service-env/* 2>/dev/null
cd
echo 'Press return to start gui'
read && exec dbus-run-session "$HOME/.winit"
fi