Update to use selkies
All checks were successful
Docker Push / build-and-push-image (push) Has been skipped
All checks were successful
Docker Push / build-and-push-image (push) Has been skipped
This commit is contained in:
1
root/defaults/autostart
Normal file
1
root/defaults/autostart
Normal file
@@ -0,0 +1 @@
|
||||
exit 0
|
||||
BIN
root/defaults/autostart:Zone.Identifier
Normal file
BIN
root/defaults/autostart:Zone.Identifier
Normal file
Binary file not shown.
50
root/defaults/startwm.sh
Executable file → Normal file
50
root/defaults/startwm.sh
Executable file → Normal file
@@ -1,12 +1,5 @@
|
||||
#!/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 and screen lock
|
||||
if [ ! -f $HOME/.config/kwinrc ]; then
|
||||
kwriteconfig5 --file $HOME/.config/kwinrc --group Compositing --key Enabled false
|
||||
@@ -14,16 +7,47 @@ fi
|
||||
if [ ! -f $HOME/.config/kscreenlockerrc ]; then
|
||||
kwriteconfig5 --file $HOME/.config/kscreenlockerrc --group Daemon --key Autolock false
|
||||
fi
|
||||
|
||||
# Power related
|
||||
setterm blank 0
|
||||
setterm powerdown 0
|
||||
|
||||
if [ ! -f "$HOME/.config/konsolerc" ]; then
|
||||
printf "[General]\nConfigVersion=1\n\n[KonsoleWindow]\nUseSingleInstance=true\n\n[Notification Messages]\nCloseAllTabs=true\nCloseSingleTab=true\n" > "$HOME/.config/konsolerc"
|
||||
# Directories
|
||||
sudo rm -f /usr/share/dbus-1/system-services/org.freedesktop.UDisks2.service
|
||||
mkdir -p "${HOME}/.config/autostart" "${HOME}/.XDG" "${HOME}/.local/share/"
|
||||
chmod 700 "${HOME}/.XDG"
|
||||
touch "${HOME}/.local/share/user-places.xbel"
|
||||
|
||||
# Background perm loop
|
||||
if [ ! -d $HOME/.config/kde.org ]; then
|
||||
(
|
||||
loop_end_time=$((SECONDS + 30))
|
||||
while [ $SECONDS -lt $loop_end_time ]; do
|
||||
find "$HOME/.cache" "$HOME/.config" "$HOME/.local" -type f -perm 000 -exec chmod 644 {} + 2>/dev/null
|
||||
sleep .1
|
||||
done
|
||||
) &
|
||||
fi
|
||||
|
||||
if [ ! -f "$HOME/.config/kwalletrc" ]; then
|
||||
printf "[Wallet]\nEnabled=false\n" > "$HOME/.config/kwalletrc"
|
||||
# Create startup script if it does not exist (keep in sync with openbox)
|
||||
STARTUP_FILE="${HOME}/.config/autostart/autostart.desktop"
|
||||
if [ ! -f "${STARTUP_FILE}" ]; then
|
||||
echo "[Desktop Entry]" > $STARTUP_FILE
|
||||
echo "Exec=bash /config/.config/openbox/autostart" >> $STARTUP_FILE
|
||||
echo "Icon=dialog-scripts" >> $STARTUP_FILE
|
||||
echo "Name=autostart" >> $STARTUP_FILE
|
||||
echo "Path=" >> $STARTUP_FILE
|
||||
echo "Type=Application" >> $STARTUP_FILE
|
||||
echo "X-KDE-AutostartScript=true" >> $STARTUP_FILE
|
||||
chmod +x $STARTUP_FILE
|
||||
fi
|
||||
|
||||
# Launch DE
|
||||
/usr/bin/dbus-launch /usr/bin/startplasma-x11 > /dev/null 2>&1
|
||||
# Enable Nvidia GPU support if detected
|
||||
if which nvidia-smi > /dev/null 2>&1 && ls -A /dev/dri 2>/dev/null && [ "${DISABLE_ZINK}" == "false" ]; then
|
||||
export LIBGL_KOPPER_DRI2=1
|
||||
export MESA_LOADER_DRIVER_OVERRIDE=zink
|
||||
export GALLIUM_DRIVER=zink
|
||||
fi
|
||||
|
||||
# Start DE
|
||||
exec dbus-launch --exit-with-session /usr/bin/startplasma-x11 > /dev/null 2>&1
|
||||
|
||||
BIN
root/defaults/startwm.sh:Zone.Identifier
Normal file
BIN
root/defaults/startwm.sh:Zone.Identifier
Normal file
Binary file not shown.
48
root/defaults/startwm_wayland.sh
Normal file
48
root/defaults/startwm_wayland.sh
Normal file
@@ -0,0 +1,48 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Disable compositing and screen lock
|
||||
if [ ! -f $HOME/.config/kwinrc ]; then
|
||||
kwriteconfig5 --file $HOME/.config/kwinrc --group Compositing --key Enabled false
|
||||
fi
|
||||
if [ ! -f $HOME/.config/kscreenlockerrc ]; then
|
||||
kwriteconfig5 --file $HOME/.config/kscreenlockerrc --group Daemon --key Autolock false
|
||||
fi
|
||||
|
||||
# Power related
|
||||
setterm blank 0
|
||||
setterm powerdown 0
|
||||
|
||||
# Directories
|
||||
sudo rm -f /usr/share/dbus-1/system-services/org.freedesktop.UDisks2.service
|
||||
mkdir -p "${HOME}/.config/autostart" "${HOME}/.XDG" "${HOME}/.local/share/"
|
||||
chmod 700 "${HOME}/.XDG"
|
||||
touch "${HOME}/.local/share/user-places.xbel"
|
||||
|
||||
# Background perm loop
|
||||
if [ ! -d $HOME/.config/kde.org ]; then
|
||||
(
|
||||
loop_end_time=$((SECONDS + 30))
|
||||
while [ $SECONDS -lt $loop_end_time ]; do
|
||||
find "$HOME/.cache" "$HOME/.config" "$HOME/.local" -type f -perm 000 -exec chmod 644 {} + 2>/dev/null
|
||||
sleep .1
|
||||
done
|
||||
) &
|
||||
fi
|
||||
|
||||
# Create startup script if it does not exist (keep in sync with openbox)
|
||||
STARTUP_FILE="${HOME}/.config/autostart/autostart.desktop"
|
||||
if [ ! -f "${STARTUP_FILE}" ]; then
|
||||
echo "[Desktop Entry]" > $STARTUP_FILE
|
||||
echo "Exec=bash /config/.config/openbox/autostart" >> $STARTUP_FILE
|
||||
echo "Icon=dialog-scripts" >> $STARTUP_FILE
|
||||
echo "Name=autostart" >> $STARTUP_FILE
|
||||
echo "Path=" >> $STARTUP_FILE
|
||||
echo "Type=Application" >> $STARTUP_FILE
|
||||
echo "X-KDE-AutostartScript=true" >> $STARTUP_FILE
|
||||
chmod +x $STARTUP_FILE
|
||||
fi
|
||||
|
||||
# Start DE
|
||||
WAYLAND_DISPLAY=wayland-1 Xwayland :1 &
|
||||
sleep 2
|
||||
exec dbus-launch --exit-with-session /usr/bin/startplasma-x11 > /dev/null 2>&1
|
||||
BIN
root/defaults/startwm_wayland.sh:Zone.Identifier
Normal file
BIN
root/defaults/startwm_wayland.sh:Zone.Identifier
Normal file
Binary file not shown.
Reference in New Issue
Block a user