mirror of
https://github.com/zephrynis/nix-flake.git
synced 2026-02-18 20:21:53 +00:00
Fix: update Wayland desktop entries for legcord and teams-for-linux to improve compatibility
This commit is contained in:
@@ -51,18 +51,6 @@
|
|||||||
# discord
|
# discord
|
||||||
# slack
|
# 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
|
# Screenshots and screen recording
|
||||||
grim # Screenshot tool for Wayland
|
grim # Screenshot tool for Wayland
|
||||||
slurp # Screen area selector for Wayland
|
slurp # Screen area selector for Wayland
|
||||||
@@ -212,6 +200,24 @@
|
|||||||
x11.enable = true;
|
x11.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Override desktop entries to use Wayland flags for Electron apps
|
||||||
|
xdg.desktopEntries = {
|
||||||
|
legcord = {
|
||||||
|
name = "Legcord";
|
||||||
|
exec = "${pkgs.legcord}/bin/legcord --enable-features=UseOzonePlatform,WaylandWindowDecorations --ozone-platform=wayland %U";
|
||||||
|
icon = "legcord";
|
||||||
|
type = "Application";
|
||||||
|
categories = [ "Network" "InstantMessaging" ];
|
||||||
|
};
|
||||||
|
teams-for-linux = {
|
||||||
|
name = "Microsoft Teams for Linux";
|
||||||
|
exec = "${pkgs.teams-for-linux}/bin/teams-for-linux --enable-features=UseOzonePlatform,WaylandWindowDecorations --ozone-platform=wayland %U";
|
||||||
|
icon = "teams-for-linux";
|
||||||
|
type = "Application";
|
||||||
|
categories = [ "Network" "InstantMessaging" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# Waybar configuration with glassmorphic theme
|
# Waybar configuration with glassmorphic theme
|
||||||
home.file.".config/waybar/config".source = ./waybar-config.json;
|
home.file.".config/waybar/config".source = ./waybar-config.json;
|
||||||
home.file.".config/waybar/style.css".source = ./waybar-style.css;
|
home.file.".config/waybar/style.css".source = ./waybar-style.css;
|
||||||
|
|||||||
Reference in New Issue
Block a user