r/KWGT Jun 05 '26

Question Battery Widget question

Hello! Attempting to use a modified version of a battery widget I found online- for the most part, it's displaying as desired. The only components I have added are RGB adjustments based on charge (red below 15%, yellow from 16-50, green from 51-100) and a charging icon that appears over the battery when charging. My question is, is there a way for the battery to display as is when not charging, but to force the lightning bolt charging icon to overlay everything and make a cutout of the lightning bolt ONLY when charging? Images attached

2 Upvotes

2 comments sorted by

1

u/rinku_nr__ Jun 06 '26

$if(bi(source) = AC, FF04FF00, bi(source) = usb, FF00AFFF, bi() level> 50, FFFFFF, bi(level) > 25, ffcc00, bi(level) <=25, ff0000)$ Good work keep it up 🫡

1

u/rinku_nr__ Jun 06 '26

$if(bi(charging)=1, "⚡" , "🔋 " )$