From 0cc1c250fb48e5ce9fb8b6aef0b0597e55a633dd Mon Sep 17 00:00:00 2001 From: Alex van de Sandt Date: Thu, 14 May 2026 18:39:11 -0500 Subject: [PATCH] Make zen the default browser --- modules/hyprland/hyprland.nix | 2 ++ modules/hyprland/settings.nix | 2 +- modules/kitty.nix | 2 +- modules/zen.nix | 11 +++++++++++ 4 files changed, 15 insertions(+), 2 deletions(-) diff --git a/modules/hyprland/hyprland.nix b/modules/hyprland/hyprland.nix index f70c665..058c02f 100644 --- a/modules/hyprland/hyprland.nix +++ b/modules/hyprland/hyprland.nix @@ -6,6 +6,8 @@ in den.aspects.hyprland = { includes = [ den.aspects.kitty + den.aspects.zen + den.aspects.firefox den.aspects.hyprland.settings ]; diff --git a/modules/hyprland/settings.nix b/modules/hyprland/settings.nix index c7ce8d4..0ca4786 100644 --- a/modules/hyprland/settings.nix +++ b/modules/hyprland/settings.nix @@ -8,7 +8,7 @@ # keywords https://wiki.hypr.land/0.54.0/Configuring/Keywords/ "$terminal" = "kitty"; - "$browser " = "firefox"; + "$browser" = "zen"; "$menu " = "hyprlauncher"; "$mainMod" = "SUPER"; diff --git a/modules/kitty.nix b/modules/kitty.nix index 3014260..8989c3a 100644 --- a/modules/kitty.nix +++ b/modules/kitty.nix @@ -35,7 +35,7 @@ "ctrl+right" = "neighboring_window right"; "ctrl+down" = "neighboring_window down"; "ctrl+left" = "neighboring_window left"; - "ctrl+shfit+p" = "nth_window -1"; + "ctrl+shift+p" = "nth_window -1"; "ctrl+alt+t" = "detach_window new-tab"; }; }; diff --git a/modules/zen.nix b/modules/zen.nix index 5092089..75e60fc 100644 --- a/modules/zen.nix +++ b/modules/zen.nix @@ -7,6 +7,17 @@ home.packages = [ inputs.zen-browser.packages.${system}.default ]; + + xdg.mimeApps = { + enable = true; + defaultApplications = { + "text/html" = "zen.desktop"; + "x-scheme-handler/http" = "zen.desktop"; + "x-scheme-handler/https" = "zen.desktop"; + "x-scheme-handler/about" = "zen.desktop"; + "x-scheme-handler/unknown" = "zen.desktop"; + }; + }; }; }; } -- 2.51.2