From c59a5a301a3b9074b0d6d7ba5c0bef145b8a95d9 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Mon, 8 Apr 2019 22:28:13 -0700 Subject: load xtheme state from ~/.local/share/xtheme --- linux.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'linux.nix') diff --git a/linux.nix b/linux.nix index 6bf72ab..1000c4f 100644 --- a/linux.nix +++ b/linux.nix @@ -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"; -- cgit v1.2.3