theme cleanups
This commit is contained in:
parent
831806c2dc
commit
437eda1289
3 changed files with 16 additions and 1 deletions
|
|
@ -18,6 +18,8 @@
|
|||
".idea/"
|
||||
".DS_Store"
|
||||
"Thumbs.db"
|
||||
"CLAUDE.md",
|
||||
".claude/"
|
||||
"*.o"
|
||||
"*.a"
|
||||
"*.so"
|
||||
|
|
@ -37,7 +39,6 @@
|
|||
".mypy_cache/"
|
||||
"result"
|
||||
"result-*"
|
||||
".claude/settings.local.json"
|
||||
];
|
||||
|
||||
signing = {
|
||||
|
|
|
|||
|
|
@ -40,6 +40,11 @@ let
|
|||
activityFg = "#3b5bdb";
|
||||
};
|
||||
};
|
||||
mkFzfTheme = palette: ''
|
||||
--color=fg:${palette.fg},bg:${palette.bg},hl:${palette.accent}
|
||||
--color=fg+:${palette.fg},bg+:${palette.bgAlt},hl+:${palette.accent}
|
||||
--color=info:${palette.green},prompt:${palette.accent},pointer:${palette.fg},marker:${palette.green},spinner:${palette.fg}
|
||||
'';
|
||||
in
|
||||
{
|
||||
options.theme = lib.mkOption {
|
||||
|
|
@ -83,6 +88,9 @@ in
|
|||
fi
|
||||
'';
|
||||
|
||||
xdg.configFile."fzf/themes/midnight".text = mkFzfTheme palettes.midnight;
|
||||
xdg.configFile."fzf/themes/daylight".text = mkFzfTheme palettes.daylight;
|
||||
|
||||
home.activation.linkTheme = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
|
||||
cfg="${config.xdg.configHome}"
|
||||
theme="${config.theme}"
|
||||
|
|
@ -90,6 +98,7 @@ in
|
|||
$DRY_RUN_CMD ln -sf "$cfg/waybar/themes/$theme.css" "$cfg/waybar/themes/theme.css"
|
||||
$DRY_RUN_CMD ln -sf "$cfg/rofi/themes/$theme.rasi" "$cfg/rofi/themes/theme.rasi"
|
||||
$DRY_RUN_CMD ln -sf "$cfg/sioyek/themes/$theme.config" "$cfg/sioyek/themes/theme.config"
|
||||
$DRY_RUN_CMD ln -sf "$cfg/fzf/themes/$theme" "$cfg/fzf/themes/theme"
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -90,6 +90,11 @@ Linux)
|
|||
[ -f "$sioyek_themes/$theme.config" ] && {
|
||||
ln -sf "$sioyek_themes/$theme.config" "$sioyek_themes/theme.config"
|
||||
}
|
||||
|
||||
fzf_themes="$cfg/fzf/themes"
|
||||
[ -f "$fzf_themes/$theme" ] && {
|
||||
ln -sf "$fzf_themes/$theme" "$fzf_themes/theme"
|
||||
}
|
||||
fi
|
||||
;;
|
||||
Darwin)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue