diff options
Diffstat (limited to '.config')
-rw-r--r-- | .config/qutebrowser/config.py | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/.config/qutebrowser/config.py b/.config/qutebrowser/config.py new file mode 100644 index 0000000..009509b --- /dev/null +++ b/.config/qutebrowser/config.py @@ -0,0 +1,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') |