mirror of
https://github.com/caelestia-dots/cli.git
synced 2026-06-05 23:09:27 -05:00
gen-scheme: fix arg parsing
This commit is contained in:
@@ -23,8 +23,7 @@ set -l src (dirname (status filename))
|
|||||||
|
|
||||||
if test "$argv[1]" = --theme
|
if test "$argv[1]" = --theme
|
||||||
set theme $argv[2]
|
set theme $argv[2]
|
||||||
set -e argv[1]
|
set -e argv[1..2]
|
||||||
set -e argv[2]
|
|
||||||
end
|
end
|
||||||
|
|
||||||
test -f "$argv[1]" && set -l img "$argv[1]" || set -l img $C_STATE/wallpaper/current
|
test -f "$argv[1]" && set -l img "$argv[1]" || set -l img $C_STATE/wallpaper/current
|
||||||
|
|||||||
+1
-1
@@ -116,7 +116,7 @@ else
|
|||||||
set -l src (dirname (status filename))
|
set -l src (dirname (status filename))
|
||||||
set -q _flag_T && set -l theme --theme $_flag_T
|
set -q _flag_T && set -l theme --theme $_flag_T
|
||||||
$src/scheme/gen-scheme.fish $theme $chosen_wallpaper > $src/data/schemes/dynamic.txt
|
$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
|
caelestia scheme dynamic > /dev/null
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user