chore(firefox): add rc file to configure Tridactyl

This commit is contained in:
Yorick Barbanneau 2025-01-10 16:52:20 +01:00
parent 325914c977
commit 486f92fb5f

View file

@ -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 <C-f>
" 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 {