mirror of
https://codeberg.org/ProgramSnail/config.git
synced 2026-01-11 14:07:17 +00:00
add dotfiles (including kitty & alacritty themes), add proxies, add writing & haskell roles
This commit is contained in:
parent
46bdf4dda0
commit
6561d54f45
346 changed files with 15329 additions and 0 deletions
15
roles/dotfiles/files/.config/kitty/kitty-themes/.tools/markdown.sh
Executable file
15
roles/dotfiles/files/.config/kitty/kitty-themes/.tools/markdown.sh
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
previews_root=$1
|
||||
# usually this value: https://raw.githubusercontent.com/dexpota/kitty-themes-website/master
|
||||
url_root=$2
|
||||
|
||||
for f in $(find "$previews_root/previews" -maxdepth 1 -mindepth 1 -type d | sort); do
|
||||
preview_file="$f"/preview.png
|
||||
theme=$(basename $f)
|
||||
relative_path=$(realpath --relative-to="$previews_root" "$preview_file")
|
||||
header=`basename $theme | sed 's/_/ /g'`
|
||||
image=""
|
||||
echo \#\# $header
|
||||
echo $image
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue