diff --git a/modules/features/niri.nix b/modules/features/niri.nix index 90f6f9a..8147cc3 100644 --- a/modules/features/niri.nix +++ b/modules/features/niri.nix @@ -23,11 +23,11 @@ wallpaper-destinations = [ "Pictures/Wallpapers" ]; xdg.mime.defaultApplications = { - "text/html" = "librewolf"; - "x-scheme-handler/http" = "librewolf"; - "x-scheme-handler/https" = "librewolf"; - "x-scheme-handler/about" = "librewolf"; - "x-scheme-handler/unknown" = "librewolf"; + "text/html" = "helium"; + "x-scheme-handler/http" = "helium"; + "x-scheme-handler/https" = "helium"; + "x-scheme-handler/about" = "helium"; + "x-scheme-handler/unknown" = "helium"; }; }; }; @@ -56,8 +56,8 @@ }; input.touchpad = { - tap = {}; - natural-scroll = {}; + tap = { }; + natural-scroll = { }; }; "output \"eDP-1\"" = { @@ -75,7 +75,9 @@ binds = { "Mod+R".spawn-sh = "${lib.getExe self'.packages.myNoctalia} ipc call launcher toggle"; - "Mod+Shift+W".spawn-sh = "librewolf"; + "Mod+Shift+W".spawn-sh = + lib.getExe + inputs.helium.packages.${pkgs.stdenv.hostPlatform.system}.default; "Mod+Return".spawn-sh = lib.getExe self'.packages.kitty; "Mod+Shift+C".close-window = null; @@ -117,6 +119,7 @@ matches = [ { app-id = "zed"; } { app-id = "librewolf"; } + { app-id = "helium"; } { app-id = "vesktop"; } ]; default-column-width = { @@ -137,6 +140,21 @@ }; }; } + { + # picture-in-picture support for helium + matches = [ + # Since App ID is empty, we target the title specifically. + # Using regex ^...$ ensures an exact match. + { title = "^Picture in picture$"; } + ]; + default-floating-position = { + _attrs = { + x = 10; + y = 10; + relative-to = "bottom-right"; + }; + }; + } ]; workspaces = { diff --git a/modules/hosts/desktop/configuration.nix b/modules/hosts/desktop/configuration.nix index 6e7e5c3..78123db 100644 --- a/modules/hosts/desktop/configuration.nix +++ b/modules/hosts/desktop/configuration.nix @@ -14,6 +14,7 @@ self.nixosModules.contentCreation self.nixosModules.communications # self.nixosModules.hyprland-noctalia + self.nixosModules.helium self.nixosModules.librewolf self.nixosModules.user ]; @@ -35,6 +36,7 @@ pavucontrol keepassxc amberol + gelly chromium (element-desktop.override { commandLineArgs = "--password-store=gnome-libsecret";