23 lines
705 B
Nix
23 lines
705 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"];
|
|
};
|
|
};
|
|
}
|