From 1d74a1c0e45553959413cc10544781292afacd41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikodem=20Rabuli=C5=84ski?= Date: Fri, 28 Jun 2024 10:29:05 +0200 Subject: [PATCH] modules/home/common/desktop: configure qutebrowser --- modules/home/common/desktop/default.nix | 31 +++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/modules/home/common/desktop/default.nix b/modules/home/common/desktop/default.nix index aa48b08..0acf917 100644 --- a/modules/home/common/desktop/default.nix +++ b/modules/home/common/desktop/default.nix @@ -35,6 +35,37 @@ enable = true; package = if pkgs.stdenv.isDarwin then inputs'.niko-nur.packages.qutebrowser-bin else pkgs.qutebrowser; + searchEngines = { + r = "https://doc.rust-lang.org/stable/std/?search={}"; + lib = "https://lib.rs/search?q={}"; + nip = "https://jisho.org/search/{}"; + }; + settings = { + tabs = { + indicator.width = 3; + }; + + fonts = { + default_family = "Iosevka"; + default_size = "13px"; + }; + + content = { + canvas_reading = true; + blocking.method = "both"; + javascript.clipboard = "access"; + }; + }; + # Workaround because the nix module doesn't properly handle options that expect a dict + extraConfig = '' + c.tabs.padding = { 'top': 5, 'bottom': 5, 'right': 10, 'left': 10 } + c.statusbar.padding = { 'top': 5, 'bottom': 5, 'right': 10, 'left': 10 } + ''; + keyBindings = { + passthrough = { + "" = "mode-leave"; + }; + }; }; programs.zellij = {