feat(theming): style fzf

This commit is contained in:
Moritz Böhme 2023-03-18 06:12:48 +01:00
parent fce3afaa65
commit 75591db511
Signed by: moritz
GPG key ID: 970C6E89EB0547A9
2 changed files with 65 additions and 36 deletions

View file

@ -36,6 +36,20 @@ in
{ {
home-manager.users.moritz = { home-manager.users.moritz = {
programs = { programs = {
fzf.colors = {
"bg+" = "#${surface0}";
"fg+" = "#${text}";
"hl+" = "#${red}";
bg = "#${base}";
fg = "#${text}";
header = "#${red}";
hl = "#${red}";
info = "#${mauve}";
marker = "#${rosewater}";
pointer = "#${rosewater}";
prompt = "#${mauve}";
spinner = "#${rosewater}";
};
kitty.extraConfig = '' kitty.extraConfig = ''
# vim:ft=kitty # vim:ft=kitty

View file

@ -4,22 +4,36 @@ with lib;
let let
cfg = config.my.theming; cfg = config.my.theming;
background = "#282a36"; background = "282a36";
currentLine = "#44475a"; currentLine = "44475a";
foreground = "#f8f8f2"; foreground = "f8f8f2";
comment = "#6272a4"; comment = "6272a4";
cyan = "#8be9fd"; cyan = "8be9fd";
green = "#50fa7b"; green = "50fa7b";
orange = "#ffb86c"; orange = "ffb86c";
pink = "#ff79c6"; pink = "ff79c6";
purple = "#bd93f9"; purple = "bd93f9";
red = "#ff5555"; red = "ff5555";
yellow = "#f1fa8c"; yellow = "f1fa8c";
in in
{ {
config = mkIf (cfg.enable && cfg.scheme == "dracula") { config = mkIf (cfg.enable && cfg.scheme == "dracula") {
home-manager.users.moritz = { home-manager.users.moritz = {
programs = { programs = {
fzf.colors = {
"bg+" = "#${currentLine}";
"fg+" = "#${foreground}";
"hl+" = "#${purple}";
bg = "#${background}";
fg = "#${foreground}";
header = "#${comment}";
hl = "#${purple}";
info = "#${orange}";
marker = "#${pink}";
pointer = "#${pink}";
prompt = "#${green}";
spinner = "#${orange}";
};
kitty.extraConfig = kitty.extraConfig =
'' ''
# https://draculatheme.com/kitty # https://draculatheme.com/kitty
@ -142,9 +156,9 @@ in
}; };
xsession.windowManager.bspwm = { xsession.windowManager.bspwm = {
settings = { settings = {
focused_border_color = purple; focused_border_color = "#${purple}";
normal_border_color = background; normal_border_color = "#${background}";
active_border_color = background; active_border_color = "#${background}";
}; };
}; };
services = { services = {
@ -181,42 +195,43 @@ in
polybar = { polybar = {
config = { config = {
"bar/bottom" = { "bar/bottom" = {
inherit background foreground; background = "#${background}";
border-color = background; foreground = "#${foreground}";
border-color = "#${background}";
}; };
"module/bspwm" = { "module/bspwm" = {
label-focused-foreground = pink; label-focused-foreground = "#${pink}";
label-occupied-foreground = comment; label-occupied-foreground = "#${comment}";
label-urgent-foreground = red; label-urgent-foreground = "#${red}";
label-empty-foreground = currentLine; label-empty-foreground = "#${currentLine}";
label-separator-foreground = background; label-separator-foreground = "#${background}";
}; };
"module/cpu" = { "module/cpu" = {
format-foreground = background; format-foreground = "#${background}";
format-background = green; format-background = "#${green}";
}; };
"module/time" = { "module/time" = {
format-foreground = background; format-foreground = "#${background}";
format-background = cyan; format-background = "#${cyan}";
}; };
"module/date" = { "module/date" = {
format-foreground = background; format-foreground = "#${background}";
format-background = yellow; format-background = "#${yellow}";
}; };
"module/memory" = { "module/memory" = {
format-foreground = background; format-foreground = "#${background}";
format-background = cyan; format-background = "#${cyan}";
}; };
"module/pulseaudio" = { "module/pulseaudio" = {
format-volume-foreground = background; format-volume-foreground = "#${background}";
format-volume-background = purple; format-volume-background = "#${purple}";
label-muted = "%{F${red}} %{F${background}}muted"; label-muted = "%{F#${red}} %{F#${background}}muted";
format-muted-foreground = background; format-muted-foreground = "#${background}";
format-muted-background = red; format-muted-background = "#${red}";
}; };
"module/network" = { "module/network" = {
format-connected-foreground = background; format-connected-foreground = "#${background}";
format-connected-background = purple; format-connected-background = "#${purple}";
}; };
}; };
}; };