vimium etc
This commit is contained in:
parent
62ecb566ed
commit
194cefe340
7 changed files with 106 additions and 27 deletions
|
|
@ -23,6 +23,48 @@ inputs@{ machine, ... }:
|
|||
# };
|
||||
in
|
||||
{
|
||||
imports = [ flakes.vimium-options.homeManagerModules.vimium-options ];
|
||||
|
||||
home.vimiumOptions = {
|
||||
enable = true;
|
||||
outputFilePath = ".cache/vimium-options.json";
|
||||
keyMappings = {
|
||||
unmapAll = true;
|
||||
map = {
|
||||
"j" = "scrollDown";
|
||||
"k" = "scrollUp";
|
||||
"<" = "goBack";
|
||||
">" = "goForward";
|
||||
"gi" = "focusInput";
|
||||
"gr" = "goToRoot";
|
||||
"gu" = "goUp";
|
||||
"g[" = "goNext";
|
||||
"g]" = "goPrevious";
|
||||
"gF" = "mainFrame";
|
||||
"gf" = "nextFrame";
|
||||
"p" = "openCopiedUrlInCurrentTab";
|
||||
"P" = "openCopiedUrlInNewTab";
|
||||
"G" = "scrollToBottom";
|
||||
"gg" = "scrollToTop";
|
||||
"C-o" = "visitPreviousTab";
|
||||
|
||||
"f" = "LinkHints.activateMode";
|
||||
"F" = "LinkHints.activateModeToOpenInNewTab";
|
||||
"<a-f>" = "LinkHints.activateModeWithQueue";
|
||||
"yf" = "LinkHints.activateModeToCopyLinkUrl";
|
||||
};
|
||||
};
|
||||
|
||||
exclusionRules = [
|
||||
{
|
||||
pattern = "https?://mail.google.com/*";
|
||||
}
|
||||
{
|
||||
pattern = "https?://squaredle.app/*";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
programs.firefox = {
|
||||
enable = true;
|
||||
package = pkgs.wrapFirefox pkgs.firefox-unwrapped {
|
||||
|
|
@ -88,7 +130,7 @@ inputs@{ machine, ... }:
|
|||
ublock-origin
|
||||
sidebery
|
||||
sponsorblock
|
||||
# vimium
|
||||
vimium
|
||||
];
|
||||
|
||||
bookmarks = {
|
||||
|
|
@ -154,16 +196,16 @@ inputs@{ machine, ... }:
|
|||
};
|
||||
};
|
||||
|
||||
xdg.mimeApps = {
|
||||
defaultApplications."x-scheme-handler/http" = [
|
||||
xdg.mimeApps.defaultApplications = {
|
||||
"x-scheme-handler/http" = [
|
||||
"firefox.desktop"
|
||||
];
|
||||
defaultApplications."x-scheme-handler/https" = [
|
||||
"x-scheme-handler/https" = [
|
||||
"firefox.desktop"
|
||||
];
|
||||
defaultApplications."text/html" = [ "firefox.desktop" ];
|
||||
defaultApplications."x-scheme-handler/about" = [ "firefox.desktop" ];
|
||||
defaultApplications."x-scheme-handler/unknown" = [ "firefox.desktop" ];
|
||||
"text/html" = [ "firefox.desktop" ];
|
||||
"x-scheme-handler/about" = [ "firefox.desktop" ];
|
||||
"x-scheme-handler/unknown" = [ "firefox.desktop" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue