From 486f92fb5f12fad5981091ca182a2405ca624499 Mon Sep 17 00:00:00 2001 From: Yorick Barbanneau Date: Fri, 10 Jan 2025 16:52:20 +0100 Subject: [PATCH] chore(firefox): add rc file to configure Tridactyl --- modules/home-manager/web/firefox/default.nix | 24 ++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/modules/home-manager/web/firefox/default.nix b/modules/home-manager/web/firefox/default.nix index 4f35b13..da64118 100644 --- a/modules/home-manager/web/firefox/default.nix +++ b/modules/home-manager/web/firefox/default.nix @@ -64,6 +64,30 @@ in }; }; }; + + xdg.configFile."tridactyl/tridactylrc".text = '' + sanitize tridactyllocal tridactylsync + " Define custom theme + set customthemes.custom #completions table, #tridactyl-input {font-size: .9rem!important;}; + set theme custom + " Smooth scrolling + set smoothscroll true + " Ctrl-F should use the browser's native 'find' functionality. + unbind + " But also support Tridactyl search too. + bind / fillcmdline find + bind ? fillcmdline find -? + bind n findnext 1 + bind N findnext -1 + " K and J should move between tabs. + bind J tabprev + bind K tabnext + " Binds for force reader mode + bind gfr reader + bind gfR reader --tab + set editorcmd foot -T "Edit text from Firefox" nvim %f + ''; + programs.firefox = let allExtensions = cfg.baseExtensions ++ cfg.optionalExtensions; in {