clock colors

master
Daniel Napora 2023-06-03 16:55:17 +02:00
parent a595eeae34
commit 18b3d9a73f
1 changed files with 5 additions and 0 deletions

View File

@ -205,6 +205,10 @@ clock2_fontsize(){
L2_FONT="${FL2[@]::${#FL2[@]}-1}" # this is crazy... all array elements but last
sd "^time2_font.*$" "time2_font = ${L2_FONT} ${1}" ${T2CONFFILE}
}
clockcolor(){
read CLR OPA <<< "$(grep "clock_font_color" ${T2CONFFILE} | cut -d'=' -f2)"
sd "clock_font_color.*$" "clock_font_color = ${1} $OPA" ${T2CONFFILE}
}
panel_background_id(){
sd "panel_background_id.*$" "panel_background_id = ${1}" ${T2COLORFILE}
@ -254,6 +258,7 @@ case "$1" in
reset) reset "$2" ;;
clock1_fontsize) clock1_fontsize "$2";;
clock2_fontsize) clock2_fontsize "$2";;
clockcolor) clockcolor "$2";;
panel_background_id)panel_background_id "$2";;
button_background_id)button_background_id "$2";;
task_background_id)task_background_id "$2";;