From 1ede0b2961d57979aeac7a090ed0bfb177b4c301 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9ana=20=E6=B1=9F?= Date: Wed, 26 Nov 2025 20:35:20 +0800 Subject: [PATCH 1/3] vanadium/zen-browser: never propose translation --- nix/homeModules/common/zen-browser.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nix/homeModules/common/zen-browser.nix b/nix/homeModules/common/zen-browser.nix index 4b8227ea..f441838d 100644 --- a/nix/homeModules/common/zen-browser.nix +++ b/nix/homeModules/common/zen-browser.nix @@ -66,6 +66,7 @@ in "browser.ctrlTab.sortByRecentlyUsed" = false; "layout.css.devPixelsPerPx" = 1.1; "browser.startup.page" = 1; + "browser.translations.automaticallyPopup" = false; # open links in new window # this works a lot better with xmonad where I have a bunch of windows From 0387c3fcb076f583f2bb4e687cecfc3551ea6a3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9ana=20=E6=B1=9F?= Date: Thu, 27 Nov 2025 11:35:45 +0800 Subject: [PATCH 2/3] overlays/zen-browser: drop --- nix/configurations/vanadium.nix | 1 - nix/overlays/zen-browser.nix | 19 ------------------- 2 files changed, 20 deletions(-) delete mode 100644 nix/overlays/zen-browser.nix diff --git a/nix/configurations/vanadium.nix b/nix/configurations/vanadium.nix index 7234fbdf..ab470dbd 100644 --- a/nix/configurations/vanadium.nix +++ b/nix/configurations/vanadium.nix @@ -56,7 +56,6 @@ in ../overlays/eepy.nix ../overlays/calibre-no-mime.nix ../overlays/fcitx5-table-extra-taiwanese.nix - ../overlays/zen-browser.nix ../overlays/iosevka.nix ../packages/overlay.nix diff --git a/nix/overlays/zen-browser.nix b/nix/overlays/zen-browser.nix deleted file mode 100644 index f4ffa489..00000000 --- a/nix/overlays/zen-browser.nix +++ /dev/null @@ -1,19 +0,0 @@ -let - sources = import ../../npins; -in -final: _: -let - zenpkgs = sources.zen-browser.asFlake.packages.${final.system}; -in -{ - # TODO: upstream default is broken? They default to zen-twilight - "zen-beta-unwrapped" = zenpkgs."beta-unwrapped"; - "zen-twilight-unwrapped" = zenpkgs."twilight-unwrapped"; - "zen-twilight-official-unwrapped" = zenpkgs."twilight-official-unwrapped"; - - # default - "zen-beta" = zenpkgs."beta"; - - "zen-twilight" = zenpkgs."twilight"; - "zen-twilight-official" = zenpkgs."twilight-official"; -} From d252914f55b1b5824a290aa6aede355ddf72f886 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9ana=20=E6=B1=9F?= Date: Thu, 27 Nov 2025 12:52:12 +0800 Subject: [PATCH 3/3] home/zen-browser: close window with last tab --- nix/homeModules/common/zen-browser.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nix/homeModules/common/zen-browser.nix b/nix/homeModules/common/zen-browser.nix index f441838d..bfc4470b 100644 --- a/nix/homeModules/common/zen-browser.nix +++ b/nix/homeModules/common/zen-browser.nix @@ -67,6 +67,7 @@ in "layout.css.devPixelsPerPx" = 1.1; "browser.startup.page" = 1; "browser.translations.automaticallyPopup" = false; + "browser.tabs.closeWindowWithLastTab" = true; # open links in new window # this works a lot better with xmonad where I have a bunch of windows