diff options
| author | Robert Günzler <r@gnzler.io> | 2020-06-01 18:09:31 +0200 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2020-06-01 18:09:31 +0200 |
| commit | f8bc20891f8f69b21670b80bed73a85449e5fa6a (patch) | |
| tree | 341ae0b419d536bc69322170abd709fcb9f753ae /.config/alacritty/swap_colors.sh | |
| parent | d602bb1e4835ea1f1c6a8b494ffc191074fc1b43 (diff) | |
alacritty: generate config from template and color config
add script for switching between colors
Diffstat (limited to '.config/alacritty/swap_colors.sh')
| -rwxr-xr-x | .config/alacritty/swap_colors.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/.config/alacritty/swap_colors.sh b/.config/alacritty/swap_colors.sh new file mode 100755 index 0000000..d7a634c --- /dev/null +++ b/.config/alacritty/swap_colors.sh @@ -0,0 +1,8 @@ +#!/bin/sh +set -e +new_colors=$1 +config_file_tpl=${2:-alacritty.tpl.yml} +config_file=${3:-alacritty.yml} + +set -x +yq m -x "$config_file_tpl" "$new_colors" > "$config_file" |