tangled
alpha
login
or
join now
cuducos.me
/
dotfiles
0
fork
atom
🥰 My dot files
0
fork
atom
overview
issues
pulls
pipelines
Drops Catppuccin frappe theme
Eduardo Cuducos
3 months ago
2c3de4a7
35f50a0c
+32
-40
5 changed files
expand all
collapse all
unified
split
.config
fish
conf.d
catppuccin_theme.fish
config.fish
kitty
kitty.conf
nvim
lua
config
catppuccin.lua
bootstrap.py
-24
.config/fish/conf.d/catppuccin_theme.fish
reviewed
···
1
1
-
switch (date +%m)
2
2
-
case 01 02 12
3
3
-
set -g sunrise 7
4
4
-
set -g sunset 16
5
5
-
case 03 04 05
6
6
-
set -g sunrise 7
7
7
-
set -g sunset 16
8
8
-
case 06 07 08
9
9
-
set -g sunrise 5
10
10
-
set -g sunset 20
11
11
-
case 09 10 11
12
12
-
set -g sunrise 7
13
13
-
set -g sunset 17
14
14
-
end
15
15
-
16
16
-
set -l hour (date +%H)
17
17
-
if test $hour -ge $sunrise -a $hour -lt $sunset
18
18
-
set -g theme latte
19
19
-
else
20
20
-
set -g theme frappe
21
21
-
end
22
22
-
23
23
-
kitty @ set-colors -c "$HOME"/.config/kitty/catppuccin-"$theme".conf
24
24
-
set -x CATPPUCCIN_THEME $theme
+4
-1
.config/fish/config.fish
reviewed
···
68
68
alias incognito "/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --incognito"
69
69
70
70
# bat
71
71
-
set --export BAT_THEME OneHalfLight
71
71
+
set --export BAT_THEME "Catppuccin Latte"
72
72
+
73
73
+
# kitty
74
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
reviewed
···
379
379
380
380
#: Color scheme {{{
381
381
382
382
+
include catppuccin-latte.conf
383
383
+
382
384
# foreground #dddddd
383
385
# background #000000
384
386
+2
-8
.config/nvim/lua/config/catppuccin.lua
reviewed
···
1
1
-
local theme = os.getenv("CATPPUCCIN_THEME") or "latte"
2
2
-
vim.g.catppuccin_flavour = theme
1
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
28
-
29
29
-
if theme == "frappe" then
30
30
-
vim.cmd("highlight NormalFloat guifg=#b9bcee guibg=#303445")
31
31
-
else
32
32
-
vim.cmd("highlight NormalFloat guifg=#4c4f69 guibg=#eff1f5")
33
33
-
end
27
27
+
vim.cmd("highlight NormalFloat guifg=#4c4f69 guibg=#eff1f5")
+24
-7
bootstrap.py
reviewed
···
11
11
CONFIG_FILE_NAMES = (".fdignore", ".gitconfig", ".gitignore_global", ".ripgreprc")
12
12
13
13
KITTY_CONF = HOME_DIR / ".config" / "kitty"
14
14
-
CATPPUCCIN_THEMES = "https://raw.githubusercontent.com/catppuccin/kitty/main/themes/"
14
14
+
CATPPUCCIN_KITTY_THEMES = "https://raw.githubusercontent.com/catppuccin/kitty/main/themes/"
15
15
+
16
16
+
BAT_THEMES = HOME_DIR / ".config" / "bat" / "themes"
17
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
81
-
for theme in ("latte", "frappe"):
82
82
-
path = KITTY_CONF / f"catppuccin-{theme}.conf"
83
83
-
if path.exists():
84
84
-
continue
84
84
+
path = KITTY_CONF / "catppuccin-latte.conf"
85
85
+
if path.exists():
86
86
+
return
85
87
86
86
-
url = f"{CATPPUCCIN_THEMES}{theme}.conf"
87
87
-
download_as(url, path)
88
88
+
url = f"{CATPPUCCIN_KITTY_THEMES}latte.conf"
89
89
+
download_as(url, path)
90
90
+
91
91
+
92
92
+
def configure_bat():
93
93
+
if not which("bat"):
94
94
+
return
95
95
+
96
96
+
BAT_THEMES.mkdir(parents=True, exist_ok=True)
97
97
+
path = BAT_THEMES / "Catppuccin Latte.tmTheme"
98
98
+
if path.exists():
99
99
+
return
100
100
+
101
101
+
url = f"{CATPPUCCIN_BAT_THEMES}Catppuccin%20Latte.tmTheme"
102
102
+
download_as(url, path)
103
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
124
+
configure_bat()
108
125
install_dirvenv()
109
126
configure_nvim()