🥰 My dot files

Drops Catppuccin frappe theme

+32 -40
-24
.config/fish/conf.d/catppuccin_theme.fish
··· 1 - switch (date +%m) 2 - case 01 02 12 3 - set -g sunrise 7 4 - set -g sunset 16 5 - case 03 04 05 6 - set -g sunrise 7 7 - set -g sunset 16 8 - case 06 07 08 9 - set -g sunrise 5 10 - set -g sunset 20 11 - case 09 10 11 12 - set -g sunrise 7 13 - set -g sunset 17 14 - end 15 - 16 - set -l hour (date +%H) 17 - if test $hour -ge $sunrise -a $hour -lt $sunset 18 - set -g theme latte 19 - else 20 - set -g theme frappe 21 - end 22 - 23 - kitty @ set-colors -c "$HOME"/.config/kitty/catppuccin-"$theme".conf 24 - set -x CATPPUCCIN_THEME $theme
+4 -1
.config/fish/config.fish
··· 68 68 alias incognito "/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --incognito" 69 69 70 70 # bat 71 - set --export BAT_THEME OneHalfLight 71 + set --export BAT_THEME "Catppuccin Latte" 72 + 73 + # kitty 74 + kitty @ set-colors -c "$HOME"/.config/kitty/catppuccin-latte.conf 72 75 73 76 # direnv 74 77 if type -q direnv
+2
.config/kitty/kitty.conf
··· 379 379 380 380 #: Color scheme {{{ 381 381 382 + include catppuccin-latte.conf 383 + 382 384 # foreground #dddddd 383 385 # background #000000 384 386
+2 -8
.config/nvim/lua/config/catppuccin.lua
··· 1 - local theme = os.getenv("CATPPUCCIN_THEME") or "latte" 2 - vim.g.catppuccin_flavour = theme 1 + vim.g.catppuccin_flavour = "latte" 3 2 4 3 local colors = require("catppuccin.palettes").get_palette() 5 4 require("catppuccin").setup({ ··· 25 24 }) 26 25 27 26 vim.cmd("colorscheme catppuccin") 28 - 29 - if theme == "frappe" then 30 - vim.cmd("highlight NormalFloat guifg=#b9bcee guibg=#303445") 31 - else 32 - vim.cmd("highlight NormalFloat guifg=#4c4f69 guibg=#eff1f5") 33 - end 27 + vim.cmd("highlight NormalFloat guifg=#4c4f69 guibg=#eff1f5")
+24 -7
bootstrap.py
··· 11 11 CONFIG_FILE_NAMES = (".fdignore", ".gitconfig", ".gitignore_global", ".ripgreprc") 12 12 13 13 KITTY_CONF = HOME_DIR / ".config" / "kitty" 14 - CATPPUCCIN_THEMES = "https://raw.githubusercontent.com/catppuccin/kitty/main/themes/" 14 + CATPPUCCIN_KITTY_THEMES = "https://raw.githubusercontent.com/catppuccin/kitty/main/themes/" 15 + 16 + BAT_THEMES = HOME_DIR / ".config" / "bat" / "themes" 17 + CATPPUCCIN_BAT_THEMES = "https://raw.githubusercontent.com/catppuccin/bat/main/themes/" 15 18 16 19 IS_MAC = platform.system().lower() == "darwin" 17 20 FONT_KEYS = ("font_family", "bold_font", "italic_font", "bold_italic_font") ··· 78 81 (KITTY_CONF / "fonts.conf").write_text(fonts) 79 82 (KITTY_CONF / "shell.conf").write_text(f"shell\t{fish}") 80 83 81 - for theme in ("latte", "frappe"): 82 - path = KITTY_CONF / f"catppuccin-{theme}.conf" 83 - if path.exists(): 84 - continue 84 + path = KITTY_CONF / "catppuccin-latte.conf" 85 + if path.exists(): 86 + return 85 87 86 - url = f"{CATPPUCCIN_THEMES}{theme}.conf" 87 - download_as(url, path) 88 + url = f"{CATPPUCCIN_KITTY_THEMES}latte.conf" 89 + download_as(url, path) 90 + 91 + 92 + def configure_bat(): 93 + if not which("bat"): 94 + return 95 + 96 + BAT_THEMES.mkdir(parents=True, exist_ok=True) 97 + path = BAT_THEMES / "Catppuccin Latte.tmTheme" 98 + if path.exists(): 99 + return 100 + 101 + url = f"{CATPPUCCIN_BAT_THEMES}Catppuccin%20Latte.tmTheme" 102 + download_as(url, path) 103 + system("bat cache --build") 88 104 89 105 90 106 def install_dirvenv(): ··· 105 121 create_all_dirs() 106 122 create_all_symlinks() 107 123 configure_kitty() 124 + configure_bat() 108 125 install_dirvenv() 109 126 configure_nvim()