scheme: light/dark mode

This commit is contained in:
2 * r + 2 * t
2025-02-23 20:30:19 +11:00
parent 25cdb598c5
commit 557e1e4abe
4 changed files with 33 additions and 11 deletions
+1 -9
View File
@@ -31,15 +31,7 @@ if test "$argv[1]" = workspace-action
end
if test "$argv[1]" = scheme
set -l valid_schemes (path change-extension '' $src/data/schemes/* | sed 's!.*/!!')
if contains -- "$argv[2]" $valid_schemes
mkdir -p $C_STATE/scheme
cp $src/data/schemes/$argv[2].txt $C_STATE/scheme/current.txt
echo -n $argv[2] > $C_STATE/scheme/current-name.txt
log "Changed scheme to $argv[2]"
else
error "Invalid scheme: $argv[2]"
end
$src/scheme/main.fish $argv[2..]
exit
end