feat: additions for optional experimental X support via wayland-proxy-virtwl

This commit is contained in:
Ashley Wulber 2022-10-24 14:03:45 -04:00
parent c3901cb99e
commit 9a9861f8e3
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820
4 changed files with 29 additions and 5 deletions

View file

@ -26,6 +26,15 @@ fi
export XDG_CURRENT_DESKTOP="${XDG_CURRENT_DESKTOP:=pop:COSMIC}"
export XDG_SESSION_TYPE="${XDG_SESSION_TYPE:=wayland}"
export XCURSOR_THEME="${XCURSOR_THEME:=Adwaita}"
export _JAVA_AWT_WM_NONREPARENTING=1
# experimental X support in cosmic, but still prefer wayland
if [[ ! -z "${COSMIC_X}" ]]; then
export DISPLAY=:0
export GDK_BACKEND=wayland,x11
export MOZ_ENABLE_WAYLAND=1
export COSMIC_BACKEND=kms
fi
# import environment variables from the login manager
systemctl --user import-environment XDG_SESSION_TYPE XDG_CURRENT_DESKTOP