summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2021-01-09 13:58:37 -0500
committerBen Sima <ben@bsima.me>2021-01-09 14:14:20 -0500
commit528b5dbfdc4e3a475081cdd550668fed33afc847 (patch)
tree0b38a9ac81356da55a9eb34edcaeaeeeeaeeecc2
parent4bd0ba3cf57f450f3d3813eba19989bb99bcb036 (diff)
fix qutebrowser, bat, and urxvt for theme switching
-rw-r--r--lib/common.nix6
-rw-r--r--linux.nix4
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