From 7846271ba557b09f3e545ee659ec9240a19c08f7 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Wed, 21 Apr 2021 04:06:51 +0200 Subject: [PATCH] home: themes: setup solarized light --- home/themes/default.nix | 4 ++ home/themes/solarizedLight/colors.nix | 12 +++++ home/themes/solarizedLight/default.nix | 3 ++ home/themes/solarizedLight/i3.nix | 64 ++++++++++++++++++++++++++ 4 files changed, 83 insertions(+) create mode 100644 home/themes/solarizedLight/colors.nix create mode 100644 home/themes/solarizedLight/default.nix create mode 100644 home/themes/solarizedLight/i3.nix diff --git a/home/themes/default.nix b/home/themes/default.nix index 2f7e73d..3ea1897 100644 --- a/home/themes/default.nix +++ b/home/themes/default.nix @@ -19,4 +19,8 @@ in type = with types; attrsOf themeType; }; }; + + config.my.home.themes = { + solarizedLight = import ./solarizedLight; + }; } diff --git a/home/themes/solarizedLight/colors.nix b/home/themes/solarizedLight/colors.nix new file mode 100644 index 0000000..7c7f771 --- /dev/null +++ b/home/themes/solarizedLight/colors.nix @@ -0,0 +1,12 @@ +{ + background = "#282828"; + red = "#cc241d"; + green = "#98971a"; + yellow = "#d79921"; + blue = "#458588"; + purple = "#b16286"; + aqua = "#689d68"; + gray = "#a89984"; + darkGray = "#1d2021"; + white = "#ffffff"; +} diff --git a/home/themes/solarizedLight/default.nix b/home/themes/solarizedLight/default.nix new file mode 100644 index 0000000..f0646f6 --- /dev/null +++ b/home/themes/solarizedLight/default.nix @@ -0,0 +1,3 @@ +{ + i3Theme = import ./i3.nix; +} diff --git a/home/themes/solarizedLight/i3.nix b/home/themes/solarizedLight/i3.nix new file mode 100644 index 0000000..75399b3 --- /dev/null +++ b/home/themes/solarizedLight/i3.nix @@ -0,0 +1,64 @@ +let + colors = import ./colors.nix; +in +with colors; +{ + bar = { + background = background; + statusline = yellow; + separator = red; + + focusedWorkspace = { + border = aqua; + background = aqua; + text = darkGray; + }; + inactiveWorkspace = { + border = darkGray; + background = darkGray; + text = yellow; + }; + activeWorkspace = { + border = aqua; + background = darkGray; + text = yellow; + }; + urgentWorkspace = { + border = red; + background = red; + text = background; + }; + }; + + focused = { + border = blue; + background = blue; + text = darkGray; + indicator = purple; + childBorder = darkGray; + }; + + focusedInactive = { + border = darkGray; + background = darkGray; + text = yellow; + indicator = purple; + childBorder = darkGray; + }; + + unfocused = { + border = darkGray; + background = darkGray; + text = yellow; + indicator = purple; + childBorder = darkGray; + }; + + urgent = { + border = red; + background = red; + text = white; + indicator = red; + childBorder = red; + }; +}