From cb8f5b4105d2308454a1c4880a37e7a3373f80e9 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Wed, 29 Jan 2025 22:48:29 +1100 Subject: vscode integration --- scheme/apply-scheme.fish | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'scheme') diff --git a/scheme/apply-scheme.fish b/scheme/apply-scheme.fish index 462b4d8..b61ac88 100755 --- a/scheme/apply-scheme.fish +++ b/scheme/apply-scheme.fish @@ -31,6 +31,15 @@ function gen-ini -a program end end +function gen-json + set -e jq_args + for colour in $argv + set -l split (string split ' ' $colour) + set -a jq_args --arg $split[1] "#$split[2]" + end + jq -n $jq_args '$ARGS.named' +end + function gen-gtk cp (dirname (status filename))/../data/gtk.template $CONFIG/gtk/schemes/dynamic.css for colour in $argv @@ -76,6 +85,11 @@ if test -d $CONFIG/../fuzzel/schemes gen-ini fuzzel $colours end +if test -d $CONFIG/vscode + log 'Generating VSCode scheme' + gen-json $colours > $CONFIG/vscode/schemes/dynamic.json +end + if test -d $CONFIG/gtk log 'Generating GTK+ schemes' gen-gtk $colours -- cgit v1.2.3-freya