This script fully configures your OpenSUSE Tumbleweed WSL for WSLg useing KDE Plasma 6. For rapid deployment of graphical environment of opensuse tumbleweed wsl systems.
original source https://github.com/chaos0frenzy/OpenSUSE_WLSg_KDE_Plasma-6_Setup_script/edit/main/OpenSUSE_WLSg_KDE_Plasma-6_Setup_script.
Information to produce this script was sourced from https://en.opensuse.org/openSUSE:WSL man pages and general knowledge.
Provided at the top of the script.
Checks if the script is run with root privileges.
Enable parallel downloading. Increase cache size. Refresh repositories non-interactively.
Adding required repositories with auto-import of GPG keys.
Perform a distribution upgrade. Refresh and Upgrade Packages: Refresh and upgrade existing packages.
Edit /etc/wsl.conf to enable systemd.
Install necessary packages and optional packages.
Create and configure necessary scripts and services for Weston and KDE Plasma.
Enable and start the required services.
Create, enable, and start optional services for NumLock, htop, Discover, and Neofetch. Completion Message: Informs the user that the setup is complete and prompts for a restart of the WSL instance.
The desktop opens in WSLg.exe. This has no true configuration; you can edit it from the files wslg.rdp and wslg_desktop.rdp in the WSL folder. The default seems to work best from my testing. You can move the openSUSE desktop around with the Win + arrow keys.