home: i3: make use of built-in theme module

This commit is contained in:
Antoine Martin 2021-04-21 04:07:18 +02:00
parent 7846271ba5
commit a8d417c774

View file

@ -14,17 +14,7 @@ let
logoutMode = "[L]ogout, [S]uspend, [P]oweroff, [R]eboot"; logoutMode = "[L]ogout, [S]uspend, [P]oweroff, [R]eboot";
# colors i3Theme = config.my.home.theme.i3Theme;
colorBg = "#282828";
colorRed = "#cc241d";
colorGreen = "#98971a";
colorYellow = "#d79921";
colorBlue = "#458588";
colorPurple = "#b16286";
colorAqua = "#689d68";
colorGray = "#a89984";
colorDarkGray = "#1d2021";
colorWhite = "#ffffff";
in in
{ {
config = lib.mkIf isEnabled { config = lib.mkIf isEnabled {
@ -53,65 +43,17 @@ in
position = "top"; position = "top";
fonts = [ "DejaVuSansMono" "FontAwesome5Free 9" ]; fonts = [ "DejaVuSansMono" "FontAwesome5Free 9" ];
colors = { colors = i3Theme.bar;
background = colorBg;
statusline = colorYellow;
focusedWorkspace = {
border = colorAqua;
background = colorAqua;
text = colorDarkGray;
};
inactiveWorkspace = {
border = colorDarkGray;
background = colorDarkGray;
text = colorYellow;
};
activeWorkspace = {
border = colorAqua;
background = colorDarkGray;
text = colorYellow;
};
urgentWorkspace = {
border = colorRed;
background = colorRed;
text = colorBg;
};
separator = colorRed;
};
} }
]; ];
colors = { colors = {
focused = { inherit (i3Theme)
border = colorBlue; focused
background = colorBlue; focusedInactive
text = colorDarkGray; unfocused
indicator = colorPurple; urgent
childBorder = colorDarkGray; ;
};
focusedInactive = {
border = colorDarkGray;
background = colorDarkGray;
text = colorYellow;
indicator = colorPurple;
childBorder = colorDarkGray;
};
unfocused = {
border = colorDarkGray;
background = colorDarkGray;
text = colorYellow;
indicator = colorPurple;
childBorder = colorDarkGray;
};
urgent = {
border = colorRed;
background = colorRed;
text = colorWhite;
indicator = colorRed;
childBorder = colorRed;
};
}; };
focus = { focus = {