Last active
April 18, 2025 11:48
-
Star
(102)
You must be signed in to star a gist -
Fork
(9)
You must be signed in to fork a gist
-
-
Save davidedmundson/8e1732b2c8b539fd3e6ab41a65bcab74 to your computer and use it in GitHub Desktop.
Run plasma from within gamescope
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Remove the performance overlay, it meddles with some tasks | |
unset LD_PRELOAD | |
## Shadow kwin_wayland_wrapper so that we can pass args to kwin wrapper | |
## whilst being launched by plasma-session | |
mkdir $XDG_RUNTIME_DIR/nested_plasma -p | |
cat <<EOF > $XDG_RUNTIME_DIR/nested_plasma/kwin_wayland_wrapper | |
#!/bin/sh | |
/usr/bin/kwin_wayland_wrapper --width 1280 --height 800 --no-lockscreen \$@ | |
EOF | |
chmod a+x $XDG_RUNTIME_DIR/nested_plasma/kwin_wayland_wrapper | |
export PATH=$XDG_RUNTIME_DIR/nested_plasma:$PATH | |
dbus-run-session startplasma-wayland | |
rm $XDG_RUNTIME_DIR/nested_plasma/kwin_wayland_wrapper |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
good useable 2024-11-16 22:29:26