refactor: nixify / clean dots config
This commit is contained in:
1 parent
c2bb81ec7c
commit
9030f33842
35 files changed
+83
-4366
No files matched your search
@@ -9,6 +9,7 @@
|
||||
./firefox.nix
|
||||
./librewolf.nix
|
||||
./chromium.nix
|
||||
./tridactyl.nix
|
||||
];
|
||||
|
||||
options.browser = {
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
browsers = [
|
||||
config.browser.primary
|
||||
config.browser.secondary
|
||||
];
|
||||
in
|
||||
{
|
||||
config = lib.mkIf (lib.elem "firefox" browsers || lib.elem "librewolf" browsers) {
|
||||
xdg.configFile."tridactyl/tridactylrc".source = ./tridactylrc;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
set searchengine d
|
||||
|
||||
set newtab about:blank
|
||||
set smoothscroll true
|
||||
|
||||
# Yank bindings
|
||||
bind ym clipboard yankmd
|
||||
bind yg composite js "git clone " + document.location.href.replace(/https?:\/\//,"git@").replace("/",":").replace(/$/,".git") | clipboard yank
|
||||
|
||||
# Search bindings
|
||||
unbind <C-f>
|
||||
bind / fillcmdline find
|
||||
bind ? fillcmdline find -?
|
||||
bind n findnext 1
|
||||
bind N findnext -1
|
||||
|
||||
bind j scrollline 4
|
||||
bind k scrollline -4
|
||||
|
||||
# Containerize facebook (source: https://github.com/tridactyl/tridactyl/blob/master/.tridactylrc)
|
||||
set auconcreatecontainer true
|
||||
autocontain facebook\.com facebook
|
||||
Reference in new issue
Block a user