config.py 5.08 KB
Newer Older
uoou's avatar
brap  
uoou committed
1
2
config.load_autoconfig(False)

uoou's avatar
uoou committed
3
c.content.notifications.enabled = False
uoou's avatar
brap  
uoou committed
4
c.content.blocking.method = 'both'
uoou's avatar
brap    
uoou committed
5
c.content.blocking.adblock.lists = ['https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/filters-2020.txt', 'https://easylist.to/easylist/easylist.txt', 'https://easylist.to/easylist/easyprivacy.txt', '/home/drew/.config/qutebrowser/lol.txt']
uoou's avatar
brap  
uoou committed
6
c.content.cookies.accept = 'no-3rdparty'
uoou's avatar
uoou committed
7
8
c.content.tls.certificate_errors = 'load-insecurely'

uoou's avatar
brap  
uoou committed
9

uoou's avatar
brap    
uoou committed
10
11
# variables
darkgrey = "#030303"
uoou's avatar
uoou committed
12
lessdarkgrey = "#3e3e3e"
uoou's avatar
brap    
uoou committed
13
14
15
16
17
18
19
midgrey = "#808080"
white = "#ffffff"
magenta = "#ff009e"
cyan = "#00fff9"
yellow = "#ffdb00"
red = "#ff0000"

uoou's avatar
uoou committed
20
startpage = "file:/home/drew/Documents/begin.html"
uoou's avatar
brap  
uoou committed
21

uoou's avatar
brap    
uoou committed
22
# ui n ting
uoou's avatar
brap  
uoou committed
23
c.auto_save.session = True
uoou's avatar
brapap    
uoou committed
24
c.content.autoplay = False
uoou's avatar
lol    
uoou committed
25
c.statusbar.show = 'always'
uoou's avatar
brapap    
uoou committed
26
c.fonts.default_family = 'IBM Plex Mono'
uoou's avatar
brap    
uoou committed
27
28
29
c.fonts.default_size = "11pt"
c.messages.timeout = 5000
c.content.fullscreen.overlay_timeout = 0
uoou's avatar
brap  
uoou committed
30
31
32
c.editor.command = ['st', '-e', 'vim', '{file}', '-c', 'normal {line}G{column0}l']
c.scrolling.bar = 'never'
c.completion.open_categories = ['quickmarks', 'searchengines', 'history']
uoou's avatar
brap    
uoou committed
33
34
c.url.start_pages = startpage
c.url.default_page = startpage
uoou's avatar
brap  
uoou committed
35
c.content.fullscreen.window = True
uoou's avatar
brap    
uoou committed
36
c.spellcheck.languages = ['en-GB']
uoou's avatar
brap    
uoou committed
37
c.content.user_stylesheets = '~/.config/qutebrowser/lol.css'
uoou's avatar
uoou committed
38
c.colors.webpage.preferred_color_scheme = 'dark'
uoou's avatar
pop    
uoou committed
39
40
41
42

# tabs
c.tabs.background = True
c.tabs.last_close = 'startpage'
uoou's avatar
pop    
uoou committed
43
c.tabs.show = 'always'
uoou's avatar
uoou committed
44
c.tabs.favicons.scale = 1
uoou's avatar
brapap    
uoou committed
45
46
c.tabs.indicator.padding = {"top": 0, "right": 0, "bottom": 0, "left": 0}
c.tabs.position = "left"
uoou's avatar
uoou committed
47
48
c.tabs.title.format = '{index}'
c.tabs.width = 49
uoou's avatar
brapap    
uoou committed
49
c.tabs.indicator.width = 0
uoou's avatar
uoou committed
50
c.tabs.padding = {"top": 2, "right": 2, "bottom": 2, "left": 5}
uoou's avatar
brap  
uoou committed
51
52
53
54


# keys
config.bind('<Ctrl-e>', 'open-editor')
uoou's avatar
brap    
uoou committed
55
56
config.bind('M', 'spawn mpv --volume=50 {url}')
config.bind('<Ctrl-m>', 'hint links spawn mpv --volume=50 {hint-url}')
uoou's avatar
brapap    
uoou committed
57
config.bind('zp', 'spawn --userscript ~/.config/qutebrowser/password_fill')
uoou's avatar
pop    
uoou committed
58
config.bind('<Ctrl-s>', 'config-cycle -t tabs.show always never')
uoou's avatar
brapap    
uoou committed
59
config.bind('b', 'config-cycle -t statusbar.show always never')
uoou's avatar
brapap    
uoou committed
60
config.bind('zi', 'hint inputs')
uoou's avatar
brapap    
uoou committed
61
62
config.bind('<Ctrl-Shift-f>', 'hint links tab-fg')
config.bind('E', 'config-edit')
uoou's avatar
uoou committed
63
config.bind('e', 'set-cmd-text -s :tab-select')
uoou's avatar
brap  
uoou committed
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86

# search
c.url.open_base_url = True
c.url.searchengines = {
"DEFAULT": "https://www.google.co.uk/search?&q={}",
"gg": "https://www.google.co.uk/search?&q={}",
"ggi": "https://www.google.co.uk/search?q={}&tbm=isch",
"w": "https://en.wikipedia.org/w/index.php?search={}",
"st": "http://store.steampowered.com/search/?term={}",
"g": "https://duckduckgo.com/?q={}",
"mw": "http://en.uesp.net/w/index.php?title=Special%3ASearch&search={}",
"aur": "https://aur.archlinux.org/packages/?O=0&K={}",
"pac": "https://www.archlinux.org/packages/?sort=&arch=x86_64&maintainer=&flagged=&q={}",
"nh": "https://nethackwiki.com/wiki/index.php?search={}",
"aw": "https://wiki.archlinux.org/index.php?title=Special%3ASearch&search={}",
"gw": "https://wiki.gentoo.org/index.php?title=Special%3ASearch&search={}&go=Go",
"i": "http://www.imdb.com/find?ref_=nv_sr_fn&s=all&q={}",
"dick": "https://en.wiktionary.org/wiki/{}",
"ety": "http://www.etymonline.com/index.php?allowed_in_frame=0&search={}",
"u": "http://www.urbandictionary.com/define.php?term={}",
"y": "https://www.youtube.com/results?search_query={}",
"r": "https://old.reddit.com/r/{}/new/",
"it": "https://itch.io/search?q={}",
uoou's avatar
brapap    
uoou committed
87
"tpb": "https://www.magnetdl.com/search/?m=1&q={}",
uoou's avatar
brap  
uoou committed
88
89
90
91
"gi": "https://duckduckgo.com/?q={}&iar=images",
"p": "https://www.protondb.com/search?q={}",
"a": "https://smile.amazon.co.uk/s/?url=search-alias&field-keywords={}",
"gt": "https://translate.google.com/#view=home&op=translate&sl=auto&tl=en&text={}",
uoou's avatar
doots    
uoou committed
92
93
"tr": "https://translate.google.com/#view=home&op=translate&sl=en&tl=ru&text={}",
"fr": "https://translate.google.com/#view=home&op=translate&sl=ru&tl=en&text={}",
uoou's avatar
brapap    
uoou committed
94
"rt": "https://www.rottentomatoes.com/search?search={}",
uoou's avatar
brap  
uoou committed
95
96
}

uoou's avatar
brap    
uoou committed
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# styling
c.colors.completion.category.bg = darkgrey
c.colors.completion.category.border.bottom = white
c.colors.completion.category.border.top = darkgrey
c.colors.completion.category.fg = white
c.colors.completion.even.bg = darkgrey
c.colors.completion.odd.bg = darkgrey
c.colors.completion.fg = white
c.colors.completion.item.selected.border.bottom = darkgrey
c.colors.completion.item.selected.border.top = darkgrey
c.colors.completion.item.selected.bg = cyan
c.colors.completion.item.selected.fg = darkgrey
c.colors.completion.item.selected.match.fg = magenta
c.colors.completion.match.fg = magenta 

c.completion.scrollbar.width = 0

c.colors.contextmenu.menu.bg =  darkgrey
c.colors.contextmenu.menu.fg =  white
c.colors.contextmenu.disabled.bg = darkgrey 
c.colors.contextmenu.disabled.fg = midgrey
c.colors.contextmenu.selected.bg = cyan
c.colors.contextmenu.selected.fg = darkgrey

c.colors.hints.bg = yellow
c.colors.hints.fg =  darkgrey
c.colors.hints.match.fg = red
uoou's avatar
brapap    
uoou committed
124
125
126
127
128
129

c.colors.tabs.bar.bg = darkgrey
c.colors.tabs.even.bg = darkgrey
c.colors.tabs.odd.bg = darkgrey
c.colors.tabs.selected.even.fg = magenta
c.colors.tabs.selected.odd.fg = magenta
uoou's avatar
brapap    
uoou committed
130
131
c.colors.tabs.selected.even.bg = lessdarkgrey
c.colors.tabs.selected.odd.bg = lessdarkgrey
uoou's avatar
pop    
uoou committed
132
133

c.content.cache.size = 0