summaryrefslogtreecommitdiff
path: root/.local/bin/theme/get-gradient
blob: 91f93916a16d905afa240f52b2c1bdfe1b1d40a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/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