From: Andre Ramnitz Date: Sat, 16 May 2026 04:57:09 +0000 (+0200) Subject: qutebrowser: initial noctalia theme [WIP] X-Git-Url: https://git.ramnitz.eu/?a=commitdiff_plain;h=9d214002b406d73111a15db9e65f2b4fef6e075f;p=dotfiles.git qutebrowser: initial noctalia theme [WIP] --- diff --git a/dot-config/qutebrowser/config.py b/dot-config/qutebrowser/config.py index 0d79202f..e4071423 100644 --- a/dot-config/qutebrowser/config.py +++ b/dot-config/qutebrowser/config.py @@ -80,21 +80,21 @@ c.backend = 'webengine' # - qt-quick: Tell Qt Quick to use a software renderer instead of OpenGL. (`QT_QUICK_BACKEND=software`) # - chromium: Tell Chromium to disable GPU support and use Skia software rendering instead. (`--disable-gpu`) # - none: Don't force software rendering. -c.qt.force_software_rendering = 'none' -c.qt.workarounds.disable_accelerated_2d_canvas = 'never' +# c.qt.force_software_rendering = 'none' +# c.qt.workarounds.disable_accelerated_2d_canvas = 'never' # Force a Qt platform to use. This sets the `QT_QPA_PLATFORM` # environment variable and is useful to force using the XCB plugin when # running QtWebEngine on Wayland. # Type: String -c.qt.force_platform = None +# c.qt.force_platform = None # Force a Qt platformtheme to use. This sets the `QT_QPA_PLATFORMTHEME` # environment variable which controls dialogs like the filepicker. By # default, Qt determines the platform theme based on the desktop # environment. # Type: String -c.qt.force_platformtheme = 'qt6ct' +# c.qt.force_platformtheme = 'qt6ct' # Which Chromium process model to use. Alternative process models use # less resources, but decrease security and robustness. See the @@ -224,7 +224,7 @@ c.content.fullscreen.window = True # Try to pre-fetch DNS entries to speed up browsing. # Type: Bool -c.content.dns_prefetch = False +c.content.dns_prefetch = True # Allow websites to request geolocations. # Type: BoolAsk @@ -233,13 +233,6 @@ c.content.dns_prefetch = False # - false # - ask config.set('content.geolocation', False, 'https://www.clubderdampfer.de') - -# Allow websites to request geolocations. -# Type: BoolAsk -# Valid values: -# - true -# - false -# - ask config.set('content.geolocation', False, 'https://www.r-m.de') # Value to send in the `Accept-Language` header. Note that the value @@ -272,7 +265,7 @@ c.content.headers.do_not_track = False # between 5.12 and 5.14 (inclusive), changing the value exposed to # JavaScript requires a restart. # Type: FormatString -config.set('content.headers.user_agent', 'Mozilla/5.0 ({os_info}) AppleWebKit/{webkit_version} (KHTML, like Gecko) {upstream_browser_key}/{upstream_browser_version} Safari/{webkit_version}', 'https://web.whatsapp.com/') +# config.set('content.headers.user_agent', 'Mozilla/5.0 ({os_info}) AppleWebKit/{webkit_version} (KHTML, like Gecko) {upstream_browser_key}/{upstream_browser_version} Safari/{webkit_version}', 'https://web.whatsapp.com/') # User agent to send. The following placeholders are defined: * # `{os_info}`: Something like "X11; Linux x86_64". * `{webkit_version}`: @@ -584,7 +577,7 @@ c.scrolling.bar = 'overlay' # Enable smooth scrolling for web pages. Note smooth scrolling does not # work with the `:scroll-px` command. # Type: Bool -c.scrolling.smooth = True +c.scrolling.smooth = False # When to show the statusbar. # Type: String @@ -727,7 +720,7 @@ c.zoom.default = '123%' # Number of zoom increments to divide the mouse wheel movements to. # Type: Int -c.zoom.mouse_divider = 1024 +# c.zoom.mouse_divider = 1000 # Render all web contents using a dark theme. Example configurations # from Chromium's `chrome://flags`: - "With simple HSL/CIELAB/RGB-based @@ -747,31 +740,31 @@ c.colors.webpage.darkmode.enabled = False # font setting, it's replaced with the fonts listed here. If set to an # empty value, a system-specific monospace default is used. # Type: List of Font, or Font -c.fonts.default_family = '11pt SF Mono' +c.fonts.default_family = 'ZedMono NFP' # Default font size to use. Whenever "default_size" is used in a font # setting, it's replaced with the size listed here. Valid values are # either a float value with a "pt" suffix, or an integer value with a # "px" suffix. # Type: String -c.fonts.default_size = '11pt' +c.fonts.default_size = '16px' # Font used in the completion widget. # Type: Font -c.fonts.completion.entry = '11pt SF Mono' +c.fonts.completion.entry = 'default_size ZedMono NFP' # Font used in the completion categories. # Type: Font -c.fonts.completion.category = 'bold 11pt SF Mono' +c.fonts.completion.category = 'bold default_size ZedMono NFP' # Font used for tooltips. If set to null, the Qt default is used. # Type: Font -c.fonts.tooltip = '11pt SF Mono' +c.fonts.tooltip = 'default_size ZedMono NFP' # Font used for the context menu. If set to null, the Qt default is # used. # Type: Font -c.fonts.contextmenu = '11pt SF Mono' +c.fonts.contextmenu = 'default_size ZedMono NFP' # Font used for the debugging console. # Type: Font @@ -779,43 +772,43 @@ c.fonts.debug_console = 'default_size default_family' # Font used for the downloadbar. # Type: Font -c.fonts.downloads = '11pt SF Mono' +c.fonts.downloads = 'default_size ZedMono NFP' # Font used for the hints. # Type: Font -c.fonts.hints = 'bold 11pt SF Mono' +c.fonts.hints = 'bold default_size ZedMono NFP' # Font used in the keyhint widget. # Type: Font -c.fonts.keyhint = '11pt SF Mono' +c.fonts.keyhint = 'default_size ZedMono NFP' # Font used for error messages. # Type: Font -c.fonts.messages.error = '11pt SF Mono' +c.fonts.messages.error = 'default_size ZedMono NFP' # Font used for info messages. # Type: Font -c.fonts.messages.info = '11pt SF Mono' +c.fonts.messages.info = 'default_size ZedMono NFP' # Font used for warning messages. # Type: Font -c.fonts.messages.warning = '11pt SF Mono' +c.fonts.messages.warning = 'default_size ZedMono NFP' # Font used for prompts. # Type: Font -c.fonts.prompts = '11pt SF Mono' +c.fonts.prompts = 'default_size ZedMono NFP' # Font used in the statusbar. # Type: Font -c.fonts.statusbar = '11pt SF Mono' +c.fonts.statusbar = 'default_size ZedMono NFP' # Font used for selected tabs. # Type: Font -c.fonts.tabs.selected = '11pt SF Mono' +c.fonts.tabs.selected = 'default_size ZedMono NFP' # Font used for unselected tabs. # Type: Font -c.fonts.tabs.unselected = '11pt SF Mono' +c.fonts.tabs.unselected = 'default_size ZedMono NFP' # Font family for standard fonts. # Type: FontFamily @@ -839,7 +832,7 @@ c.fonts.web.family.cursive = 'sans italic' # Font family for fantasy fonts. # Type: FontFamily -c.fonts.web.family.fantasy = 'Comic Sans MS' +c.fonts.web.family.fantasy = 'FantasqueSansM Nerd Font' # Default font size (in pixels) for regular text. # Type: Int @@ -858,17 +851,18 @@ c.fonts.web.size.minimum = 6 # Type: Int c.fonts.web.size.minimum_logical = 7 -c.url.searchengines = {"DEFAULT": "https://duckduckgo.com/?q={}","pkg": "https://packages.gentoo.org/packages/search?q={}","ddg": "https://duckduckgo.com/?q={}","eco": "https://www.ecosia.org/search?method=index&q={}"} +c.url.searchengines = {"DEFAULT": "https://www.ecosia.org/search?method=index&q={},","ddg": "https://duckduckgo.com/?q={}","pkg": "https://packages.gentoo.org/packages/search?q={}","ddg": "https://duckduckgo.com/?q={}"} # Bindings for normal mode config.unbind('+') config.unbind('q') -config.bind('q', 'spawn --userscript dmenu_qutebrowser') -config.bind('Q', 'spawn --userscript qr') +config.bind('A', 'spawn --userscript add-nextcloud-bookmarks') +config.bind('q', 'spawn --userscript qr') +config.bind('Q', 'spawn --userscript password_fill') config.bind('j', 'cmd-run-with-count 3 scroll down') config.bind('k', 'cmd-run-with-count 3 scroll up') -config.bind(',M', 'hint links spawn vlc {hint-url}') -config.bind(',m', 'spawn vlc {url}') +config.bind(',m', 'hint links spawn mpv {hint-url}') +config.bind(',M', 'spawn mpv {url}') config.unbind('-') config.bind('', 'home') config.bind('', 'zoom-in') @@ -913,8 +907,8 @@ config.bind('td', 'set colors.webpage.darkmode.enabled true') config.bind('tD', 'set colors.webpage.darkmode.enabled false') # Bindings for insert mode -config.bind('', 'spawn --userscript qute-keepassxc --key 285D16B66B11BD45BFD57B6CB22C3113D0E83104', mode='insert') +# config.bind('', '', mode='insert') # set qutebrowser colors -config.source('matugen-wrapper.py') +config.source('noctalia-theme.py') diff --git a/dot-config/qutebrowser/greasemonkey/mouse-wheel.user.js b/dot-config/qutebrowser/greasemonkey/mouse-wheel.user.js index 5ff1c5b2..32962ba9 100644 --- a/dot-config/qutebrowser/greasemonkey/mouse-wheel.user.js +++ b/dot-config/qutebrowser/greasemonkey/mouse-wheel.user.js @@ -12,8 +12,8 @@ // // - Adam Nelson -const MULTIPLIER_X = 30; -const MULTIPLIER_Y = 30; +const MULTIPLIER_X = 25; +const MULTIPLIER_Y = 25; function speedUp(ev) { if (!ev.isTrusted) return true; // Prevent recursion. diff --git a/dot-config/qutebrowser/noctalia-theme.py b/dot-config/qutebrowser/noctalia-theme.py new file mode 100644 index 00000000..69eaeb4e --- /dev/null +++ b/dot-config/qutebrowser/noctalia-theme.py @@ -0,0 +1,281 @@ +# Noctalia template for qutebrowser by freerunner + + +# Colors should be in 6 or 2 character hexadecimal or single spaced rgb decimal: "#RRGGBB", "#BW" or "0_255 0_255 0_255" +# example for white: "#ffffff", "#ff" or "255 255 255". + + +# 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. +c.colors.completion.fg = "#eceff4" + +# Background color of the completion widget for odd rows. +c.colors.completion.odd.bg = "#2e3440" + +# Background color of the completion widget for even rows. +c.colors.completion.even.bg = "#2e3440" + +# Foreground color of completion widget category headers. +c.colors.completion.category.fg = "#2e3440" + +# Background color of the completion widget category headers. +c.colors.completion.category.bg = "#8fbcbb" + +# Top border color of the completion widget category headers. +c.colors.completion.category.border.top = "#707d99" + +# Bottom border color of the completion widget category headers. +c.colors.completion.category.border.bottom = "#707d99" + +# Foreground color of the selected completion item. +c.colors.completion.item.selected.fg = "#2e3440" + +# Background color of the selected completion item. +c.colors.completion.item.selected.bg = "#88c0d0" + +# Top border color of the selected completion item. +c.colors.completion.item.selected.border.top = "#707d99" + +# Bottom border color of the selected completion item. +c.colors.completion.item.selected.border.bottom = "#707d99" + +# Foreground color of the matched text in the selected completion item. +c.colors.completion.item.selected.match.fg = "#5e81ac" + +# Foreground color of the matched text in the completion. +c.colors.completion.match.fg = "#5e81ac" + +# Color of the scrollbar handle in the completion view. +c.colors.completion.scrollbar.fg = "#8fbcbb" + +# Color of the scrollbar in the completion view. +c.colors.completion.scrollbar.bg = "#2e6b69" + +# Background color of disabled items in the context menu. +c.colors.contextmenu.disabled.bg = "#2e3440" + +# Foreground color of disabled items in the context menu. +c.colors.contextmenu.disabled.fg = "#2e3440" + +# Background color of the context menu. If set to null, the Qt dark is used. +c.colors.contextmenu.menu.bg = "#2e3440" + +# Foreground color of the context menu. If set to null, the Qt dark is used. +c.colors.contextmenu.menu.fg = "#eceff4" + +# Background color of the context menu’s selected item. If set to null, the Qt dark is used. +c.colors.contextmenu.selected.bg = "#8fbcbb" + +#Foreground color of the context menu’s selected item. If set to null, the Qt dark is used. +c.colors.contextmenu.selected.fg = "#2e3440" + +# Background color for the download bar. +c.colors.downloads.bar.bg = "#000000" + +# Color gradient start for download text. +c.colors.downloads.start.fg = "#2e3440" + +# Color gradient start for download "Yellow". +c.colors.downloads.start.bg = "#5e81ac" + +# Color gradient end for download text. +c.colors.downloads.stop.fg = "#2e3440" + +# Color gradient stop for download "Green". +c.colors.downloads.stop.bg = "#8fbcbb" + +# Foreground color for downloads with errors "Red". +c.colors.downloads.error.fg = "#bf616a" + +# Font color for hints. +c.colors.hints.fg = "#daecf1" + +# Background color for hints. Note that you can use a `rgba(...)` value for transparency. +c.colors.hints.bg = "#226e83" + +# Font color for the matched part of hints. +c.colors.hints.match.fg = "#339997" + +# Text color for the keyhint widget. +c.colors.keyhint.fg = "#eceff4" + +# Highlight color for keys to complete the current keychain. +c.colors.keyhint.suffix.fg = "#eceff4" + +# Background color of the keyhint widget. +c.colors.keyhint.bg = "#2e3440" + +# Foreground color of an error message. +c.colors.messages.error.fg = "#2e3440" + +# Background color of an error message. +c.colors.messages.error.bg = "#bf616a" + +# Border color of an error message. +c.colors.messages.error.border = "#4e586e" + +# Foreground color of a warning message. +c.colors.messages.warning.fg = "#2e3440" + +# Background color of a warning message. +c.colors.messages.warning.bg = "#000000" + +# Border color of a warning message. +c.colors.messages.warning.border = "#4e586e" + +# Foreground color of an info message. +c.colors.messages.info.fg = "#eceff4" + +# Background color of an info message. +c.colors.messages.info.bg = "#2e3440" + +# Border color of an info message. +c.colors.messages.info.border = "#4e586e" + +# Foreground color for prompts. +c.colors.prompts.fg = "#2e3440" + +# Border used around UI elements in prompts. +c.colors.prompts.border = "#707d99" + +# Background color for prompts. +c.colors.prompts.bg = "#8fbcbb" + +# Background color for the selected item in filename prompts. +c.colors.prompts.selected.bg = "#2e3440" + +# Foreground color for the selected item in filename prompts. +c.colors.prompts.selected.fg = "#eceff4" + +# Foreground color of the statusbar. +c.colors.statusbar.normal.fg = "#eceff4" + +# Background color of the statusbar. +c.colors.statusbar.normal.bg = "#2e3440" + +# Foreground color of the statusbar in insert mode. +c.colors.statusbar.insert.fg = "#2e3440" + +# Background color of the statusbar in insert mode. +c.colors.statusbar.insert.bg = "#8fbcbb" + +# Foreground color of the statusbar in passthrough mode. +c.colors.statusbar.passthrough.fg = "#2e3440" + +# Background color of the statusbar in passthrough mode. +c.colors.statusbar.passthrough.bg = "#88c0d0" + +# Foreground color of the statusbar in private browsing mode. +c.colors.statusbar.private.fg = "#2e3440" + +# Background color of the statusbar in private browsing mode. +c.colors.statusbar.private.bg = "#5e81ac" + +# Foreground color of the statusbar in command mode. +c.colors.statusbar.command.fg = "#d8dee9" + +# Background color of the statusbar in command mode. +c.colors.statusbar.command.bg = "#3b4252" + +# Foreground color of the statusbar in private browsing + command mode. +c.colors.statusbar.command.private.fg = "#d8dee9" + +# Background color of the statusbar in private browsing + command mode. +c.colors.statusbar.command.private.bg = "#3b4252" + +# Foreground color of the statusbar in caret mode. +c.colors.statusbar.caret.fg = "#2e6b69" + +# Background color of the statusbar in caret mode. +c.colors.statusbar.caret.bg = "#dfecec" + +# Foreground color of the statusbar in caret mode with a selection. +c.colors.statusbar.caret.selection.fg = "#2e3440" + +# Background color of the statusbar in caret mode with a selection. +c.colors.statusbar.caret.selection.bg = "#dde5ee" + +# Background color of the progress bar. +c.colors.statusbar.progress.bg = "#8fbcbb" + +# Default color of the URL in the statusbar." +c.colors.statusbar.url.fg = "#226e83" + +# Foreground color of the URL in the statusbar on error. +c.colors.statusbar.url.error.fg = "#bf616a" + +# Foreground color of the URL in the statusbar for hovered links. +c.colors.statusbar.url.hover.fg = "#8fbcbb" + +# Foreground color of the URL in the statusbar on successful load +# (http). +c.colors.statusbar.url.success.http.fg = "#88c0d0" + +# Foreground color of the URL in the statusbar on successful load +# (https). +c.colors.statusbar.url.success.https.fg = "#88c0d0" + +# Foreground color of the URL in the statusbar when there's a warning. +c.colors.statusbar.url.warn.fg = "#bf616a" + +# Background color of the tab bar. +c.colors.tabs.bar.bg = "#2e3440" + +# Color gradient start for the tab indicator. +c.colors.tabs.indicator.start = "#226e83" + +# Color gradient end for the tab indicator. +c.colors.tabs.indicator.stop = "#2e6b69" + +# Color for the tab indicator on errors. +c.colors.tabs.indicator.error = "#bf616a" + +# Foreground color of unselected odd tabs. +c.colors.tabs.odd.fg = "#eceff4" + +# Background color of unselected odd tabs. +c.colors.tabs.odd.bg = "#2e3440" + +# Foreground color of unselected even tabs. +c.colors.tabs.even.fg = "#eceff4" + +# Background color of unselected even tabs. +c.colors.tabs.even.bg = "#3b4252" + +# Foreground color of selected odd tabs. +c.colors.tabs.selected.odd.fg = "#2e3440" + +# Background color of selected odd tabs. +c.colors.tabs.selected.odd.bg = "#88c0d0" + +# Foreground color of selected even tabs. +c.colors.tabs.selected.even.fg = "#2e3440" + +# Background color of selected even tabs. +c.colors.tabs.selected.even.bg = "#88c0d0" + +# Background color of pinned unselected even tabs. +c.colors.tabs.pinned.even.bg = "#3b4252" + +# Foreground color of pinned unselected even tabs. +c.colors.tabs.pinned.even.fg = "#88c0d0" + +# Background color of pinned unselected odd tabs. +c.colors.tabs.pinned.odd.bg = "#2e3440" + +# Foreground color of pinned unselected odd tabs. +c.colors.tabs.pinned.odd.fg = "#88c0d0" + +# Background color of pinned selected even tabs. +c.colors.tabs.pinned.selected.even.bg = "#88c0d0" + +# Foreground color of pinned selected even tabs. +c.colors.tabs.pinned.selected.even.fg = "#2e3440" + +# Background color of pinned selected odd tabs. +c.colors.tabs.pinned.selected.odd.bg = "#88c0d0" + +# Foreground color of pinned selected odd tabs. +c.colors.tabs.pinned.selected.odd.fg = "#2e3440" + +# Background color for webpages if unset (or empty to use the theme's color). +c.colors.webpage.bg = ''