{ config, ... }: { imports = [ ./duckduckgo-colorscheme.nix ]; programs.qutebrowser = { enable = true; searchEngines = { "DEFAULT" = "https://duckduckgo.com/?q={}&ia=web"; "d" = "https://duckduckgo.com/?q={}&ia=web"; "g" = "https://google.com/search?q={}"; "y" = "https://youtube.com/results?search_query={}"; "n" = "https://mynixos.com/search?q={}"; "nixo" = "https://search.nixos.org/options?channel=unstable&query={}"; "nixp" = "https://search.nixos.org/packages?channel=unstable&query={}"; }; settings = { url = { default_page = "https://duckduckgo.com"; start_pages = [ "https://duckduckgo.com" ]; }; colors = { tabs = { odd.bg = "#${config.theme.colors.bg}"; odd.fg = "#${config.theme.colors.fg}"; even.bg = "#${config.theme.colors.bg}"; even.fg = "#${config.theme.colors.fg}"; selected.odd.bg = "#${config.theme.colors.primary-bg}"; selected.odd.fg = "#${config.theme.colors.primary-fg}"; selected.even.bg = "#${config.theme.colors.primary-bg}"; selected.even.fg = "#${config.theme.colors.primary-fg}"; indicator.error = "#${config.theme.colors.color1}"; indicator.start = "#${config.theme.colors.alt-bg}"; indicator.stop = "#${config.theme.colors.alt-bg}"; }; hints = { bg = "#${config.theme.colors.alt-bg}"; fg = "#${config.theme.colors.alt-fg}"; match.fg = "#${config.theme.colors.bg}"; }; completion = { category.bg = "#${config.theme.colors.bg}"; category.fg = "#${config.theme.colors.fg}"; category.border.top = "#${config.theme.colors.bg}"; category.border.bottom = "#${config.theme.colors.bg}"; odd.bg = "#${config.theme.colors.bg}"; even.bg = "#${config.theme.colors.bg}"; fg = [ "#FFFFFF" "#FFFFFF" "#FFFFFF" ]; match.fg = "#${config.theme.colors.primary-bg}"; item.selected.bg = "#${config.theme.colors.primary-bg}"; item.selected.border.top = "#${config.theme.colors.primary-bg}"; item.selected.border.bottom = "#${config.theme.colors.primary-bg}"; item.selected.fg = "#${config.theme.colors.primary-fg}"; item.selected.match.fg = "#${config.theme.colors.primary-fg}"; }; statusbar = { normal.bg = "#${config.theme.colors.bg}"; normal.fg = "#${config.theme.colors.fg}"; private.bg = "#${config.theme.colors.bg}"; private.fg = "#${config.theme.colors.fg}"; command = { bg = "#${config.theme.colors.alt-bg}"; fg = "#${config.theme.colors.alt-fg}"; private.bg = "#${config.theme.colors.alt-bg}"; private.fg = "#${config.theme.colors.alt-fg}"; }; }; messages = { info = { bg = "#${config.theme.colors.alt-bg}"; fg = "#${config.theme.colors.alt-fg}"; border = "#${config.theme.colors.alt-bg}"; }; error = { bg = "#${config.theme.colors.color1}"; fg = "#${config.theme.colors.alt-fg}"; border = "#${config.theme.colors.color1}"; }; }; }; fonts = { default_family = "#${config.theme.font}"; }; completion = { height = "30%"; open_categories = [ "history" ]; scrollbar = { padding = 0; width = 0; }; show = "always"; shrink = true; timestamp_format = ""; web_history.max_items = 7; }; content = { autoplay = false; javascript.clipboard = "access"; pdfjs = true; }; downloads = { position = "bottom"; remove_finished = 0; }; fileselect = { handler = "external"; multiple_files.command = [ "alacritty" "--embed" "$(xdotool getactivewindow)" "-e" "lf" "-selection-path" "{}" ]; single_file.command = [ "alacritty" "--embed" "$(xdotool getactivewindow)" "-e" "lf" "-selection-path" "{}" ]; }; hints = { border = "none"; radius = 1; }; scrolling = { bar = "never"; smooth = true; }; statusbar = { show = "never"; widgets = [ ]; }; tabs = { show = "multiple"; last_close = "close"; mode_on_change = "restore"; close_mouse_button = "right"; }; zoom.default = "100%"; }; keyMappings = { "" = "o"; "" = "O"; }; keyBindings = { normal = { ",p" = "tab-move -"; ",n" = "tab-move +"; "" = "config-source"; "" = "fake-key "; "" = "scroll-to-perc 0"; "" = "scroll-to-perc"; "" = "back"; "" = "forward"; "" = "open -w"; "" = "open -p"; "" = "tab-close"; "" = "tab-focus 1"; "" = "tab-focus 2"; "" = "tab-focus 3"; "" = "tab-focus 4"; "" = "tab-focus 5"; "" = "tab-focus 6"; "" = "tab-focus 7"; "" = "tab-focus 8"; "" = "tab-focus 9"; "" = "tab-focus 10"; "gtb" = "open https://github.com/noib3"; "ttb" = "open -t https://github.com/noib3"; "gma" = "open https://mail.protonmail.com/inbox"; "tma" = "open -t https://mail.protonmail.com/inbox"; "gkp" = "open https://keep.google.com"; "tkp" = "open -t https://keep.google.com"; "grhm" = "open https://github.com/nix-community/home-manager/find/master"; "trhm" = "open -t https://github.com/nix-community/home-manager/find/master"; "gnv" = "open https://github.com/neovim/neovim/tree/master/src/nvim"; "tnv" = "open -t https://github.com/neovim/neovim/tree/master/src/nvim"; "gbg" = "open https://rarbgunblocked.org/torrents.php"; "tbg" = "open -t https://rarbgunblocked.org/torrents.php"; "g12ft" = "open https://12ft.io/"; "t12ft" = "open -t https://12ft.io/"; "gtra" = "open http://localhost:9091/transmission/web/"; "ttra" = "open -t http://localhost:9091/transmission/web/"; }; command = { "" = "tab-close"; "" = "completion-item-yank"; "" = "fake-key --global "; "" = "rl-beginning-of-line"; "" = "rl-end-of-line"; "" = "rl-backward-kill-word"; "" = "rl-unix-line-discard"; }; insert = { "" = "tab-close"; "" = "fake-key "; "" = "fake-key "; "" = "fake-key "; "" = "fake-key "; "" = "fake-key "; "" = "fake-key "; "" = "fake-key "; "" = "fake-key "; "" = "tab-focus 1"; "" = "tab-focus 2"; "" = "tab-focus 3"; "" = "tab-focus 4"; "" = "tab-focus 5"; "" = "tab-focus 6"; "" = "tab-focus 7"; "" = "tab-focus 8"; "" = "tab-focus 9"; "" = "tab-focus 10"; }; }; extraConfig = '' config.unbind("gm") config.unbind("gd") config.unbind("gb") config.unbind("tl") config.unbind("gt") c.tabs.padding = {"bottom": 0, "left": 7, "right": 7, "top": 0} config.load_autoconfig(True) ''; }; }