mirror of
https://github.com/linuxserver/docker-webtop.git
synced 2025-07-23 05:35:09 +02:00
use proper kde6 bin and nvidia support
This commit is contained in:
parent
c68fe8c837
commit
82f11d4c59
@ -1,14 +1,23 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Disable compositing and screen locking
|
||||||
if [ ! -f $HOME/.config/kwinrc ]; then
|
if [ ! -f $HOME/.config/kwinrc ]; then
|
||||||
kwriteconfig5 --file $HOME/.config/kwinrc --group Compositing --key Enabled false
|
kwriteconfig6 --file $HOME/.config/kwinrc --group Compositing --key Enabled false
|
||||||
fi
|
fi
|
||||||
if [ ! -f $HOME/.config/kscreenlockerrc ]; then
|
if [ ! -f $HOME/.config/kscreenlockerrc ]; then
|
||||||
kwriteconfig5 --file $HOME/.config/kscreenlockerrc --group Daemon --key Autolock false
|
kwriteconfig6 --file $HOME/.config/kscreenlockerrc --group Daemon --key Autolock false
|
||||||
fi
|
fi
|
||||||
if [ ! -f $HOME/.config/kdeglobals ]; then
|
if [ ! -f $HOME/.config/kdeglobals ]; then
|
||||||
kwriteconfig5 --file $HOME/.config/kdeglobals --group KDE --key LookAndFeelPackage org.fedoraproject.fedora.desktop
|
kwriteconfig6 --file $HOME/.config/kdeglobals --group KDE --key LookAndFeelPackage org.fedoraproject.fedora.desktop
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# 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 blank 0
|
||||||
setterm powerdown 0
|
setterm powerdown 0
|
||||||
/usr/bin/startplasma-x11 > /dev/null 2>&1
|
/usr/bin/startplasma-x11 > /dev/null 2>&1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user