home | enabled qutebrowser
This commit is contained in:
parent
86fa605b50
commit
c1a303f852
2 changed files with 56 additions and 46 deletions
|
|
@ -8,6 +8,7 @@
|
||||||
./kde.nix
|
./kde.nix
|
||||||
./mpv.nix
|
./mpv.nix
|
||||||
./redshift.nix
|
./redshift.nix
|
||||||
|
./qutebrowser.nix
|
||||||
./sway.nix
|
./sway.nix
|
||||||
./terminals.nix
|
./terminals.nix
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
{
|
{
|
||||||
programs.qutebrowser = {
|
programs.qutebrowser = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
loadAutoconfig = true;
|
||||||
keyBindings = {
|
keyBindings = {
|
||||||
normal = {
|
normal = {
|
||||||
",J" = "spawn /home/don/bin/vdi";
|
",J" = "spawn /home/don/bin/vdi";
|
||||||
|
|
@ -22,47 +23,58 @@
|
||||||
"xb" = "config-cycle statusbar.show always in-mode";
|
"xb" = "config-cycle statusbar.show always in-mode";
|
||||||
"xt" = "config-cycle tabs.show always switching";
|
"xt" = "config-cycle tabs.show always switching";
|
||||||
"xx" = "config-cycle statusbar.show always in-mode ;; config-cycle tabs.show always switching";
|
"xx" = "config-cycle statusbar.show always in-mode ;; config-cycle tabs.show always switching";
|
||||||
}l
|
};
|
||||||
};
|
};
|
||||||
searchEngines = {
|
searchEngines = {
|
||||||
w = "https://en.wikipedia.org/wiki/Special:Search?search={}&go=Go&ns0=1";
|
w = "https://en.wikipedia.org/wiki/Special:Search?search={}&go=Go&ns0=1";
|
||||||
aw = "https://wiki.archlinux.org/?search={}";
|
aw = "https://wiki.archlinux.org/?search={}";
|
||||||
nw = "https://nixos.wiki/index.php?search={}";
|
nw = "https://nixos.wiki/index.php?search={}";
|
||||||
g = "https://www.google.com/search?hl=en&q={}";
|
g = "https://www.google.com/search?hl=en&q={}";
|
||||||
};
|
};
|
||||||
settings = {
|
extraConfig =
|
||||||
auto_save = {
|
''
|
||||||
session = true;
|
import dracula.draw
|
||||||
};
|
dracula.draw.blood(c, {
|
||||||
bindings = {
|
'spacing': {
|
||||||
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>'};
|
'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 = {
|
colors = {
|
||||||
webpage = {
|
webpage = {
|
||||||
bg = '#2d2d2d';
|
bg = "#2d2d2d";
|
||||||
|
preferred_color_scheme = "dark";
|
||||||
darkmode = {
|
darkmode = {
|
||||||
algorithm = 'lightness-cielab';
|
algorithm = "lightness-cielab";
|
||||||
enabled = true;
|
enabled = true;
|
||||||
policy = {
|
policy = {
|
||||||
images = 'never';
|
images = "never";
|
||||||
page = 'smart';
|
page = "smart";
|
||||||
};
|
};
|
||||||
threshold = {
|
threshold = {
|
||||||
background = 128;
|
background = 128;
|
||||||
text = 128;
|
text = 128;
|
||||||
};
|
};
|
||||||
preferred_color_scheme = 'dark';
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
completion = {
|
completion = {
|
||||||
open_categories = ['quickmarks', 'searchengines', 'bookmarks', 'history'];
|
open_categories = ["quickmarks" "searchengines" "bookmarks" "history"];
|
||||||
};
|
};
|
||||||
content = {
|
content = {
|
||||||
autoplay = False;
|
autoplay = false;
|
||||||
blocking = {
|
blocking = {
|
||||||
adblock = {
|
adblock = {
|
||||||
lists = ['https://secure.fanboy.co.nz/fanboy-annoyance.txt','https://easylist.to/easylist/easylist.txt','https://easylist.to/easylist/easyprivacy.txt'];
|
lists = ["https://secure.fanboy.co.nz/fanboy-annoyance.txt" "https://easylist.to/easylist/easylist.txt" "https://easylist.to/easylist/easyprivacy.txt"];
|
||||||
};
|
};
|
||||||
enabled = true;
|
enabled = true;
|
||||||
};
|
};
|
||||||
|
|
@ -72,49 +84,46 @@
|
||||||
};
|
};
|
||||||
fileselect = {
|
fileselect = {
|
||||||
folder = {
|
folder = {
|
||||||
command = ['kitty', '-e', 'ranger', '--choosedir={}'];
|
command = ["kitty" "-e" "ranger" "--choosedir={}"];
|
||||||
};
|
};
|
||||||
handler = 'external';
|
handler = "external";
|
||||||
multiple_files = {
|
multiple_files = {
|
||||||
command = ['kitty', '-e', 'ranger', '--choosefile={}'];
|
command = ["kitty" "-e" "ranger" "--choosefile={}"];
|
||||||
};
|
};
|
||||||
single_file = {
|
single_file = {
|
||||||
command = ['kitty', '-e', 'ranger', '--choosefile={}'];
|
command = ["kitty" "-e" "ranger" "--choosefile={}"];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
qt = {
|
qt = {
|
||||||
args = ['widevine-path=/home/don/.config/qutebrowser/lib/libwidevinecdm.so'];
|
args = ["widevine-path=/home/don/.config/qutebrowser/lib/libwidevinecdm.so"];
|
||||||
workarounds = {
|
workarounds = {
|
||||||
remove_service_workers = true;
|
remove_service_workers = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
spellcheck = {
|
spellcheck = {
|
||||||
languages = ['en-US'];
|
languages = ["en-US"];
|
||||||
};
|
};
|
||||||
statusbar = {
|
statusbar = {
|
||||||
padding = {'top': 6, 'right': 8, 'bottom': 6, 'left': 8};
|
show = "in-mode";
|
||||||
statusbar = {
|
};
|
||||||
show = 'in-mode';
|
tabs = {
|
||||||
|
favicons = {
|
||||||
|
scale = 1;
|
||||||
};
|
};
|
||||||
tabs = {
|
indicator = {
|
||||||
favicons = {
|
width = 1;
|
||||||
scale = 1;
|
|
||||||
};
|
|
||||||
indicator = {
|
|
||||||
width = 1;
|
|
||||||
};
|
|
||||||
mode_on_change = 'restore';
|
|
||||||
padding = {'top': 1, 'right': 8, 'bottom': 1, 'left': 8};
|
|
||||||
position = 'bottom';
|
|
||||||
select_on_remove = 'next';
|
|
||||||
show = 'always';
|
|
||||||
title = {
|
|
||||||
format = '{audio}{current_title}';
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
url = {
|
mode_on_change = "restore";
|
||||||
default_page = "about:blank";
|
position = "bottom";
|
||||||
|
select_on_remove = "next";
|
||||||
|
show = "always";
|
||||||
|
title = {
|
||||||
|
format = "{audio}{current_title}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
url = {
|
||||||
|
default_page = "about:blank";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue