diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-14 15:42:20 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-14 15:42:20 +1000 |
| commit | b5a91d3ca57d1369d0b7b502112c4b4c9849d26c (patch) | |
| tree | 8ea45e54e0b0c826f65f54ebf82e41cb68163221 /scheme/gen-print-scheme.fish | |
| parent | feat: impl pip subcommand (diff) | |
| download | caelestia-cli-b5a91d3ca57d1369d0b7b502112c4b4c9849d26c.tar.gz caelestia-cli-b5a91d3ca57d1369d0b7b502112c4b4c9849d26c.tar.bz2 caelestia-cli-b5a91d3ca57d1369d0b7b502112c4b4c9849d26c.zip | |
internal: remove all legacy fish scripts
Diffstat (limited to 'scheme/gen-print-scheme.fish')
| -rwxr-xr-x | scheme/gen-print-scheme.fish | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/scheme/gen-print-scheme.fish b/scheme/gen-print-scheme.fish deleted file mode 100755 index 6dfa482..0000000 --- a/scheme/gen-print-scheme.fish +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/env fish - -set -l src (dirname (status filename)) - -. $src/../util.fish - -test -f "$argv[1]" && set -l img (realpath "$argv[1]") || set -l img $C_STATE/wallpaper/thumbnail.jpg - -# Thumbnail image if not already thumbnail -if test $img != $C_STATE/wallpaper/thumbnail.jpg - set -l thumb_path $C_CACHE/thumbnails/(sha1sum $img | cut -d ' ' -f 1).jpg - if ! test -f $thumb_path - magick -define jpeg:size=256x256 $img -thumbnail 128x128\> $thumb_path - end - set img $thumb_path -end - -set -l variants vibrant tonalspot expressive fidelity fruitsalad rainbow neutral content monochrome -contains -- "$argv[2]" $variants && set -l variant $argv[2] || set -l variant (cat $C_STATE/scheme/current-variant.txt 2> /dev/null) -contains -- "$variant" $variants || set -l variant tonalspot - -set -l hash (sha1sum $img | cut -d ' ' -f 1) - -# Cache scheme -if ! test -d $C_CACHE/schemes/$hash/$variant - set -l colours ($src/score.py $img) - $src/autoadjust.py dark $variant $colours $C_CACHE/schemes/$hash - $src/autoadjust.py light $variant $colours $C_CACHE/schemes/$hash -end - -# Get mode from image -set -l lightness (magick $img -format '%[fx:int(mean*100)]' info:) -test $lightness -ge 60 && set -l mode light || set -l mode dark - -# Print scheme -cat $C_CACHE/schemes/$hash/$variant/default/$mode.txt |