From 268f8543a2505183999a26ec801de091a7b8bb02 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Sat, 12 Sep 2020 17:48:02 +0200 Subject: [PATCH] qutebrowser: Add search engines, download open map Switched default search engine for my personal searx engine. Added search engine bangs for duckduckgo (ddg), man-pages (man), alternativeto.net (alt). Added key mapping to quickly open last downloaded file, especially useful for downloaded pdf documents or similar files. o will open the last file. --- qutebrowser/.config/qutebrowser/config.py | 12 ++++++++++-- qutebrowser/.config/qutebrowser/quickmarks | 1 + 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/qutebrowser/.config/qutebrowser/config.py b/qutebrowser/.config/qutebrowser/config.py index 25d9a07..5003300 100644 --- a/qutebrowser/.config/qutebrowser/config.py +++ b/qutebrowser/.config/qutebrowser/config.py @@ -44,7 +44,9 @@ js_whitelist = [ "*://old.reddit.com/*", "*://todoist.com/*", "*://toggl.com/*", + "*://clockify.me/tracker*", "*://translate.google.com/*", + "*://calendar.google.com/*", "chrome://*/*", "file://*", "qute://*/*", @@ -66,7 +68,7 @@ c.tabs.position = "right" c.tabs.width = "15%" # give the browser nice theme colors -config.source("colorscheme.py") +config.source('colorscheme.py') # Status bar # should be visible to prevent 'jumping' bug, @@ -129,6 +131,9 @@ c.aliases["printpdf"] = "spawn --userscript pagetopdf.sh" # set to gp, to mirror gd (download) just as go-Pdfdownload config.bind("gp", "printpdf", mode="normal") +# open last download +config.bind(leader + "o", "download-open") + # set stylesheets for the browser to use # leader - ss to remove all applied stylesheets config.bind( @@ -143,7 +148,8 @@ config.bind(leader + "js", "config-cycle content.javascript.enabled true false") config.bind(leader + "VV", "config-source") c.url.searchengines = { - "DEFAULT": "https://duckduckgo.com/?q={}", + "DEFAULT": "https://search.martyoeh.me/?q={}", + "ddg": "https://duckduckgo.com/?q={}", "d": "https://www.dict.cc/?s={}", "t": "https://www.thesaurus.com/browse/{}", "gt": "https://translate.google.com/#auto/de/{}", @@ -157,4 +163,6 @@ c.url.searchengines = { "yt": "https://www.youtube.com/results?search_query={}", "maps": "https://www.google.fr/maps?q={}", "gol": "https://golang.org/pkg/{}/", + "man": "https://manned.org/browse/search?q={}", + "alt": "https://alternativeto.net/software/{}", } diff --git a/qutebrowser/.config/qutebrowser/quickmarks b/qutebrowser/.config/qutebrowser/quickmarks index 9ad952b..0df2249 100644 --- a/qutebrowser/.config/qutebrowser/quickmarks +++ b/qutebrowser/.config/qutebrowser/quickmarks @@ -8,3 +8,4 @@ read https://read.martyoeh.me/ arch https://wiki.archlinux.org/ toggl https://toggl.com/app/timer clock http://clockify.me/tracker +cal https://calendar.google.com/calendar/r