Option to have time, battery, and more widgets dynamically padded/spaced (example inside)

touch-bar

#1

Say I have my setup set as a mini control strip on the side. Every time the clock changes from, say, 9:59 to 10:00 it makes the entire widget bigger, messing up the layout in the process. Same goes for battery, weather, etc. I fixed this with an AppleScript widget, but I'd love to see something like this in the default widgets instead.

Here was my solution for the clock:

do shell script "time=`date +%H%M | awk '{$1=$1;print}'`
if ((time >= 1000 && time <= 1300)) || ((time >= 2200 && time <= 2500)); then
date +\"%l:%M %p\" | awk '{$1=$1;print}'
else 
date +\"%l:%M %p\" | awk '{$1=$1;print}' | sed 's/$/   /'
fi"

(I know it could be in a shell script widget, but the background on the code editor for that widget is all jacked up in dark mode.)

So that code above essentially adds padding for 1:00-9:59 or so, and adjust and makes smaller for 10:00-12:59.

Hope you help!