nvidia compat

This commit is contained in:
thelamer 2024-05-23 16:00:52 -04:00
parent 6f54b2e937
commit ebbd295bde

View File

@ -1,5 +1,13 @@
#!/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
# Disable compositing
setterm blank 0
setterm powerdown 0
if [ -f "${HOME}"/.config/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml ]; then
@ -7,4 +15,6 @@ if [ -f "${HOME}"/.config/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml ]; then
'/use_compositing/c <property name="use_compositing" type="bool" value="false"/>' \
"${HOME}"/.config/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml
fi
# Launch DE
/usr/bin/dbus-launch /usr/bin/startxfce4 --replace > /dev/null 2>&1