Change color scheme

This commit is contained in:
Alexander Bantyev 2020-06-12 23:12:36 +03:00
parent 9c907b9241
commit f84b2ddc95
Signed by: balsoft
GPG Key ID: E081FF12ADCB4AD5
7 changed files with 69 additions and 77 deletions

View File

@ -29,7 +29,6 @@
abiword
gnumeric
gcalcli
papirus-icon-theme
breeze-icons
kde-cli-tools
xdg_utils

View File

@ -61,24 +61,15 @@ in {
};
};
config = {
themes.colors = fromBase16 (fromYAML (builtins.readFile
"${inputs.base16-unclaimed-schemes}/irblack.yaml"));
# themes.colors = {
# bg = "#114c00";
# bg = "#000000";
# fg = "#ffffff";
#
# gray = "#9bb953";
# alt = "#27a6a2";
# dark = "#169300";
#
# red = "#d12d17";
# orange = "#cf7a02";
# yellow = "#386c34";
# green = "#386c34";
# cyan = "#09d0a5";
# blue = "#a5d048";
# purple = "#d083be";
# };
themes.colors = (fromBase16 (fromYAML
(builtins.readFile "${inputs.base16-unclaimed-schemes}/irblack.yaml")))
// {
alt = "#001d6c";
red = "#da1e28";
green = "#24a148";
orange = "#ff832b";
yellow = "#f1c21b";
};
};
}

View File

@ -11,15 +11,15 @@ let
BTN_FG=${thm'.fg}
MENU_BG=${thm'.bg}
MENU_FG=${thm'.fg}
ACCENT_BG=${thm'.blue}
ACCENT_BG=${thm'.alt}
SEL_BG=${thm'.blue}
SEL_FG=${thm'.bg}
TXT_BG=${thm'.bg}
TXT_FG=${thm'.fg}
HDR_BTN_BG=${thm'.bg}
HDR_BTN_FG=${thm'.fg}
WM_BORDER_FOCUS=${thm'.blue}
WM_BORDER_UNFOCUS=${thm'.alt}
WM_BORDER_FOCUS=${thm'.alt}
WM_BORDER_UNFOCUS=${thm'.dark}
MATERIA_STYLE_COMPACT=True
MATERIA_COLOR_VARIANT=dark
UNITY_DEFAULT_LAUNCHER_STYLE=False
@ -49,8 +49,8 @@ in {
gtk = {
enable = true;
iconTheme = {
name = "Papirus-Dark";
package = pkgs.papirus-icon-theme;
name = "Breeze Dark";
package = pkgs.breeze-icons;
};
theme = {
name = "Generated";

View File

@ -3,29 +3,30 @@ with import ../../../support.nix { inherit pkgs config lib; };
with lib;
let scripts = import ./scripts pkgs config;
in {
home-manager.users.balsoft.wayland.windowManager.sway.extraConfig = ''
bar {
id top
font pango:Material Icons 11, IBM Plex 11, Roboto Mono 11
mode dock
hidden_state hide
position top
status_command ${pkgs.i3blocks}/bin/i3blocks
workspace_buttons yes
strip_workspace_numbers no
tray_output none
colors {
background ${config.themes.colors.bg}
statusline ${config.themes.colors.fg}
separator ${config.themes.colors.alt}
focused_workspace ${config.themes.colors.bg} ${config.themes.colors.bg} ${config.themes.colors.blue}
active_workspace ${config.themes.colors.bg} ${config.themes.colors.bg} ${config.themes.colors.green}
inactive_workspace ${config.themes.colors.bg} ${config.themes.colors.bg} ${config.themes.colors.fg}
urgent_workspace ${config.themes.colors.bg} ${config.themes.colors.bg} ${config.themes.colors.orange}
binding_mode ${config.themes.colors.bg} ${config.themes.colors.bg} ${config.themes.colors.yellow}
}
}
'';
home-manager.users.balsoft.wayland.windowManager.sway.config.bars = [{
id = "top";
colors = let
thm = config.themes.colors;
default = {
background = thm.bg;
border = thm.bg;
};
in {
background = thm.bg;
statusline = thm.fg;
separator = thm.alt;
focusedWorkspace = default // { text = thm.fg; };
activeWorkspace = default // { text = thm.green; };
inactiveWorkspace = default // { text = thm.dark; };
urgentWorkspace = default // { text = thm.orange; };
bindingMode = default // { text = thm.yellow; };
};
statusCommand = "${pkgs.i3blocks}/bin/i3blocks";
fonts = [ "IBM Plex Mono 11" "Material Icons 11" "Roboto Mono 11" ];
mode = "hide";
position = "bottom";
workspaceNumbers = false;
}];
home-manager.users.balsoft.xdg.configFile."i3blocks/config".text = let
scr = x: {

View File

@ -25,10 +25,10 @@ with import ../../../support.nix { inherit lib config; }; {
"Colors:Button" = {
BackgroundAlternate = thmDec.dark;
BackgroundNormal = thmDec.bg;
DecorationFocus = thmDec.blue;
DecorationHover = thmDec.blue;
ForegroundActive = thmDec.blue;
ForegroundInactive = thmDec.alt;
DecorationFocus = thmDec.alt;
DecorationHover = thmDec.alt;
ForegroundActive = thmDec.alt;
ForegroundInactive = thmDec.dark;
ForegroundLink = thmDec.blue;
ForegroundNegative = thmDec.red;
ForegroundNeutral = thmDec.orange;
@ -39,22 +39,22 @@ with import ../../../support.nix { inherit lib config; }; {
"Colors:Complementary" = {
BackgroundAlternate = thmDec.dark;
BackgroundNormal = thmDec.bg;
DecorationFocus = thmDec.blue;
DecorationHover = thmDec.blue;
DecorationFocus = thmDec.alt;
DecorationHover = thmDec.alt;
ForegroundActive = thmDec.orange;
ForegroundInactive = thmDec.alt;
ForegroundInactive = thmDec.dark;
ForegroundLink = thmDec.blue;
ForegroundNegative = thmDec.red;
ForegroundNeutral = thmDec.yellow;
ForegroundNormal = thmDec.fg;
ForegroundPositive = thmDec.green;
ForegroundVisited = thmDec.blue;
ForegroundVisited = thmDec.alt;
};
"Colors:Selection" = {
BackgroundAlternate = thmDec.blue;
BackgroundNormal = thmDec.blue;
DecorationFocus = thmDec.blue;
DecorationHover = thmDec.blue;
BackgroundAlternate = thmDec.alt;
BackgroundNormal = thmDec.alt;
DecorationFocus = thmDec.alt;
DecorationHover = thmDec.alt;
ForegroundActive = thmDec.fg;
ForegroundInactive = thmDec.fg;
ForegroundLink = thmDec.blue;
@ -67,10 +67,10 @@ with import ../../../support.nix { inherit lib config; }; {
"Colors:Tooltip" = {
BackgroundAlternate = thmDec.dark;
BackgroundNormal = thmDec.bg;
DecorationFocus = thmDec.blue;
DecorationHover = thmDec.blue;
ForegroundActive = thmDec.blue;
ForegroundInactive = thmDec.alt;
DecorationFocus = thmDec.alt;
DecorationHover = thmDec.alt;
ForegroundActive = thmDec.alt;
ForegroundInactive = thmDec.dark;
ForegroundLink = thmDec.blue;
ForegroundNegative = thmDec.red;
ForegroundNeutral = thmDec.orange;
@ -81,10 +81,10 @@ with import ../../../support.nix { inherit lib config; }; {
"Colors:View" = {
BackgroundAlternate = thmDec.dark;
BackgroundNormal = thmDec.bg;
DecorationFocus = thmDec.blue;
DecorationHover = thmDec.blue;
ForegroundActive = thmDec.blue;
ForegroundInactive = thmDec.alt;
DecorationFocus = thmDec.alt;
DecorationHover = thmDec.alt;
ForegroundActive = thmDec.alt;
ForegroundInactive = thmDec.dark;
ForegroundLink = thmDec.blue;
ForegroundNegative = thmDec.red;
ForegroundNeutral = thmDec.orange;
@ -95,10 +95,10 @@ with import ../../../support.nix { inherit lib config; }; {
"Colors:Window" = {
BackgroundAlternate = thmDec.dark;
BackgroundNormal = thmDec.bg;
DecorationFocus = thmDec.blue;
DecorationHover = thmDec.blue;
ForegroundActive = thmDec.blue;
ForegroundInactive = thmDec.alt;
DecorationFocus = thmDec.alt;
DecorationHover = thmDec.alt;
ForegroundActive = thmDec.alt;
ForegroundInactive = thmDec.dark;
ForegroundLink = thmDec.blue;
ForegroundNegative = thmDec.red;
ForegroundNeutral = thmDec.orange;
@ -126,7 +126,7 @@ with import ../../../support.nix { inherit lib config; }; {
contrast = 4;
widgetStyle = "Breeze";
};
Icons = { Theme = "Papirus-Dark"; };
Icons = { Theme = "Breeze Dark"; };
};
home-manager.users.balsoft.home.activation."user-places.xbel" = {
data = ''

View File

@ -33,7 +33,7 @@ in {
colors = rec {
background = thm.bg;
unfocused = {
text = thm.alt;
text = thm.dark;
border = thm.dark;
background = thm.bg;
childBorder = thm.dark;

View File

@ -5,7 +5,7 @@
"*background" = bg;
"*foreground" = fg;
"*color0" = dark;
"*color1" = red;
"*color1" = orange;
"*color2" = green;
"*color3" = yellow;
"*color4" = blue;
@ -13,7 +13,7 @@
"*color6" = cyan;
"*color7" = fg;
"*color8" = dark;
"*color9" = red;
"*color9" = orange;
"*color10" = green;
"*color11" = yellow;
"*color12" = blue;
@ -21,6 +21,8 @@
"*color14" = cyan;
"*color15" = fg;
"emacs.font" = "IBM Plex Mono 10";
# "emacs.color0" = dark;
# "emacs.color1" = green;
# "emacs.color2" = alt;
@ -37,7 +39,6 @@
# "emacs.color13" = purple;
# "emacs.color14" = cyan;
# "emacs.color15" = fg;
};
};
}