diff options
author | Ben Sima <ben@bsima.me> | 2019-04-08 22:28:13 -0700 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2019-04-08 22:28:13 -0700 |
commit | c59a5a301a3b9074b0d6d7ba5c0bef145b8a95d9 (patch) | |
tree | 6e39321070bd709f9b4570188799af08ede775b1 | |
parent | 52a864bd52d522bfcdc9bed4625fa04b39c935d2 (diff) |
load xtheme state from ~/.local/share/xtheme
-rw-r--r-- | linux.nix | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,10 +1,10 @@ -{ pkgs, ... }: +{ pkgs, lib, ... }: let solarized-xresources = ./xresources; - themeVar = builtins.getEnv "XTHEME"; - defaultTheme = "light"; - theme = if themeVar == "" then defaultTheme else themeVar; + homedir = builtins.getEnv "HOME"; + theme = lib.removeSuffix "\n" + (builtins.readFile "${homedir}/.local/share/xtheme"); colors = { "dark" = { background = "#292b2e"; |