2023-02-12 18:33:45 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
2021-04-05 15:22:53 +02:00
|
|
|
let
|
|
|
|
cfg = config.my.home.firefox.tridactyl;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
config = lib.mkIf cfg.enable {
|
2023-02-12 18:33:45 +01:00
|
|
|
xdg.configFile."tridactyl/tridactylrc".source = pkgs.substituteAll {
|
|
|
|
src = ./tridactylrc;
|
|
|
|
|
|
|
|
editorcmd = lib.concatStringsSep " " [
|
|
|
|
# Use my configured terminal
|
|
|
|
config.my.home.terminal.program
|
|
|
|
# Make it easy to pick out with a window class name
|
|
|
|
"--class tridactyl_editor"
|
|
|
|
# Open vim with the cursor in the correct position
|
|
|
|
''-e "vim %f '+normal!%lGzv%c|'"''
|
|
|
|
];
|
|
|
|
};
|
2021-04-05 15:22:53 +02:00
|
|
|
};
|
|
|
|
}
|