diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2021-02-23 18:25:38 +0100 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2021-02-23 18:25:38 +0100 |
| commit | 4df695aec1a951d2542654c6aab799f7486f2395 (patch) | |
| tree | a6626b6a3151dee118132445f7a2167885db3ea3 | |
| parent | 33788846e2662d0bf792401fd770fe5d738e60af (diff) | |
| download | dotfiles-4df695aec1a951d2542654c6aab799f7486f2395.tar.gz dotfiles-4df695aec1a951d2542654c6aab799f7486f2395.tar.bz2 dotfiles-4df695aec1a951d2542654c6aab799f7486f2395.zip | |
Changed qutebrowser download dir to ~/downloads
| -rw-r--r-- | qutebrowser/config.py | 43 |
1 files changed, 26 insertions, 17 deletions
diff --git a/qutebrowser/config.py b/qutebrowser/config.py index 827d2eb..bcbdc5a 100644 --- a/qutebrowser/config.py +++ b/qutebrowser/config.py @@ -1,3 +1,5 @@ +import os + from qutebrowser.api import interceptor config.load_autoconfig(True) @@ -63,31 +65,38 @@ c.colors.webpage.bg = 'black' # Disabling white flash before page lo # c.content.proxy = 'socks://localhost:9050/' # tor c.content.autoplay = False c.content.notifications = False -c.content.cookies.accept = 'no-3rdparty' +#c.content.cookies.accept = 'no-3rdparty' c.auto_save.session = True c.session.lazy_restore = True +home_path = os.environ.get('HOME') +if home_path is not None: + download_path = os.path.join(home_path, "downloads") + if not os.path.exists(download_path): + os.mkdir(download_path) + c.downloads.location.directory = download_path +c.downloads.remove_finished = 5000 # base16-qutebrowser (https://github.com/theova/base16-qutebrowser) # Base16 qutebrowser template by theova # Solarized Dark scheme by Ethan Schoonover (modified by aramisgithub) -base00 = "#002b36" -base01 = "#073642" -base02 = "#586e75" -base03 = "#657b83" -base04 = "#839496" -base05 = "#93a1a1" -base06 = "#eee8d5" -base07 = "#fdf6e3" -base08 = "#dc322f" -base09 = "#cb4b16" -base0A = "#b58900" -base0B = "#859900" -base0C = "#2aa198" -base0D = "#268bd2" -base0E = "#6c71c4" -base0F = "#d33682" +base00 = '#002b36' +base01 = '#073642' +base02 = '#586e75' +base03 = '#657b83' +base04 = '#839496' +base05 = '#93a1a1' +base06 = '#eee8d5' +base07 = '#fdf6e3' +base08 = '#dc322f' +base09 = '#cb4b16' +base0A = '#b58900' +base0B = '#859900' +base0C = '#2aa198' +base0D = '#268bd2' +base0E = '#6c71c4' +base0F = '#d33682' # set qutebrowser colors # Text color of the completion widget. May be a single color to use for # all columns or a list of three colors, one for each column. |
