From 50316a3f4e308a8c784b6c2fedde42f4d798f1b7 Mon Sep 17 00:00:00 2001 From: histalek Date: Sat, 25 Dec 2021 21:53:01 +0100 Subject: [PATCH] wayland: Make more applications use wayland --- .config/electron-flags.conf | 2 ++ .config/environment.d/50-wayland.conf | 19 ++++++++++++++++++- .local/share/applications/codium.desktop | 18 ++++++++++++++++++ 3 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 .config/electron-flags.conf create mode 100644 .local/share/applications/codium.desktop diff --git a/.config/electron-flags.conf b/.config/electron-flags.conf new file mode 100644 index 0000000..51bdd86 --- /dev/null +++ b/.config/electron-flags.conf @@ -0,0 +1,2 @@ +--enable-features=UseOzonePlatform +--ozone-platform=wayland diff --git a/.config/environment.d/50-wayland.conf b/.config/environment.d/50-wayland.conf index f2c4af7..0668c05 100644 --- a/.config/environment.d/50-wayland.conf +++ b/.config/environment.d/50-wayland.conf @@ -1,3 +1,20 @@ -MOZ_ENABLE_WAYLAND=1 +### Set wayland specific environment variables + +# Set compositor +XDG_CURRENT_DESKTOP=sway + +# Set wayland backend for GUI libraries QT_QPA_PLATFORM=wayland-egl +GDK_BACKEND=wayland +CLUTTER_BACKEND=wayland +SDL_VIDEODRIVER=wayland + +# Restore functionality for QT features by setting the theme to 'qt5ct' +QT_QPA_PLATFORMTHEME=qt5ct + +# Enable wayland for firefox and thunderbird +MOZ_ENABLE_WAYLAND=1 + +# wlroots configuration Ref.: https://gitlab.freedesktop.org/wlroots/wlroots/-/blob/master/docs/env_vars.md WLR_DRM_NO_MODIFIERS=1 + diff --git a/.local/share/applications/codium.desktop b/.local/share/applications/codium.desktop new file mode 100644 index 0000000..300dd21 --- /dev/null +++ b/.local/share/applications/codium.desktop @@ -0,0 +1,18 @@ +[Desktop Entry] +Name=VSCodium +Comment=Code Editing. Redefined. +GenericName=Text Editor +Exec=/opt/vscodium-bin/bin/codium --enable-features=UseOzonePlatform --ozone-platform=wayland --no-sandbox --unity-launch %F +Icon=vscodium +Type=Application +StartupNotify=true +StartupWMClass=VSCodium +Categories=Utility;Development;IDE; +MimeType=text/plain;inode/directory; +Actions=new-empty-window; +Keywords=vscode; + +[Desktop Action new-empty-window] +Name=New Empty Window +Exec=/opt/vscodium-bin/bin/codium --enable-features=UseOzonePlatform --ozone-platform=wayland --no-sandbox --new-window %F +Icon=vscodium