From b2ad29589910309aab3c64fbe302e295e6d38b48 Mon Sep 17 00:00:00 2001 From: FollieHiyuki Date: Mon, 28 Jun 2021 18:51:38 +0300 Subject: [PATCH] qutebrowser: update config to 2.3.0; lite-xl: additional font config --- home/.config/lite-xl/init.lua | 20 +++++++++++++++----- home/.config/qutebrowser/base16-nord.py | 3 +++ home/.config/qutebrowser/base16-onedark.py | 3 +++ home/.config/qutebrowser/config.py | 9 +++++++++ 4 files changed, 30 insertions(+), 5 deletions(-) diff --git a/home/.config/lite-xl/init.lua b/home/.config/lite-xl/init.lua index 1061184..9583559 100644 --- a/home/.config/lite-xl/init.lua +++ b/home/.config/lite-xl/init.lua @@ -18,11 +18,21 @@ keymap.add { ["ctrl+q"] = "core:quit" } ------------------------------- Fonts ---------------------------------------- -- customize fonts: -style.font = renderer.font.load(HOME .. "/.local/share/fonts/Comic/ComicRelief.ttf", 14 * SCALE) -style.big_font = renderer.font.load(HOME .. "/.local/share/fonts/Comic/ComicRelief.ttf", 16 * SCALE) -style.code_font = renderer.font.load(HOME .. "/.local/share/fonts/Comic/ComicMono.ttf", 16 * SCALE) -style.icon_font = renderer.font.load("/usr/share/lite-xl/fonts/icons.ttf", 18 * SCALE) -style.icon_big_font = renderer.font.load("/usr/share/lite-xl/fonts/icons.ttf", 24 * SCALE) +style.font = renderer.font.load(HOME .. "/.local/share/fonts/Comic/ComicMono.ttf", 14 * SCALE) +style.big_font = renderer.font.load(HOME .. "/.local/share/fonts/Comic/ComicMono.ttf", 16 * SCALE) +style.code_font = renderer.font.load(HOME .. "/.config/lite-xl/fonts/iosevka-ss14-regular.ttf", 14 * SCALE) +style.icon_font = renderer.font.load("/usr/local/share/lite-xl/fonts/icons.ttf", 18 * SCALE) +style.icon_big_font = renderer.font.load("/usr/local/share/lite-xl/fonts/icons.ttf", 24 * SCALE) + +local italic = renderer.font.load(HOME .. "/.config/lite-xl/fonts/iosevka-ss14-italic.ttf", 14 * SCALE) +style.syntax_fonts["comment"] = italic + +local bolditalic = renderer.font.load(HOME .. "/.config/lite-xl/fonts/iosevka-ss14-bolditalic.ttf", 14 * SCALE) +style.syntax_fonts["keyword"] = bolditalic +style.syntax_fonts["keyword2"] = bolditalic + +local bold = renderer.font.load(HOME .. "/.config/lite-xl/fonts/iosevka-ss14-bold.ttf", 14 * SCALE) +style.syntax_fonts["function"] = bold -- -- font names used by lite: -- style.font : user interface diff --git a/home/.config/qutebrowser/base16-nord.py b/home/.config/qutebrowser/base16-nord.py index 92ece26..14519e8 100644 --- a/home/.config/qutebrowser/base16-nord.py +++ b/home/.config/qutebrowser/base16-nord.py @@ -161,6 +161,9 @@ 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 = base06 + # Foreground color of the statusbar. c.colors.statusbar.normal.fg = base0B diff --git a/home/.config/qutebrowser/base16-onedark.py b/home/.config/qutebrowser/base16-onedark.py index abfb0e2..4fc7588 100644 --- a/home/.config/qutebrowser/base16-onedark.py +++ b/home/.config/qutebrowser/base16-onedark.py @@ -161,6 +161,9 @@ 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 = base06 + # Foreground color of the statusbar. c.colors.statusbar.normal.fg = base0B diff --git a/home/.config/qutebrowser/config.py b/home/.config/qutebrowser/config.py index 8f518db..d7a440e 100644 --- a/home/.config/qutebrowser/config.py +++ b/home/.config/qutebrowser/config.py @@ -88,9 +88,18 @@ c.content.mouse_lock = False # No notification c.content.notifications.enabled = False +# No request for persistent storage +c.content.persistent_storage = False + +# Reduce animation +c.content.prefers_reduced_motion = True + # Incognito c.content.private_browsing = True +# Don't allow to register protocol handlers +c.content.register_protocol_handler = False + # SSL c.content.tls.certificate_errors = 'ask-block-thirdparty'