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
24
roles/dotfiles/files/.config/kitty/kitty-themes/.tools/previews.sh
Executable file
24
roles/dotfiles/files/.config/kitty/kitty-themes/.tools/previews.sh
Executable file
|
|
@ -0,0 +1,24 @@
|
|||
#!/bin/bash
|
||||
# @author: @vrdhn on github
|
||||
|
||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
||||
cd $SCRIPT_DIR/..
|
||||
|
||||
set_theme () {
|
||||
cat themes/$1.conf | awk 'BEGIN {printf("kitty @ set-colors ")} {printf( "%s=%s ",$1,$2 )} END{printf("\n")}' | sh
|
||||
}
|
||||
|
||||
list=$(find themes -type f | grep "$1" | xargs basename | cut -d. -f1)
|
||||
|
||||
for x in $list ;
|
||||
do
|
||||
kitty +kitten icat "previews/$x.png"
|
||||
read -n 1 -p "$x : Next / Set / Quit :" ans
|
||||
echo
|
||||
|
||||
case $ans in
|
||||
n ) ;;
|
||||
s ) set_theme $x ; exit ;;
|
||||
q ) exit ;;
|
||||
esac
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue