diff --git a/hosts/common/default.nix b/hosts/common/default.nix index 0f5cce8..ac51384 100644 --- a/hosts/common/default.nix +++ b/hosts/common/default.nix @@ -4,6 +4,7 @@ ./autoupdate.nix ./garbage-collect.nix ./keyd.nix + ./mimetype.nix ./optimise.nix ]; diff --git a/hosts/common/mimetype.nix b/hosts/common/mimetype.nix new file mode 100644 index 0000000..a0efe6f --- /dev/null +++ b/hosts/common/mimetype.nix @@ -0,0 +1,15 @@ +{ ... }: +{ + + xdg.mime.defaultApplications = { + "application/pdf" = "zen.desktop"; + "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"; + }; + + environment.sessionVariables.DEFAULT_BROWSER = "zen"; + +} diff --git a/users/willifan/desktop/hyprland/common/hyprland.nix b/users/willifan/desktop/hyprland/common/hyprland.nix index 035d72b..cc963d5 100644 --- a/users/willifan/desktop/hyprland/common/hyprland.nix +++ b/users/willifan/desktop/hyprland/common/hyprland.nix @@ -24,7 +24,7 @@ # Execute your favorite apps at launch exec-once = [ ''hyprctl dispatch exec "[workspace 1 silent] kitty"'' - ''hyprctl dispatch exec "[workspace 2 silent] firefox"'' + ''hyprctl dispatch exec "[workspace 2 silent] zen"'' #''hyprctl dispatch exec "[workspace 3 silent] "'' #''hyprctl dispatch exec "[workspace 4 silent] "'' #''hyprctl dispatch exec "[workspace 8 silent] "''