diff options
author | Ben Sima <ben@bsima.me> | 2019-04-08 11:36:11 -0700 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2019-04-08 11:36:11 -0700 |
commit | 9b9cd0d710703496b14506b3ea4cab896aff77d5 (patch) | |
tree | 6c8e484dd25f697bb19857ac169e93dafb65ad42 | |
parent | 9cd7398f09fcef9ed3574660146892d8bce4de44 (diff) |
Set default theme
-rw-r--r-- | linux.nix | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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"; |