aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--qutebrowser/config.py43
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.