In order to use the plasma applet to enable and disable XR mode, KWin should be restarted.
Run kwin_x11 --replace in krunner (hotkey: alt+f2) or a terminal.
Disable blocking of compositing
KDE disables desktop effects by default when a full screen application with graphics is running. This is also the case when running SteamVR. This prevents our KWin effect to work and mirror the Desktop to VR.
This option should be unchecked:
'Display and Monitor" -> "Compositor" -> Checkbox: "Allow applications to block compositing"
Enable KWin desktop effect
Open Desktop Effects settings (Available in the Application menu or in System Settings - Desktop Behavior)
Ensure the XR Desktop effect is enabled (it should be enabled by default)
Make sure you don't filter the effects:
Add xrdesktop plasma applet to desktop
Right click on desktop or any panel and activate Unlock Widgets if necessary.
Cick on the panel configuration menu or right click on desktop and choose Add widgets.
Scroll to bottom and drag XR Desktop Switch to the desktop or a panel.
Activate xrdestkop in the plasma applet.
Alternatively you can also run the following qbus command
In order to use the newly installed GNOME Shell and extension without relogging or rebooting, you need to:
Press Alt + F2 to open the command window.
Type r and Enter to reload GNOME Shell.
Enable xrdesktop extension
Install gnome-tweaks if you did not already.
Press the Super key, type and open Tweaks.
Go to the Extensions tab.
Enable the Xrdesktop extension.
Enable Mirror to XR in the xrdesktop extension.
To follow the journal of GNOME Shell, run
journalctl /usr/bin/gnome-shell -f
xrdesktop has a few configuration options implemented as gsettings. Currently there is no dedicated UI to configure xrdesktop, but settings can be changed for example with the gnome tool dconf-editor. To jump right to the xrdesktop settings use the /org/xrdesktop namespace as parameter:
Individual settings can also be set with the gsettings command line tool. For example:
gsettings set org.xrdesktop always-show-overlay-pointer false
All settings should apply immediately to a running xrdesktop session.