diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-03-07 23:44:21 +1100 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-03-07 23:44:21 +1100 |
| commit | 92c7b0654cce1ade622c8675cb37e522d0f13acf (patch) | |
| tree | 8c1a8bd5c77e53ea3545ffbbf873e80cc583a7d9 /scheme/gen-scheme.fish | |
| parent | install: add materialyoucolor dep (diff) | |
| download | caelestia-cli-92c7b0654cce1ade622c8675cb37e522d0f13acf.tar.gz caelestia-cli-92c7b0654cce1ade622c8675cb37e522d0f13acf.tar.bz2 caelestia-cli-92c7b0654cce1ade622c8675cb37e522d0f13acf.zip | |
scheme: allow choosing material scheme
Also actually monochrome monochrome scheme
Diffstat (limited to 'scheme/gen-scheme.fish')
| -rwxr-xr-x | scheme/gen-scheme.fish | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/scheme/gen-scheme.fish b/scheme/gen-scheme.fish index ae807cb..7ac0d0e 100755 --- a/scheme/gen-scheme.fish +++ b/scheme/gen-scheme.fish @@ -7,10 +7,15 @@ set -l src (dirname (status filename)) test -f "$argv[1]" && set -l img "$argv[1]" || set -l img $C_STATE/wallpaper/current set -l img (realpath $img) contains -- "$argv[2]" light dark && set -l theme $argv[2] || set -l theme dark +test -n "$argv[3]" && set -l scheme $argv[3] || set -l scheme (cat $C_STATE/scheme/dynamic-scheme.txt 2> /dev/null || echo 'vibrant') # Generate colours -test $theme = light && set -l lightness 50 || set -l lightness 70 -$src/autoadjust.py $theme (okolors $img -k 14 -w 0 -l $lightness) +if test $scheme = 'monochrome' + $src/autoadjust.py $theme $scheme (okolors $img -k 14) +else + test $theme = light && set -l lightness 50 || set -l lightness 70 + $src/autoadjust.py $theme $scheme (okolors $img -k 14 -w 0 -l $lightness) +end # Generate layers and accents -$src/genmaterial.py $img $theme | head -c -1 # Trim trailing newline +$src/genmaterial.py $img $theme $scheme | head -c -1 # Trim trailing newline |