129 lines
4 KiB
Nix
129 lines
4 KiB
Nix
{ config, pkgs, ... }:
|
|
{
|
|
programs.qutebrowser = {
|
|
enable = true;
|
|
loadAutoconfig = true;
|
|
keyBindings = {
|
|
normal = {
|
|
",J" = "spawn /home/don/bin/vdi";
|
|
",R" = "spawn --userscript obsidian-import -r";
|
|
",U" = "spawn --userscript sendurl";
|
|
",V" = "hint links spawn umpv {hint-url}";
|
|
",b" = "spawn rofi-buku";
|
|
",d" = "spawn --userscript open_download";
|
|
",j" = "spawn --userscript joplin-import";
|
|
",m" = "spawn --userscript mymail";
|
|
",n" = ''config-cycle content.user_stylesheets /home/don/src/solarized-everything-css/css/mine.css ""'';
|
|
",o" = "spawn --userscript obsidian-import";
|
|
",r" = "spawn --userscript recipe";
|
|
",u" = "spawn --userscript sendphone";
|
|
",v" = "spawn /home/don/bin/myweb {url}";
|
|
",w" = "set-cmd-text -s :spawn --userscript taskadd";
|
|
";V" = "hint --rapid links spawn myweb {hint-url}";
|
|
"xb" = "config-cycle statusbar.show always in-mode";
|
|
"xt" = "config-cycle tabs.show always switching";
|
|
"xx" = "config-cycle statusbar.show always in-mode ;; config-cycle tabs.show always switching";
|
|
};
|
|
};
|
|
searchEngines = {
|
|
w = "https://en.wikipedia.org/wiki/Special:Search?search={}&go=Go&ns0=1";
|
|
aw = "https://wiki.archlinux.org/?search={}";
|
|
nw = "https://nixos.wiki/index.php?search={}";
|
|
g = "https://www.google.com/search?hl=en&q={}";
|
|
};
|
|
extraConfig =
|
|
''
|
|
import dracula.draw
|
|
dracula.draw.blood(c, {
|
|
'spacing': {
|
|
'vertical': 6,
|
|
'horizontal': 8
|
|
}
|
|
})
|
|
c.statusbar.padding = { 'top': 6, 'right': 8, 'bottom': 6, 'left': 8 }
|
|
c.tabs.padding = { 'top': 1, 'right': 8, 'bottom': 1, 'left': 8 }
|
|
#c.bindings = { key_mappings = ['<Ctrl+6>': '<Ctrl+^>' '<Ctrl+Enter>': '<Ctrl+Return>' '<Ctrl+j>': '<Return>' '<Ctrl+m>': '<Return>' '<Ctrl+[>': '<Escape>' '<Enter>': '<Return>' '<Shift+Enter>': '<Return>' '<Shift+Return>': '<Return>']}
|
|
'';
|
|
settings = {
|
|
auto_save = {
|
|
session = true;
|
|
};
|
|
#};
|
|
colors = {
|
|
webpage = {
|
|
bg = "#2d2d2d";
|
|
preferred_color_scheme = "dark";
|
|
darkmode = {
|
|
algorithm = "lightness-cielab";
|
|
enabled = true;
|
|
policy = {
|
|
images = "never";
|
|
page = "smart";
|
|
};
|
|
threshold = {
|
|
background = 128;
|
|
text = 128;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
completion = {
|
|
open_categories = ["quickmarks" "searchengines" "bookmarks" "history"];
|
|
};
|
|
content = {
|
|
autoplay = false;
|
|
blocking = {
|
|
adblock = {
|
|
lists = ["https://secure.fanboy.co.nz/fanboy-annoyance.txt" "https://easylist.to/easylist/easylist.txt" "https://easylist.to/easylist/easyprivacy.txt"];
|
|
};
|
|
enabled = true;
|
|
};
|
|
};
|
|
downloads = {
|
|
prevent_mixed_content = true;
|
|
};
|
|
fileselect = {
|
|
folder = {
|
|
command = ["kitty" "-e" "ranger" "--choosedir={}"];
|
|
};
|
|
handler = "external";
|
|
multiple_files = {
|
|
command = ["kitty" "-e" "ranger" "--choosefile={}"];
|
|
};
|
|
single_file = {
|
|
command = ["kitty" "-e" "ranger" "--choosefile={}"];
|
|
};
|
|
};
|
|
qt = {
|
|
args = ["widevine-path=/home/don/.config/qutebrowser/lib/libwidevinecdm.so"];
|
|
workarounds = {
|
|
remove_service_workers = true;
|
|
};
|
|
};
|
|
spellcheck = {
|
|
languages = ["en-US"];
|
|
};
|
|
statusbar = {
|
|
show = "in-mode";
|
|
};
|
|
tabs = {
|
|
favicons = {
|
|
scale = 1;
|
|
};
|
|
indicator = {
|
|
width = 1;
|
|
};
|
|
mode_on_change = "restore";
|
|
position = "bottom";
|
|
select_on_remove = "next";
|
|
show = "always";
|
|
title = {
|
|
format = "{audio}{current_title}";
|
|
};
|
|
};
|
|
url = {
|
|
default_page = "about:blank";
|
|
};
|
|
};
|
|
};
|
|
}
|