From 9ca27bd3e2ea78081f23399547d35ec836d62b3a Mon Sep 17 00:00:00 2001 From: Zephrynis Date: Tue, 4 Nov 2025 19:18:10 +0000 Subject: [PATCH] Fix: update Wayland application wrappers for legcord and teams-for-linux to improve compatibility --- home/home.nix | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/home/home.nix b/home/home.nix index d441bd8..895ec5c 100644 --- a/home/home.nix +++ b/home/home.nix @@ -46,21 +46,23 @@ # spotify # Communication - (legcord.override { - commandLineArgs = [ - "--enable-features=UseOzonePlatform,WaylandWindowDecorations" - "--ozone-platform=wayland" - ]; - }) - (teams-for-linux.override { - commandLineArgs = [ - "--enable-features=UseOzonePlatform,WaylandWindowDecorations" - "--ozone-platform=wayland" - ]; - }) + legcord + teams-for-linux # discord # slack + # Wayland wrappers for Electron apps + (pkgs.writeShellScriptBin "legcord-wayland" '' + exec ${pkgs.legcord}/bin/legcord \ + --enable-features=UseOzonePlatform,WaylandWindowDecorations \ + --ozone-platform=wayland "$@" + '') + (pkgs.writeShellScriptBin "teams-wayland" '' + exec ${pkgs.teams-for-linux}/bin/teams-for-linux \ + --enable-features=UseOzonePlatform,WaylandWindowDecorations \ + --ozone-platform=wayland "$@" + '') + # Screenshots and screen recording grim # Screenshot tool for Wayland slurp # Screen area selector for Wayland