cavactl upd

This commit is contained in:
2026-02-18 00:09:47 +01:00
parent 02faf5ceb3
commit a2fad850fb

View File

@@ -26,7 +26,7 @@ foregroundcolor(){
foreground() { foreground() {
sd ".*foreground .*" "foreground = '${1}'" ${CFGFILE} sd ".*foreground .*" "foreground = '${1}'" ${CFGFILE}
sd ".*gradient .*" "gradient = 0" ${CFGFILE} sd ".*gradient .*" "gradient = 0" ${CFGFILE}
reload_colors reload_config
} }
gradientcolors() { gradientcolors() {
n=1 n=1
@@ -46,7 +46,7 @@ for i in $(pastel gradient -n 3 ${1} ${2}|pastel format hex)
sd ".*gradient .*" "gradient = 1" ${CFGFILE} sd ".*gradient .*" "gradient = 1" ${CFGFILE}
sd ".*gradient_count .*" "gradient_count = 3" ${CFGFILE} sd ".*gradient_count .*" "gradient_count = 3" ${CFGFILE}
reload_colors reload_config
} }
grad_from() { grad_from() {
read GR_TO <<< "$(grep '.*gradient_color_3 ' ${CFGFILE} | cut -d"'" -f2)" read GR_TO <<< "$(grep '.*gradient_color_3 ' ${CFGFILE} | cut -d"'" -f2)"