chore: rework configuration

This commit is contained in:
Yorick Barbanneau 2024-09-11 21:48:27 +02:00
parent b061fa25c6
commit 50cde0c259
5 changed files with 2 additions and 476 deletions

View file

@ -19,7 +19,7 @@ font=Fira Code Nerd Font Mono:size=10
# underline-offset=<font metrics>
# underline-thickness=<font underline thickness>
# box-drawings-uses-font-glyphs=no
dpi-aware=yes
pad=5x5 center
# initial-window-size-pixels=700x500 # Or,
# initial-window-size-chars=<COLSxROWS>

View file

@ -1,5 +1,5 @@
[main]
font = "Fira Code Nerd Font Mono:size=9"
font = "Fira Code Nerd Font Mono:size=12"
icon-theme = "Papirus-Dark"
width = 60
show-actions = "yes"

View file

@ -1,109 +0,0 @@
--[[ 2018/06/17 | Highlight v3.43 | Lua 5.3
================================================================================
Scheme: Base16 "Default Dark"
Author: Chris Kempson (http://chriskempson.com)
License: MIT License
Source: https://github.com/chriskempson/base16-default-schemes
================================================================================
Converted from YAML by Tristano Ajmone:
<tajmone@gmail.com>
https://github.com/tajmone
https://gitlab.com/tajmone
--------------------------------------------------------------------------------
For more info on Chris Kempson's Base16, see:
http://chriskempson.com/projects/base16
------------------------------------------------------------------------------]]
Description = "Base16 Default Dark"
Categories = {"dark", "base16", "lsp"}
--------------------------------------------------------------------------------
base00 = "#181818" --> Default Background
base01 = "#282828" --> Lighter Background (Used for status bars)
base02 = "#383838" --> Selection Background
base03 = "#585858" --> Comments, Invisibles, Line Highlighting
base04 = "#b8b8b8" --> Dark Foreground (Used for status bars)
base05 = "#d8d8d8" --> Default Foreground, Caret, Delimiters, Operators
base06 = "#e8e8e8" --> Light Foreground (Not often used)
base07 = "#f8f8f8" --> Light Background (Not often used)
base08 = "#ab4642" --> Variables, XML Tags, Markup Link Text, Markup Lists, Diff Deleted
base09 = "#dc9656" --> Integers, Boolean, Constants, XML Attributes, Markup Link Url
base0A = "#f7ca88" --> Classes, Markup Bold, Search Text Background
base0B = "#a1b56c" --> Strings, Inherited Class, Markup Code, Diff Inserted
base0C = "#86c1b9" --> Support, Regular Expressions, Escape Characters, Markup Quotes
base0D = "#7cafc2" --> Functions, Methods, Attribute IDs, Headings
base0E = "#ba8baf" --> Keywords, Storage, Selector, Markup Italic, Diff Changed
base0F = "#a16946" --> Deprecated, Opening/Closing Embedded Language Tags, e.g. <?php ?>
--------------------------------------------------------------------------------
Canvas = { Colour = base00, Italic = false, Bold = false }
Default = { Colour = base05, Italic = false, Bold = false }
Number = { Colour = base09, Italic = false, Bold = false }
Operator = { Colour = base05, Italic = false, Bold = false }
String = { Colour = base0B, Italic = false, Bold = false }
Escape = { Colour = base0C, Italic = false, Bold = false }
StringPreProc = Escape
Interpolation = { Colour = base09, Italic = false, Bold = false }
LineComment = { Colour = base03, Italic = true, Bold = false } --> Italic
BlockComment = LineComment
LineNum = { Colour = base04, Italic = false, Bold = false }
PreProcessor = { Colour = base0F, Italic = false, Bold = false }
Keywords = {
{ Colour = base0E, Italic = false, Bold = true }, --> kwd 1
{ Colour = base0D, Italic = false, Bold = true }, --> kwd 2
{ Colour = base08, Italic = false, Bold = true }, --> kwd 3
{ Colour = base0A, Italic = false, Bold = true }, --> kwd 4
{ Colour = base0F, Italic = false, Bold = true }, --> kwd 5
{ Colour = base09, Italic = false, Bold = true }, --> kwd 6
}
-- new LSP based elements:
SemanticTokenTypes = {
{ Type = 'type', Style = Keywords[2] },
{ Type = 'class', Style = { Colour = base0A } },
{ Type = 'struct', Style = { Colour = base0A } },
{ Type = 'interface', Style = { Colour = base06 } },
{ Type = 'parameter', Style = Keywords[6] },
{ Type = 'variable', Style = Keywords[5] },
{ Type = 'enumMember', Style = Keywords[5] },
{ Type = 'function', Style = Keywords[4] },
{ Type = 'method', Style = Keywords[4] },
{ Type = 'keyword', Style = Keywords[1]},
{ Type = 'number', Style = Number },
{ Type = 'regexp', Style = String },
{ Type = 'operator', Style = Operator },
}
--[[----------------------------------------------------------------------------
The MIT License
Copyright (c) 2018 Tristano Ajmone
Copyright (c) Chris Kempson (http://chriskempson.com)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
------------------------------------------------------------------------------]]

View file

@ -1,65 +0,0 @@
config.load_autoconfig()
c.qt.args = [
'autoplay-policy=user-gesture-required',
'ignore-gpu-blocklist',
#'enable-gpu-rasterization',
#'use-gl=egl',
'enable-accelerated-video-decode',
'enable-features=VaapiVideoDecoder',
'enable-features=WebRTCPipeWireCapturer',
#'num-raster-threads=8'
]
# Try to reduce memury usage
c.qt.chromium.low_end_device_mode = 'always'
c.qt.chromium.process_model = 'process-per-site'
c.fonts.default_family = "Fura Code Nerd Font"
c.fonts.completion.category = "default_size default_family"
c.tabs.title.format = '{index}:{audio:1} {current_title}'
c.tabs.padding = {'top': 3, 'bottom': 3, 'left': 5, 'right': 5}
c.tabs.select_on_remove = 'last-used'
c.colors.webpage.preferred_color_scheme = "dark"
config.source('theme.base16.py')
# Privacy
# -------
config.set('content.autoplay', True, 'https://*.alienor.net/')
c.content.canvas_reading = True
c.content.headers.do_not_track = True
c.content.cookies.accept = "no-3rdparty"
#c.content.cookies.store = True
c.content.geolocation = False
c.content.headers.referer = "same-domain"
c.content.blocking.enabled = True
c.content.blocking.method = 'both'
c.content.blocking.adblock.lists = [
'https://easylist.to/easylist/easylist.txt',
'https://easylist.to/easylist/easyprivacy.txt',
'https://www.i-dont-care-about-cookies.eu/abp/',
'https://secure.fanboy.co.nz/fanboy-cookiemonster.txt'
]
c.content.plugins = False
#c.content.register_protocol_handler = False
#c.content.webrtc_ip_handling_policy = "disable-non-proxied-udp"
#c.content.xss_auditing = True
c.downloads.location.directory = '~/downloads'
c.completion.open_categories = ["quickmarks", "history"]
c.editor.command = ["/bin/sh", "-c", "exec foot vim {file}"]
config.bind('zl', 'spawn --userscript ~/.config/qutebrowser/userscripts/qute-keepassxc --key BFB6758157CE593805977AA8A08AFE175EF077A4', mode='normal')
config.bind(',M', 'hint links spawn mpv {hint-url} --title="webvideo"')
c.url.searchengines['at'] = 'https://glpi.alienor.net/front/ticket.form.php?id={}'
c.scrolling.bar = 'always'
c.scrolling.smooth = True
# Change audio icon
from qutebrowser.api import message
try:
from qutebrowser.mainwindow import tabwidget
tabwidget.TabWidget.MUTE_STRING = ""
tabwidget.TabWidget.AUDIBLE_STRING = ""
except (ImportError, AttributeError) as err:
message.error(f"Failed to change audible indicators {err}")

View file

@ -1,300 +0,0 @@
# base16-qutebrowser (https://github.com/theova/base16-qutebrowser)
# Base16 qutebrowser template by theova
# Default Dark scheme by Chris Kempson (http://chriskempson.com)
base00 = "#181818"
base01 = "#282828"
base02 = "#383838"
base03 = "#585858"
base04 = "#b8b8b8"
base05 = "#d8d8d8"
base06 = "#e8e8e8"
base07 = "#f8f8f8"
base08 = "#ab4642"
base09 = "#dc9656"
base0A = "#f7ca88"
base0B = "#a1b56c"
base0C = "#86c1b9"
base0D = "#7cafc2"
base0E = "#ba8baf"
base0F = "#a16946"
# set qutebrowser colors
# 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 = base05
# Background color of the completion widget for odd rows.
c.colors.completion.odd.bg = base01
# Background color of the completion widget for even rows.
c.colors.completion.even.bg = base00
# Foreground color of completion widget category headers.
c.colors.completion.category.fg = base0A
# Background color of the completion widget category headers.
c.colors.completion.category.bg = base00
# Top border color of the completion widget category headers.
c.colors.completion.category.border.top = base00
# Bottom border color of the completion widget category headers.
c.colors.completion.category.border.bottom = base00
# Foreground color of the selected completion item.
c.colors.completion.item.selected.fg = base05
# Background color of the selected completion item.
c.colors.completion.item.selected.bg = base02
# Top border color of the selected completion item.
c.colors.completion.item.selected.border.top = base02
# Bottom border color of the selected completion item.
c.colors.completion.item.selected.border.bottom = base02
# Foreground color of the matched text in the selected completion item.
c.colors.completion.item.selected.match.fg = base0B
# Foreground color of the matched text in the completion.
c.colors.completion.match.fg = base0B
# Color of the scrollbar handle in the completion view.
c.colors.completion.scrollbar.fg = base05
# Color of the scrollbar in the completion view.
c.colors.completion.scrollbar.bg = base00
# Background color of disabled items in the context menu.
c.colors.contextmenu.disabled.bg = base01
# Foreground color of disabled items in the context menu.
c.colors.contextmenu.disabled.fg = base04
# Background color of the context menu. If set to null, the Qt default is used.
c.colors.contextmenu.menu.bg = base00
# Foreground color of the context menu. If set to null, the Qt default is used.
c.colors.contextmenu.menu.fg = base05
# Background color of the context menus selected item. If set to null, the Qt default is used.
c.colors.contextmenu.selected.bg = base02
#Foreground color of the context menus selected item. If set to null, the Qt default is used.
c.colors.contextmenu.selected.fg = base05
# Background color for the download bar.
c.colors.downloads.bar.bg = base00
# Color gradient start for download text.
c.colors.downloads.start.fg = base00
# Color gradient start for download backgrounds.
c.colors.downloads.start.bg = base0D
# Color gradient end for download text.
c.colors.downloads.stop.fg = base00
# Color gradient stop for download backgrounds.
c.colors.downloads.stop.bg = base0C
# Foreground color for downloads with errors.
c.colors.downloads.error.fg = base08
# Font color for hints.
c.colors.hints.fg = base00
# Background color for hints. Note that you can use a `rgba(...)` value
# for transparency.
c.colors.hints.bg = base0A
# Font color for the matched part of hints.
c.colors.hints.match.fg = base05
# Text color for the keyhint widget.
c.colors.keyhint.fg = base05
# Highlight color for keys to complete the current keychain.
c.colors.keyhint.suffix.fg = base05
# Background color of the keyhint widget.
c.colors.keyhint.bg = base00
# Foreground color of an error message.
c.colors.messages.error.fg = base00
# Background color of an error message.
c.colors.messages.error.bg = base08
# Border color of an error message.
c.colors.messages.error.border = base08
# Foreground color of a warning message.
c.colors.messages.warning.fg = base00
# Background color of a warning message.
c.colors.messages.warning.bg = base0E
# Border color of a warning message.
c.colors.messages.warning.border = base0E
# Foreground color of an info message.
c.colors.messages.info.fg = base05
# Background color of an info message.
c.colors.messages.info.bg = base00
# Border color of an info message.
c.colors.messages.info.border = base00
# Foreground color for prompts.
c.colors.prompts.fg = base05
# Border used around UI elements in prompts.
c.colors.prompts.border = base00
# Background color for prompts.
c.colors.prompts.bg = base00
# Background color for the selected item in filename prompts.
c.colors.prompts.selected.bg = base02
# Foreground color for the selected item in filename prompts.
c.colors.prompts.selected.fg = base05
# Foreground color of the statusbar.
c.colors.statusbar.normal.fg = base0B
# Background color of the statusbar.
c.colors.statusbar.normal.bg = base00
# Foreground color of the statusbar in insert mode.
c.colors.statusbar.insert.fg = base00
# Background color of the statusbar in insert mode.
c.colors.statusbar.insert.bg = base0D
# Foreground color of the statusbar in passthrough mode.
c.colors.statusbar.passthrough.fg = base00
# Background color of the statusbar in passthrough mode.
c.colors.statusbar.passthrough.bg = base0C
# Foreground color of the statusbar in private browsing mode.
c.colors.statusbar.private.fg = base00
# Background color of the statusbar in private browsing mode.
c.colors.statusbar.private.bg = base01
# Foreground color of the statusbar in command mode.
c.colors.statusbar.command.fg = base05
# Background color of the statusbar in command mode.
c.colors.statusbar.command.bg = base00
# Foreground color of the statusbar in private browsing + command mode.
c.colors.statusbar.command.private.fg = base05
# Background color of the statusbar in private browsing + command mode.
c.colors.statusbar.command.private.bg = base00
# Foreground color of the statusbar in caret mode.
c.colors.statusbar.caret.fg = base00
# Background color of the statusbar in caret mode.
c.colors.statusbar.caret.bg = base0E
# Foreground color of the statusbar in caret mode with a selection.
c.colors.statusbar.caret.selection.fg = base00
# Background color of the statusbar in caret mode with a selection.
c.colors.statusbar.caret.selection.bg = base0D
# Background color of the progress bar.
c.colors.statusbar.progress.bg = base0D
# Default foreground color of the URL in the statusbar.
c.colors.statusbar.url.fg = base05
# Foreground color of the URL in the statusbar on error.
c.colors.statusbar.url.error.fg = base08
# Foreground color of the URL in the statusbar for hovered links.
c.colors.statusbar.url.hover.fg = base05
# Foreground color of the URL in the statusbar on successful load
# (http).
c.colors.statusbar.url.success.http.fg = base0C
# Foreground color of the URL in the statusbar on successful load
# (https).
c.colors.statusbar.url.success.https.fg = base0B
# Foreground color of the URL in the statusbar when there's a warning.
c.colors.statusbar.url.warn.fg = base0E
# Background color of the tab bar.
c.colors.tabs.bar.bg = base00
# Color gradient start for the tab indicator.
c.colors.tabs.indicator.start = base0D
# Color gradient end for the tab indicator.
c.colors.tabs.indicator.stop = base0C
# Color for the tab indicator on errors.
c.colors.tabs.indicator.error = base08
# Foreground color of unselected odd tabs.
c.colors.tabs.odd.fg = base05
# Background color of unselected odd tabs.
c.colors.tabs.odd.bg = base01
# Foreground color of unselected even tabs.
c.colors.tabs.even.fg = base05
# Background color of unselected even tabs.
c.colors.tabs.even.bg = base00
# Background color of pinned unselected even tabs.
c.colors.tabs.pinned.even.bg = base0C
# Foreground color of pinned unselected even tabs.
c.colors.tabs.pinned.even.fg = base07
# Background color of pinned unselected odd tabs.
c.colors.tabs.pinned.odd.bg = base0B
# Foreground color of pinned unselected odd tabs.
c.colors.tabs.pinned.odd.fg = base07
# Background color of pinned selected even tabs.
c.colors.tabs.pinned.selected.even.bg = base0E
# Foreground color of pinned selected even tabs.
c.colors.tabs.pinned.selected.even.fg = base00
# Background color of pinned selected odd tabs.
c.colors.tabs.pinned.selected.odd.bg = base0E
# Foreground color of pinned selected odd tabs.
c.colors.tabs.pinned.selected.odd.fg = base00
# Foreground color of selected odd tabs.
c.colors.tabs.selected.odd.fg = base00
# Background color of selected odd tabs.
c.colors.tabs.selected.odd.bg = base0E
# Foreground color of selected even tabs.
c.colors.tabs.selected.even.fg = base00
# Background color of selected even tabs.
c.colors.tabs.selected.even.bg = base0E #base02
# Background color for webpages if unset (or empty to use the theme's
# color).
#c.colors.webpage.bg = base00