On single digit days, there appears to be a space there.

Accommodate for that with regex.
This commit is contained in:
Bradley M. Kuhn 2013-09-02 17:18:44 -04:00
parent 7b17465eb1
commit ad55df2066

View file

@ -54,9 +54,9 @@ ${color2}${goto 5}${font DejaVu Sans:size=30}${time %H}${font DejaVu Sans:size=2
${voffset 13}${font Inconsolata:size=13}${execpi 405 ~/hacks/Small-Hacks/org-mode-appt-check.plx} ${voffset 13}${font Inconsolata:size=13}${execpi 405 ~/hacks/Small-Hacks/org-mode-appt-check.plx}
${color4}$hr ${color4}$hr
${color}${font Inconsolata:size=11}${execpi 810 /usr/bin/gcal -H T:t:H:h .. | /usr/bin/perl -ne 'next if /^\s*\d*\s*$/; s/T(\d+)t/\${color7} $1 \${color}/g; print;'} ${color}${font Inconsolata:size=11}${execpi 810 /usr/bin/gcal -H T:t:H:h .. | /usr/bin/perl -ne 'next if /^\s*\d*\s*$/; s/T(\s*\d+\s*)t/\${color7} $1 \${color}/g; print;'}
${color}${font Inconsolata:size=11}${execpi 810 /usr/bin/gcal -H T:t:H:h %`date +"%Y%m%d" --date='3 months'` ..| /usr/bin/perl -ne 'next if /^\s*\d*\s*$/; s/T(\d+)t/ $1 /g; print;'} ${color}${font Inconsolata:size=11}${execpi 810 /usr/bin/gcal -H T:t:H:h %`date +"%Y%m%d" --date='3 months'` ..| /usr/bin/perl -ne 'next if /^\s*\d*\s*$/; s/T(\s*\d+\s*)t/ $1 /g; print;'}
${voffset -10}${color2}${font led:size=10}CPU ${font}$hr ${voffset -10}${color2}${font led:size=10}CPU ${font}$hr
Overall temperature: ${acpitemp}°C Overall temperature: ${acpitemp}°C