Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/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
- X=$(xrandr --current | grep '*' | uniq | awk '{print $1}' | cut -d 'x' -f1)
- Y=$(xrandr --current | grep '*' | uniq | awk '{print $1}' | cut -d 'x' -f2)
- cat <<EOF > $XDG_RUNTIME_DIR/nested_plasma/kwin_wayland_wrapper
- #!/bin/sh
- /usr/bin/kwin_wayland_wrapper --width $X --height $Y --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
Advertisement
Add Comment
Please, Sign In to add comment