Compare commits
3 commits
2de0639d54
...
4c74dd5024
Author | SHA1 | Date | |
---|---|---|---|
4c74dd5024 | |||
ab35ec8d34 | |||
0162bcefd3 |
3 changed files with 40 additions and 18 deletions
|
@ -5,6 +5,8 @@
|
||||||
./input.nix
|
./input.nix
|
||||||
./binds.nix
|
./binds.nix
|
||||||
./style.nix
|
./style.nix
|
||||||
|
./privacy.nix
|
||||||
|
./quirks.nix
|
||||||
];
|
];
|
||||||
programs.niri.settings = {
|
programs.niri.settings = {
|
||||||
outputs."eDP-1" = {
|
outputs."eDP-1" = {
|
||||||
|
@ -12,9 +14,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
spawn-at-startup = [
|
spawn-at-startup = [
|
||||||
{
|
{command = ["eww" "open-many" "topBar" "bottomBar"];}
|
||||||
command = ["eww" "open-many" "topBar" "bottomBar"];
|
|
||||||
}
|
|
||||||
{
|
{
|
||||||
command = [
|
command = [
|
||||||
"${pkgs.swaybg}/bin/swaybg"
|
"${pkgs.swaybg}/bin/swaybg"
|
||||||
|
@ -25,20 +25,5 @@
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
window-rules = [
|
|
||||||
# TODO: privacy screen rules
|
|
||||||
{
|
|
||||||
matches = [
|
|
||||||
{
|
|
||||||
app-id = "steam";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
open-focused = false;
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
# fix electron apps not doing wayland
|
|
||||||
environment.ELECTRON_OZONE_PLATFORM_HINT = "auto";
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
21
modules/desktop-environment/home/niri/privacy.nix
Normal file
21
modules/desktop-environment/home/niri/privacy.nix
Normal 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";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
16
modules/desktop-environment/home/niri/quirks.nix
Normal file
16
modules/desktop-environment/home/niri/quirks.nix
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
{...}: {
|
||||||
|
window-rules = [
|
||||||
|
# handle steam grabbing focus 1000 times on startup
|
||||||
|
{
|
||||||
|
matches = [
|
||||||
|
{
|
||||||
|
app-id = "steam";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
open-focused = false;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
# fix electron apps not doing wayland
|
||||||
|
environment.ELECTRON_OZONE_PLATFORM_HINT = "auto";
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue