Files
nix-config/home-manager/hyprland/hyprland-xwaylandvideobridge.nix
2025-10-30 21:59:31 +01:00

30 lines
741 B
Nix

{
config,
osConfig,
pkgs,
inputs,
lib,
...
}:
with lib;
let
cfg = osConfig.custom.graphical.hyprland.videobridge;
in
{
config = lib.mkIf cfg.enable {
wayland.windowManager.hyprland.settings.windowrulev2 = [
"opacity 0.0 override 0.0 override,class:^(xwaylandvideobridge)$"
"noanim,class:^(xwaylandvideobridge)$"
"noinitialfocus,class:^(xwaylandvideobridge)$"
"maxsize 1 1,class:^(xwaylandvideobridge)$"
"noblur,class:^(xwaylandvideobridge)$"
];
systemd.user.services.xwaylandvideobridge = {
Unit.Description = "XWaylandVideoBridge";
Service.ExecStart = lib.getExe pkgs.unstable.xwaylandvideobridge;
Install.WantedBy = [ "graphical-session.target" ];
};
};
}