From a33954c59fe9d8fe889fab077b6612cc029ac3fc Mon Sep 17 00:00:00 2001 From: davidpkj Date: Wed, 24 Jul 2024 16:37:37 +0200 Subject: Mega Update: FW16 Space Rice - Add symlinks to dotfiles in config dir (links to links) - Switch from neofetch to fastfetch - Add htop - Add dynamic colors (polybar, xmonad, qutebrowser) - Update color management (pywal & friends, alacritty, xorg) - Minor updates to other files (quality of life) --- qutebrowser/.config/qutebrowser/config.py | 21 +++++++++++++++++++-- qutebrowser/.config/qutebrowser/home.html | 4 ++-- 2 files changed, 21 insertions(+), 4 deletions(-) (limited to 'qutebrowser') diff --git a/qutebrowser/.config/qutebrowser/config.py b/qutebrowser/.config/qutebrowser/config.py index 43df130..29d761e 100644 --- a/qutebrowser/.config/qutebrowser/config.py +++ b/qutebrowser/.config/qutebrowser/config.py @@ -16,6 +16,22 @@ config.bind("", "tab-next") config.bind("", "tab-prev") from utils import * +import subprocess + +def read_xresources(prefix): + props = {} + x = subprocess.run(["xrdb", "-query"], capture_output=True, check=True, text=True) + lines = x.stdout.split("\n") + for line in filter(lambda l : l.startswith(prefix), lines): + prop, _, value = line.partition(":\t") + props[prop] = value + return props + +xresources = read_xresources("Xft") + +print(xresources) + +c.aliases["r"] = "session-load" command = ["xterm", "-fa", "JetBrainsMono Nerd Font", "-fs", "16", "-e", "ranger", "--choosefile={}"] @@ -27,8 +43,9 @@ command = ["xterm", "-fa", "JetBrainsMono Nerd Font", "-fs", "16", "-e", "ranger c.content.autoplay = False c.zoom.default = "100%" -c.fonts.default_size = "11pt" -c.fonts.default_family = "JetBrainsMono Nerd Font" +c.fonts.default_size = "14px" +# c.fonts.default_family = "JetBrainsMono Nerd Font" +c.fonts.default_family = xresources["Xft.fontname"] c.downloads.location.prompt = False c.downloads.location.remember = False diff --git a/qutebrowser/.config/qutebrowser/home.html b/qutebrowser/.config/qutebrowser/home.html index 5f3efca..6d283e0 100644 --- a/qutebrowser/.config/qutebrowser/home.html +++ b/qutebrowser/.config/qutebrowser/home.html @@ -19,13 +19,13 @@ a { outline: none; - color: var(--color4); + color: var(--primary); padding-right: 0.5em; text-decoration: none; } a:hover, a:focus { - color: var(--color12); + color: var(--accent); } .terminal { -- cgit v1.2.3