nix: Add qutebrowser

This commit is contained in:
Geoffrey Frogeye 2023-11-19 23:09:10 +01:00
parent fe1303ccc9
commit dfb47f17f5
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8
3 changed files with 53 additions and 82 deletions

View file

@ -329,7 +329,59 @@
programs = {
# Browser
qutebrowser.enable = true;
qutebrowser = {
enable = true;
keyBindings = {
normal = {
# Match tab behaviour to i3. Not that I use them.
"H" = "tab-prev";
"J" = "back";
"K" = "forward";
"L" = "tab-next";
# "T" = null;
"af" = "spawn --userscript freshrss"; # TODO Broken?
"as" = "spawn --userscript shaarli"; # TODO I don't use shaarli anymore
# "d" = null;
"u" = "undo --window";
# TODO Unbind d and T (?)
};
};
loadAutoconfig = true; # FIXME Salvage stuff from autoconfig.yml
searchEngines = rec {
DEFAULT = ecosia;
ampwhat = "http://www.amp-what.com/unicode/search/{}";
aw = ampwhat;
ddg = duckduckgo;
duckduckgo = "https://duckduckgo.com/?q={}&ia=web";
ecosia = "https://www.ecosia.org/search?q={}";
github = "https://github.com/search?q={}";
google = "https://www.google.fr/search?q={}";
g = google;
npm = "https://www.npmjs.com/search?q={}";
q = qwant;
qwant = "https://www.qwant.com/?t=web&q={}";
wolfram = "https://www.wolframalpha.com/input/?i={}";
youtube = "https://www.youtube.com/results?search_query={}";
yt = youtube;
};
settings = {
downloads.location.prompt = false;
tabs = {
show = "never";
tabs_are_windows = true;
};
url = {
open_base_url = true;
start_pages = "https://geoffrey.frogeye.fr/blank.html";
};
content = {
# I had this setting below, not sure if it did something special
# config.set("content.cookies.accept", "no-3rdparty", "chrome://*/*")
cookies.accept = "no-3rdparty";
prefers_reduced_motion = true;
};
};
};
# Terminal
alacritty = {