#!/bin/sh # Gets and sets a color gradient for cava start="$1" end="$2" colors=$(~/.local/bin/theme/gradient.py $start $end 7) num=1 path="$HOME/.config/cava/config" for color in $colors; do sed -i "s/gradient_color_$num.*$/gradient_color_$num = '$color'/" $path num=$((num+1)) done