diff --git a/modules/desktop-environment/home/niri/default.nix b/modules/desktop-environment/home/niri/default.nix index f038aee..8b80d13 100644 --- a/modules/desktop-environment/home/niri/default.nix +++ b/modules/desktop-environment/home/niri/default.nix @@ -5,8 +5,6 @@ ./input.nix ./binds.nix ./style.nix - ./privacy.nix - ./quirks.nix ]; programs.niri.settings = { outputs."eDP-1" = { @@ -14,7 +12,9 @@ }; spawn-at-startup = [ - {command = ["eww" "open-many" "topBar" "bottomBar"];} + { + command = ["eww" "open-many" "topBar" "bottomBar"]; + } { command = [ "${pkgs.swaybg}/bin/swaybg" @@ -25,5 +25,20 @@ ]; } ]; + + 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"; }; } diff --git a/modules/desktop-environment/home/niri/privacy.nix b/modules/desktop-environment/home/niri/privacy.nix deleted file mode 100644 index 1d4fbee..0000000 --- a/modules/desktop-environment/home/niri/privacy.nix +++ /dev/null @@ -1,21 +0,0 @@ -{...}: { - 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"; - } - ]; - }; -} diff --git a/modules/desktop-environment/home/niri/quirks.nix b/modules/desktop-environment/home/niri/quirks.nix deleted file mode 100644 index ce67532..0000000 --- a/modules/desktop-environment/home/niri/quirks.nix +++ /dev/null @@ -1,16 +0,0 @@ -{...}: { - 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"; -}