2025-07-17 10:04:24 -04:00

19 lines
396 B
Bash
Executable File

#!/bin/bash
# Enable Nvidia GPU support if detected
if which nvidia-smi; then
export LIBGL_KOPPER_DRI2=1
export MESA_LOADER_DRIVER_OVERRIDE=zink
export GALLIUM_DRIVER=zink
fi
setterm blank 0
setterm powerdown 0
# Dbus defaults
export XDG_RUNTIME_DIR="/tmp/xdg-runtime-abc"
mkdir -p -m700 "${XDG_RUNTIME_DIR}"
# Start DE
exec dbus-launch --exit-with-session /usr/bin/i3 > /dev/null 2>&1