From 9b9cd0d710703496b14506b3ea4cab896aff77d5 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Mon, 8 Apr 2019 11:36:11 -0700 Subject: Set default theme --- linux.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'linux.nix') diff --git a/linux.nix b/linux.nix index 8247bba..f8318c8 100644 --- a/linux.nix +++ b/linux.nix @@ -2,7 +2,9 @@ let solarized-xresources = ./xresources; - theme = builtins.getEnv "XTHEME"; + themeVar = builtins.getEnv "XTHEME"; + defaultTheme = "light"; + theme = if themeVar == "" then defaultTheme else themeVar; colors = { "dark" = { background = "#292b2e"; -- cgit v1.2.3