Skip to content

Commit b18d692

Browse files
authored
Create startwm.sh
1 parent 5c5ad03 commit b18d692

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash
2+
3+
# Enable Nvidia GPU support if detected
4+
if which nvidia-smi; then
5+
export LIBGL_KOPPER_DRI2=1
6+
export MESA_LOADER_DRIVER_OVERRIDE=zink
7+
export GALLIUM_DRIVER=zink
8+
fi
9+
10+
# Disable compositing and screen lock
11+
if [ ! -f $HOME/.config/kwinrc ]; then
12+
kwriteconfig6 --file $HOME/.config/kwinrc --group Compositing --key Enabled false
13+
fi
14+
if [ ! -f $HOME/.config/kscreenlockerrc ]; then
15+
kwriteconfig6 --file $HOME/.config/kscreenlockerrc --group Daemon --key Autolock false
16+
fi
17+
setterm blank 0
18+
setterm powerdown 0
19+
20+
# Launch DE
21+
/usr/bin/dbus-launch /usr/bin/startplasma-x11 > /dev/null 2>&1

0 commit comments

Comments
 (0)