diff options
Diffstat (limited to '.config/qutebrowser/config.py')
-rw-r--r-- | .config/qutebrowser/config.py | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/.config/qutebrowser/config.py b/.config/qutebrowser/config.py index 273883d..c0b35bf 100644 --- a/.config/qutebrowser/config.py +++ b/.config/qutebrowser/config.py @@ -2,7 +2,7 @@ import os ## In v2.0.0+, one of the following two lines is REQUIRED # config.load_autoconfig(False) config.load_autoconfig(True) - +os.environ['QT_QPA_PLATFORMTHEME'] = 'kde' c.content.cookies.accept = "no-3rdparty" c.content.cookies.store = True c.content.dns_prefetch = False @@ -22,7 +22,7 @@ c.spellcheck.languages = ["en-US"] c.auto_save.session = True ## Display PDFs within qutebrowser -c.content.pdfjs = True +c.content.pdfjs = False c.scrolling.bar = 'always' @@ -52,19 +52,28 @@ c.url.searchengines['w'] = 'https://www.google.com/search?q={}+site%3Awired.com' c.url.searchengines['e'] = 'https://duckduckgo.com/?q={}+site%3Ahttps%3A%2F%2Fwww.elliotoracle.com%2Fblog%2F&t=fpas&ia=web' # fuck new reddit -config.bind (',r2o', 'open https://old.reddit.com/{url:path}') +config.bind (',2o', 'open https://old.reddit.com/{url:path}') # aliases c.aliases['lux'] = 'open -t https://luxagraf.net/' c.aliases['live'] = 'open -t https://live.luxagraf.net/' c.aliases['ad'] = 'open -t https://live.luxagraf.net/admin/' +# + +c.fileselect.handler = 'external' +c.fileselect.folder.command = ['urxvt', '-e', 'lfrun', '--choosedir={}'] +c.fileselect.multiple_files.command = ['urxvt', '-e', 'sh -c "lfrun"', '--choosefiles={}'] +#c.fileselect.single_file.command = ['kitty', '-e', 'vifm', '--choose-files={}'] +c.fileselect.single_file.command = ['kitty', "-e", "lfrun", "-selection-path", "{}"] +#c.fileselect.single_file.command = ["kitty", "-e", "ranger", "--choosefiles={}"] + # block JS out of the box: c.content.javascript.enabled = False #enable JS for approved sites js_whitelist = [] -whitelist = os.path.expanduser("~/.config/qutebrowser/js-whitelist") +whitelist = os.path.expanduser("~/.config/qutebrowser/js_whitelist") if os.path.exists(whitelist): with open(whitelist) as f: js_whitelist += filter(lambda l: bool(l), f.read().split("\n")) @@ -83,12 +92,11 @@ config.bind('K', 'tab-next', mode='normal') # Userscripts # search history/bookmarks in dmenu -config.bind (',m', 'spawn --userscript dmenu_qutebrowser ', mode='normal') -config.bind (',o', 'spawn --userscript dmenu_qutebrowser ', mode='normal') -config.bind (',O', 'spawn --userscript dmenu_qutebrowser --tab', mode='normal') +config.bind (',o', 'spawn --userscript dmenu_qutebrowser --tab', mode='normal') +config.bind (',O', 'spawn --userscript dmenu_qutebrowser ', mode='normal') # call readability on page -config.bind (',r', 'spawn --userscript readability', mode='normal') +config.bind (',r', 'spawn --userscript readabilitycustom', mode='normal') #download current or hinted video config.bind(';y', 'spawn --userscript youtube-dl') @@ -103,7 +111,7 @@ config.bind(',ys', 'spawn --userscript youtube-dl') config.bind (',f', 'open {primary}') config.bind (',F', 'open --tab {primary}') -config.bind (',e', 'open-editor') +config.bind (',e', 'edit-text') # save bookmark to luxagraf config.bind(',s', "jseval --quiet if(document.getSelection){s=document.getSelection();}else{s='';};document.location='https://live.luxagraf.net/admin/links/link/add?&url='+encodeURIComponent(location.href)+'&description='+encodeURIComponent(s)+'&title='+encodeURIComponent(document.title);") |