diff options
Diffstat (limited to 'modules/qutebrowser')
| -rw-r--r-- | modules/qutebrowser/config.py | 24 | ||||
| -rw-r--r-- | modules/qutebrowser/default.nix | 11 |
2 files changed, 33 insertions, 2 deletions
diff --git a/modules/qutebrowser/config.py b/modules/qutebrowser/config.py new file mode 100644 index 0000000..1baaabe --- /dev/null +++ b/modules/qutebrowser/config.py @@ -0,0 +1,24 @@ +config.unbind('k') +config.bind(',v', 'hint links spawn mpv {hint-url}') +config.bind('m', 'scroll left') +config.bind('n', 'scroll down') +config.bind('e', 'scroll up') +config.bind('i', 'scroll right') +config.bind('M', 'back') +config.bind('N', 'tab-prev') +config.bind('E', 'tab-next') +config.bind('I', 'forward') + +config.bind('j', 'search-next') +config.bind('J', 'search-prev') +config.bind('l', 'mode-enter insert') + +c.tabs.show = 'never' +c.tabs.tabs_are_windows = True +c.tabs.last_close = 'close' +c.fonts.default_family = 'BerkeleyMonoPatched Nerd Font Propo' +c.fonts.default_size: '13pt' +c.hints.chars = 'arstneio' +c.tabs.favicons.show = 'never' +c.tabs.indicator.width = 0 +c.tabs.title.alignment = 'center' diff --git a/modules/qutebrowser/default.nix b/modules/qutebrowser/default.nix index 46c3ddf..6a0628c 100644 --- a/modules/qutebrowser/default.nix +++ b/modules/qutebrowser/default.nix @@ -1,10 +1,11 @@ { config, lib, pkgs, inputs, ... }: let cfg = config.modules.qutebrowser; + scheme = config.modules.scheme; in { options.modules.qutebrowser = { - enable = lib.mkEnableOption "sway"; + enable = lib.mkEnableOption "qutebrowser"; wrapWithNixGL = lib.mkEnableOption "NixGL Wrapper"; }; @@ -12,7 +13,13 @@ in programs.qutebrowser = lib.mkIf cfg.enable { enable = true; package = if cfg.wrapWithNixGL then config.lib.nixGL.wrap pkgs.qutebrowser else pkgs.qutebrowser; - loadAutoconfig = true; + loadAutoconfig = false; + extraConfig = '' + ${builtins.readFile ./config.py} + c.colors.completion.category.bg = "${scheme.base00}"; + c.colors.completion.category.border.top = "${scheme.base00}"; + c.colors.completion.category.border.bottom = "${scheme.base00}"; + ''; }; }; } |