add privacy screenshare blocking settings

This commit is contained in:
Schrottkatze 2025-03-27 01:54:57 +01:00
parent 2de0639d54
commit 0162bcefd3
Signed by: schrottkatze
SSH key fingerprint: SHA256:FPOYVeBy3QP20FEM42uWF1Wa/Qhlk+L3S2+Wuau/Auo
2 changed files with 22 additions and 0 deletions

View file

@ -5,6 +5,7 @@
./input.nix
./binds.nix
./style.nix
./privacy.nix
];
programs.niri.settings = {
outputs."eDP-1" = {

View file

@ -0,0 +1,21 @@
{...}: {
programs.niri.settings = {
layer-rules = [
{
matches = [
{namespace = "notifications";}
];
block-out-from = "screen-capture";
}
];
window-rules = [
{
matches = [
{app-id = "^signal|Element|org\.gnome\.Evolution$";}
{title = "^.*(Discord|Beispiel Screenshare block Bug).*$";}
];
block-out-from = "screen-capture";
}
];
};
}