Compare commits

...

3 Commits

Author SHA1 Message Date
sudo pacman -Syu b7315dda56 feat: add sioyek 2024-07-15 10:22:49 +07:00
sudo pacman -Syu 1d3b493bb5 config: add kitty catppuccin latte 2024-07-10 10:13:47 +07:00
sudo pacman -Syu b2034c8360 feat: cache http client 2024-07-10 10:12:55 +07:00
5 changed files with 103 additions and 1 deletions

View File

@ -41,4 +41,5 @@ go build ./cmd/dot
- [pokeget](https://github.com/talwat/pokeget-rs)
- [btop](https://github.com/aristocratos/btop)
- [newsboat](https://github.com/newsboat/newsboat)
- [sioyek](https://github.com/ahrm/sioyek)
- [daktilo](https://github.com/orhun/daktilo)

View File

@ -22,6 +22,10 @@ external = "~/.config/kitty/kitty.conf"
internal = "data/kitty/mocha.conf"
external = "~/.config/kitty/mocha.conf"
[[apps.kitty.paths]]
internal = "data/kitty/latte.conf"
external = "~/.config/kitty/latte.conf"
[[apps.kitty.paths]]
internal = "data/kitty/kitty-dark.icns"
external = "~/.config/kitty/kitty.app.icns"
@ -30,6 +34,10 @@ external = "~/.config/kitty/kitty.app.icns"
internal = "data/kitty/mocha.conf"
url = "https://raw.githubusercontent.com/catppuccin/kitty/main/themes/mocha.conf"
[[apps.kitty.paths]]
internal = "data/kitty/latte.conf"
url = "https://raw.githubusercontent.com/catppuccin/kitty/main/themes/latte.conf"
[[apps.kitty.paths]]
internal = "data/kitty/kitty-dark.icns"
url = "https://github.com/DinkDonk/kitty-icon/blob/main/kitty-dark.icns?raw=true"
@ -98,6 +106,10 @@ external = "~/.config/newsboat/dark"
internal = "data/newsboat/dark"
url = "https://raw.githubusercontent.com/catppuccin/newsboat/main/themes/dark"
[[apps.sioyek.paths]]
internal = "data/sioyek/prefs_user.config"
external = "~/.config/sioyek/prefs_user.config"
[[apps.daktilo.paths]]
internal = "data/daktilo/daktilo.toml"
external = "~/.config/daktilo/daktilo.toml"

80
data/kitty/latte.conf Normal file
View File

@ -0,0 +1,80 @@
# vim:ft=kitty
## name: Catppuccin Kitty Latte
## author: Catppuccin Org
## license: MIT
## upstream: https://github.com/catppuccin/kitty/blob/main/themes/latte.conf
## blurb: Soothing pastel theme for the high-spirited!
# The basic colors
foreground #4c4f69
background #eff1f5
selection_foreground #eff1f5
selection_background #dc8a78
# Cursor colors
cursor #dc8a78
cursor_text_color #eff1f5
# URL underline color when hovering with mouse
url_color #dc8a78
# Kitty window border colors
active_border_color #7287fd
inactive_border_color #9ca0b0
bell_border_color #df8e1d
# OS Window titlebar colors
wayland_titlebar_color system
macos_titlebar_color system
# Tab bar colors
active_tab_foreground #eff1f5
active_tab_background #8839ef
inactive_tab_foreground #4c4f69
inactive_tab_background #9ca0b0
tab_bar_background #bcc0cc
# Colors for marks (marked text in the terminal)
mark1_foreground #eff1f5
mark1_background #7287fd
mark2_foreground #eff1f5
mark2_background #8839ef
mark3_foreground #eff1f5
mark3_background #209fb5
# The 16 terminal colors
# black
color0 #5c5f77
color8 #6c6f85
# red
color1 #d20f39
color9 #d20f39
# green
color2 #40a02b
color10 #40a02b
# yellow
color3 #df8e1d
color11 #df8e1d
# blue
color4 #1e66f5
color12 #1e66f5
# magenta
color5 #ea76cb
color13 #ea76cb
# cyan
color6 #179299
color14 #179299
# white
color7 #acb0be
color15 #bcc0cc

View File

@ -0,0 +1,7 @@
font_size 14
ui_font Shantell Sans Normal
status_bar_font_size 14
should_launch_new_window 1
super_fast_search 1
horizontal_move_amount -1.0

View File

@ -197,6 +197,8 @@ func (c *cfg) Download(appNames ...string) error {
URL: p.URL,
}
httpClient := &http.Client{}
eg.Go(func() error {
if c.isDryRun {
fmt.Printf("Download [%s] -> [%s]\n", p.URL, p.Internal)
@ -204,7 +206,7 @@ func (c *cfg) Download(appNames ...string) error {
}
// nolint:noctx,gosec
httpRsp, err := http.Get(p.URL)
httpRsp, err := httpClient.Get(p.URL)
if err != nil {
return fmt.Errorf("http client: failed to get: %w", err)
}