gen-scheme: fix arg parsing

This commit is contained in:
2 * r + 2 * t
2025-02-25 17:46:23 +11:00
parent 6658e9cf28
commit 06522bf717
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -23,8 +23,7 @@ set -l src (dirname (status filename))
if test "$argv[1]" = --theme
set theme $argv[2]
set -e argv[1]
set -e argv[2]
set -e argv[1..2]
end
test -f "$argv[1]" && set -l img "$argv[1]" || set -l img $C_STATE/wallpaper/current
+1 -1
View File
@@ -116,7 +116,7 @@ else
set -l src (dirname (status filename))
set -q _flag_T && set -l theme --theme $_flag_T
$src/scheme/gen-scheme.fish $theme $chosen_wallpaper > $src/data/schemes/dynamic.txt
if test -f $C_STATE/scheme/current.txt -a "$(cat $C_STATE/scheme/current-name.txt)" = 'dynamic'
if test -f $C_STATE/scheme/current-name.txt -a "$(cat $C_STATE/scheme/current-name.txt)" = 'dynamic'
caelestia scheme dynamic > /dev/null
end