aboutsummaryrefslogtreecommitdiffstats
path: root/.config/qutebrowser/config.py
blob: 009509b31d7234226f9ed670d4f76a4512f7d280 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# config.py for Qutebrowser
import os
import tempfile

# Create a temporary directory for qutebrowser to use
temp_dir = tempfile.mkdtemp()

# Set the cache and config directories to the temporary directory
config.cache_dir = os.path.join(temp_dir, 'cache')
config.config_dir = os.path.join(temp_dir, 'config')

# Disable autoconfig loading
config.load_autoconfig(False)
# Load the autoconfig
# config.load_autoconfig()

# Set the start page (default homepage)
c.url.start_pages = ['https://gpt.cloudforces.top', #GPT
                     'https://searx.bndkt.io',  # Search engine
                     'https://web.whatsapp.com', # Research
                     'https://youtube.com', # Videos
                     'https://codeberg.org', # Programming
                     'https://git.ajattix.org'] # Code
# Enable ad blocking with uBlock Origin (set as a hint)
c.content.blocking.enabled = True  # Enable content blocking

# Automatically run the function when Qutebrowser starts
config.bind('startup', 'py:open_new_tabs_on_startup()')

# Set the URL to open in a new tab (example)
c.url.open_base_url = True
c.url.auto_search = 'never'

# Specify the editor command (using x-terminal-emulator and vim)
c.editor.command = ['x-terminal-emulator', '-e', 'vim "{}"']

# Enable dark mode for webpages
c.colors.webpage.darkmode.enabled = True

# Configure font settings
c.fonts.default_family = 'Iosevka'  # Set to your preferred font
#c.fonts.default_size = '12pt'  # Set a default font size to '12pt' (string)
c.fonts.web.family.fixed = 'Iosevka'  # Set fixed-width font for web content
#c.fonts.web.size.default = '12pt'  # Default web font size also set to '12pt' (string)

# Rendering settings for hints
c.hints.border = '1px solid rgba(255, 255, 255, 0.5)'  # Make hints visible (example color)
c.fonts.hints = 'bold'  # Make hints bold for better visibility
#c.fonts.hints.size = '10pt'  # Set hint font size (string)
c.fonts.web.family.standard = 'iosevka'  # Default sans-serif font family

# Enable subpixel antialiasing if supported by the system
#c.fonts.subpixel_antialiasing = True  # Use subpixel antialiasing for fonts

# Adjust zoom levels for high DPI displays
c.zoom.default = '100%'  # Set default zoom level

# Set a full black theme
c.colors.webpage.bg = '#000000'  # Background color for webpages
#c.colors.webpage.fg = '#FFFFFF'  # Foreground color for webpages (text color)
c.colors.webpage.darkmode.enabled = True  # Ensure dark mode is enabled

# Default keybinds for common actions
# Open a new tab
config.bind('<Ctrl+t>', 'open -t')
# Reload the page
config.bind('r', 'reload')
# Close the current tab
config.bind('d', 'tab-close')
# Open a link in a new tab
config.bind('f', 'open -t')
# Go back
config.bind('H', 'back')
# Go forward
config.bind('L', 'forward')
# Open downloads page
config.bind('d', 'download')  # Double bind, could change it to your preference
# Tab kill
config.bind('<Ctrl+f>', 'tab-close')
config.set('tabs.show', 'never')
config.set('statusbar.show', 'never')

# Set cache size for content only
c.content.cache.size = 0  # Disable content cache
# Enable session saving features
c.auto_save.session = False
config.bind('<Ctrl+f>', 'open -t https://searx.bndkt.io/')
config.bind('<Ctrl+g>', 'open -t https://gpt.cloudforces.top')
config.bind('<Ctrl+b>', 'open -t https://www.google.com')
config.bind('<Ctrl+d>', 'open -t https://youtube.com')
config.bind('<Ctrl+x>', 'open -t https://codeberg.org')
config.bind('<Ctrl+a>', 'open -t https://ajattix.org')