home/niri: Block out sensitive windows for capture

This commit is contained in:
Mikael 2024-08-27 17:14:17 +02:00
parent e80b8bf4b2
commit f50a533459
Signed by: mikael
SSH key fingerprint: SHA256:21QyD2Meiot7jOUVitIR5YkGB/XuXdCvLW1hE6dsri0

View file

@ -136,12 +136,30 @@ in lib.mkIf (osConfig.hardware.graphics.enable or false) {
bottom-right = 4.0; bottom-right = 4.0;
}; };
} }
{
matches = [
{ app-id = ''^notifications$''; }
];
block-out-from = "screencast";
}
{
matches = [
{ app-id = ''^firefox\.private$''; }
{ app-id = ''^kitty\.private$''; }
{ app-id = ''^org\.gnome\.Fractal$''; }
{ app-id = ''^org\.keepassxc\.KeePassXC$''; }
{ app-id = ''^signal$''; }
];
block-out-from = "screen-capture";
}
]; ];
binds = with config.lib.niri.actions; { binds = with config.lib.niri.actions; {
# Application spawning # Application spawning
"Mod+Return".action = spawn [ kitty ]; "Mod+Return".action = spawn [ kitty ];
"Mod+Shift+Return".action = spawn [ kitty fish "--private" ]; "Mod+Shift+Return".action = spawn [ kitty "--app-id" "private" fish "--private" ];
"Mod+E".action = spawn [ fuzzel ]; "Mod+E".action = spawn [ fuzzel ];
# Window & column focus # Window & column focus