From 528b5dbfdc4e3a475081cdd550668fed33afc847 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Sat, 9 Jan 2021 13:58:37 -0500 Subject: fix qutebrowser, bat, and urxvt for theme switching --- lib/common.nix | 6 +++--- linux.nix | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/common.nix b/lib/common.nix index bdf294c..affb979 100644 --- a/lib/common.nix +++ b/lib/common.nix @@ -15,7 +15,7 @@ in LC_ALL = locale; LANGUAGE = locale; PATH = "${homedir}/bin:${homedir}/.local/bin:$PATH"; - PAGER = "${pkgs.bat}/bin/bat"; + PAGER = "${pkgs.bat}/bin/bat --theme=ansi-$(cat ~/.local/share/xtheme)"; LEDGER_FILE = "${homedir}/.hledger.journal"; XTERM_LOCALE = locale; PYTHONSTARTUP = "${homedir}/.pythonrc"; @@ -128,8 +128,8 @@ in "xfg:Noto Emoji" ]; iso14755 = true; # unicode chars - transparent = true; - shading = 10; + #transparent = true; + #shading = 10; }; ssh = { diff --git a/linux.nix b/linux.nix index 12e579b..7e6a775 100644 --- a/linux.nix +++ b/linux.nix @@ -395,7 +395,9 @@ in qutebrowser = { enable = true; settings = { - "colors.webpage.darkmode.enabled" = true; + "colors.webpage.darkmode.enabled" = + if theme == "dark" then true else false; + "content.user_stylesheets" = "~/.userstyles.css"; # generated in lib/common.nix # attempting to fix gl rendering -- cgit v1.2.3