Making qutebrowser non darkmode

This commit is contained in:
Chris Cochrun 2021-01-27 10:33:00 -06:00
parent 833bcf4fcd
commit 6e7455eaa0
3 changed files with 37 additions and 32 deletions

View file

@ -2,7 +2,7 @@
# Corners # # Corners #
################################# #################################
# requires: https://github.com/sdhand/compton # requires: https://github.com/sdhand/compton
corner-radius = 12.0; corner-radius = 0.0;
rounded-corners-exclude = [ rounded-corners-exclude = [
#"window_type = 'normal'", #"window_type = 'normal'",
"class_g = 'awesome'", "class_g = 'awesome'",

View file

@ -7,4 +7,4 @@
config_version: 2 config_version: 2
settings: settings:
content.notifications: content.notifications:
https://www.reddit.com: false https://www.facebook.com: false

View file

@ -118,12 +118,12 @@ c.colors.completion.scrollbar.bg = base00
c.colors.contextmenu.menu.bg = base00 c.colors.contextmenu.menu.bg = base00
# Foreground color of the context menu. If set to null, the Qt default is used. # Foreground color of the context menu. If set to null, the Qt default is used.
c.colors.contextmenu.menu.fg = base05 c.colors.contextmenu.menu.fg = base05
# Background color of the context menus selected item. If set to null, the Qt default is used. # Background color of the context menus selected item. If set to null, the Qt default is used.
c.colors.contextmenu.selected.bg = base0A c.colors.contextmenu.selected.bg = base0A
#Foreground color of the context menus selected item. If set to null, the Qt default is used. # Foreground color of the context menus selected item. If set to null, the Qt default is used.
c.colors.contextmenu.selected.fg = base01 c.colors.contextmenu.selected.fg = base01
# Background color for the download bar. # Background color for the download bar.
@ -747,13 +747,13 @@ c.colors.hints.match.fg = base02
## - lightness-cielab: Modify colors by converting them to CIELAB color space and inverting the L value. ## - lightness-cielab: Modify colors by converting them to CIELAB color space and inverting the L value.
## - lightness-hsl: Modify colors by converting them to the HSL color space and inverting the lightness (i.e. the "L" in HSL). ## - lightness-hsl: Modify colors by converting them to the HSL color space and inverting the lightness (i.e. the "L" in HSL).
## - brightness-rgb: Modify colors by subtracting each of r, g, and b from their maximum value. ## - brightness-rgb: Modify colors by subtracting each of r, g, and b from their maximum value.
# c.colors.webpage.darkmode.algorithm = 'lightness-cielab' c.colors.webpage.darkmode.algorithm = "lightness-cielab"
## Contrast for dark mode. This only has an effect when ## Contrast for dark mode. This only has an effect when
## `colors.webpage.darkmode.algorithm` is set to `lightness-hsl` or ## `colors.webpage.darkmode.algorithm` is set to `lightness-hsl` or
## `brightness-rgb`. ## `brightness-rgb`.
## Type: Float ## Type: Float
c.colors.webpage.darkmode.contrast = 0.7 c.colors.webpage.darkmode.contrast = 0.5
## Render all web contents using a dark theme. Example configurations ## Render all web contents using a dark theme. Example configurations
## from Chromium's `chrome://flags`: - "With simple HSL/CIELAB/RGB-based ## from Chromium's `chrome://flags`: - "With simple HSL/CIELAB/RGB-based
@ -788,14 +788,14 @@ c.colors.webpage.darkmode.enabled = False
## - always: Apply dark mode filter to all images. ## - always: Apply dark mode filter to all images.
## - never: Never apply dark mode filter to any images. ## - never: Never apply dark mode filter to any images.
## - smart: Apply dark mode based on image content. ## - smart: Apply dark mode based on image content.
c.colors.webpage.darkmode.policy.images = 'smart' c.colors.webpage.darkmode.policy.images = "never"
## Which pages to apply dark mode to. ## Which pages to apply dark mode to.
## Type: String ## Type: String
## Valid values: ## Valid values:
## - always: Apply dark mode filter to all frames, regardless of content. ## - always: Apply dark mode filter to all frames, regardless of content.
## - smart: Apply dark mode filter to frames based on background color. ## - smart: Apply dark mode filter to frames based on background color.
c.colors.webpage.darkmode.policy.page = 'smart' c.colors.webpage.darkmode.policy.page = "smart"
## Threshold for inverting background elements with dark mode. Background ## Threshold for inverting background elements with dark mode. Background
## elements with brightness above this threshold will be inverted, and ## elements with brightness above this threshold will be inverted, and
@ -828,7 +828,7 @@ c.colors.webpage.prefers_color_scheme_dark = True
## Height (in pixels or as percentage of the window) of the completion. ## Height (in pixels or as percentage of the window) of the completion.
## Type: PercOrInt ## Type: PercOrInt
c.completion.height = '40%' c.completion.height = "40%"
## Minimum amount of characters needed to update completions. ## Minimum amount of characters needed to update completions.
## Type: Int ## Type: Int
@ -1230,7 +1230,7 @@ c.content.host_blocking.enabled = False
## List of user stylesheet filenames to use. ## List of user stylesheet filenames to use.
## Type: List of File, or File ## Type: List of File, or File
# or if you have a directory with .user.css files: # or if you have a directory with .user.css files:
c.content.user_stylesheets = glob.glob('./css*.user.css') c.content.user_stylesheets = glob.glob("./css*.user.css")
## Enable WebGL. ## Enable WebGL.
## Type: Bool ## Type: Bool
@ -1287,7 +1287,7 @@ c.content.webgl = True
## Valid values: ## Valid values:
## - top ## - top
## - bottom ## - bottom
c.downloads.position = 'bottom' c.downloads.position = "bottom"
## Duration (in milliseconds) to wait before removing finished downloads. ## Duration (in milliseconds) to wait before removing finished downloads.
## If set to -1, downloads are never removed. ## If set to -1, downloads are never removed.
@ -1425,7 +1425,7 @@ c.downloads.remove_finished = 8000
## - unique-match: Auto-follow whenever there is a unique non-empty match in either the hint string (word mode) or filter (number mode). ## - unique-match: Auto-follow whenever there is a unique non-empty match in either the hint string (word mode) or filter (number mode).
## - full-match: Follow the hint when the user typed the whole hint (letter, word or number mode) or the element's text (only in number mode). ## - full-match: Follow the hint when the user typed the whole hint (letter, word or number mode) or the element's text (only in number mode).
## - never: The user will always need to press Enter to follow a hint. ## - never: The user will always need to press Enter to follow a hint.
c.hints.auto_follow = 'always' c.hints.auto_follow = "always"
## Duration (in milliseconds) to ignore normal-mode key bindings after a ## Duration (in milliseconds) to ignore normal-mode key bindings after a
## successful auto-follow. ## successful auto-follow.
@ -1798,7 +1798,7 @@ c.scrolling.smooth = False
## Padding (in pixels) for the statusbar. ## Padding (in pixels) for the statusbar.
## Type: Padding ## Type: Padding
c.statusbar.padding = {'top': 1, 'bottom': 1, 'left': 0, 'right': 2} c.statusbar.padding = {"top": 1, "bottom": 1, "left": 0, "right": 2}
## Position of the status bar. ## Position of the status bar.
## Type: VerticalPosition ## Type: VerticalPosition
@ -1813,7 +1813,7 @@ c.statusbar.padding = {'top': 1, 'bottom': 1, 'left': 0, 'right': 2}
## - always: Always show the statusbar. ## - always: Always show the statusbar.
## - never: Always hide the statusbar. ## - never: Always hide the statusbar.
## - in-mode: Show the statusbar when in modes other than normal mode. ## - in-mode: Show the statusbar when in modes other than normal mode.
c.statusbar.show = 'in-mode' c.statusbar.show = "in-mode"
## List of widgets displayed in the statusbar. ## List of widgets displayed in the statusbar.
## Type: List of String ## Type: List of String
@ -1972,7 +1972,7 @@ c.statusbar.show = 'in-mode'
## - never: Always hide the tab bar. ## - never: Always hide the tab bar.
## - multiple: Hide the tab bar if only one tab is open. ## - multiple: Hide the tab bar if only one tab is open.
## - switching: Show the tab bar when switching tabs. ## - switching: Show the tab bar when switching tabs.
c.tabs.show = 'switching' c.tabs.show = "switching"
## Duration (in milliseconds) to show the tab bar before hiding it when ## Duration (in milliseconds) to show the tab bar before hiding it when
## tabs.show is set to 'switching'. ## tabs.show is set to 'switching'.
@ -1989,7 +1989,7 @@ c.tabs.tabs_are_windows = True
## - left ## - left
## - right ## - right
## - center ## - center
c.tabs.title.alignment = 'center' c.tabs.title.alignment = "center"
## Format to use for the tab title. The following placeholders are ## Format to use for the tab title. The following placeholders are
## defined: * `{perc}`: Percentage as a string like `[10%]`. * ## defined: * `{perc}`: Percentage as a string like `[10%]`. *
@ -2077,14 +2077,16 @@ c.tabs.title.alignment = 'center'
## the search engine name to the search term, e.g. `:open google ## the search engine name to the search term, e.g. `:open google
## qutebrowser`. ## qutebrowser`.
## Type: Dict ## Type: Dict
c.url.searchengines = {'DEFAULT': 'https://duckduckgo.com/?q={}', c.url.searchengines = {
'yt': 'https://yewtu.be/search?q={}', "DEFAULT": "https://duckduckgo.com/?q={}",
'mel': 'https://melpa.org/#/?q={}', "yt": "https://yewtu.be/search?q={}",
'y': 'https://www.youtube.com/results?search_query={}', "mel": "https://melpa.org/#/?q={}",
'ama': 'https://smile.amazon.com/s?k={}', "y": "https://www.youtube.com/results?search_query={}",
'aur': 'https://aur.archlinux.org/packages/?O=0&K={}', "ama": "https://smile.amazon.com/s?k={}",
'od': 'https://odysee.com/$/search?q={}', "aur": "https://aur.archlinux.org/packages/?O=0&K={}",
'aw': 'https://wiki.archlinux.org/index.php?search={}'} "od": "https://odysee.com/$/search?q={}",
"aw": "https://wiki.archlinux.org/index.php?search={}",
}
## Page(s) to open at the start. ## Page(s) to open at the start.
## Type: List of FuzzyUrl, or FuzzyUrl ## Type: List of FuzzyUrl, or FuzzyUrl
@ -2189,8 +2191,8 @@ c.url.searchengines = {'DEFAULT': 'https://duckduckgo.com/?q={}',
# config.bind('F', 'hint all tab') # config.bind('F', 'hint all tab')
# config.bind('G', 'scroll-to-perc') # config.bind('G', 'scroll-to-perc')
# config.bind('H', 'back') # config.bind('H', 'back')
config.bind('K', 'tab-next') config.bind("K", "tab-next")
config.bind('J', 'tab-prev') config.bind("J", "tab-prev")
# config.bind('L', 'forward') # config.bind('L', 'forward')
# config.bind('M', 'bookmark-add') # config.bind('M', 'bookmark-add')
# config.bind('N', 'search-prev') # config.bind('N', 'search-prev')
@ -2213,7 +2215,7 @@ config.bind('J', 'tab-prev')
# config.bind('b', 'set-cmd-text -s :quickmark-load') # config.bind('b', 'set-cmd-text -s :quickmark-load')
# config.bind('cd', 'download-clear') # config.bind('cd', 'download-clear')
# config.bind('co', 'tab-only') # config.bind('co', 'tab-only')
config.bind('d', 'close') config.bind("d", "close")
# config.bind('f', 'hint') # config.bind('f', 'hint')
# config.bind('g$', 'tab-focus -1') # config.bind('g$', 'tab-focus -1')
# config.bind('g0', 'tab-focus 1') # config.bind('g0', 'tab-focus 1')
@ -2242,7 +2244,7 @@ config.bind('d', 'close')
# config.bind('l', 'scroll right') # config.bind('l', 'scroll right')
# config.bind('m', 'quickmark-save') # config.bind('m', 'quickmark-save')
# config.bind('n', 'search-next') # config.bind('n', 'search-next')
config.bind('o', 'set-cmd-text -s :open') config.bind("o", "set-cmd-text -s :open")
# config.bind('pP', 'open -- {primary}') # config.bind('pP', 'open -- {primary}')
# config.bind('pp', 'open -- {clipboard}') # config.bind('pp', 'open -- {clipboard}')
# config.bind('q', 'record-macro') # config.bind('q', 'record-macro')
@ -2426,10 +2428,13 @@ config.bind('o', 'set-cmd-text -s :open')
# config.bind('y', 'prompt-accept yes', mode='yesno') # config.bind('y', 'prompt-accept yes', mode='yesno')
## Bindings for MPV and YTDL ## Bindings for MPV and YTDL
config.bind('v', 'hint links spawn --detach mpv --force-window yes {hint-url}') config.bind("v", "hint links spawn --detach mpv --force-window yes {hint-url}")
config.bind('gv', 'spawn --detach mpv --force-window yes {url}') config.bind("gv", "spawn --detach mpv --force-window yes {url}")
config.bind('gc', 'spawn org-capture "{url}"') config.bind("gc", 'spawn org-capture "{url}"')
config.bind('gV', 'hint links spawn alacritty -e youtube-dl -o ~/Videos/%(title)s.%(ext)s {hint-url}') config.bind(
"gV",
"hint links spawn alacritty -e youtube-dl -o ~/Videos/%(title)s.%(ext)s {hint-url}",
)
## Bindings for MPV and YTDL ## Bindings for MPV and YTDL
# config.bind('o', 'spawn --userscript rofi') # config.bind('o', 'spawn --userscript rofi')