home: firefox: tridactyl: use preferred terminal
Thankfully, alacritty and termite both use the same command line arguments for this. If I ever want to use another one, I might have to make the logic a bit more robust.
This commit is contained in:
parent
4f883b0198
commit
e8a46ae248
|
@ -1,9 +1,20 @@
|
|||
{ config, lib, ... }:
|
||||
{ config, lib, pkgs, ... }:
|
||||
let
|
||||
cfg = config.my.home.firefox.tridactyl;
|
||||
in
|
||||
{
|
||||
config = lib.mkIf cfg.enable {
|
||||
xdg.configFile."tridactyl/tridactylrc".source = ./tridactylrc;
|
||||
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|'"''
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -5,8 +5,7 @@
|
|||
colorscheme dark
|
||||
|
||||
" Make tridactyl open Vim in my prefered terminal
|
||||
" FIXME: make it follow my prefered terminal
|
||||
set editorcmd termite --class tridactyl_editor -e "vim %f '+normal!%lGzv%c|'"
|
||||
set editorcmd @editorcmd@
|
||||
" }}}
|
||||
|
||||
" Binds {{{
|
||||
|
|
Loading…
Reference in a new issue