Here is the 3-month calendar I have settled on:
The current month calendar I was able to make the month and year display at top be in a customized font without damaging the formatting of the day names and columns of numbers.
The .sh scripts for next & previous months however are notable shorter script than current.sh's Can anyone please determine if I can just get the month name and year display for previous and next scripted for individual font color?
current.sh
Code: Select all
#!/bin/bash
YEAR=`date +%_Y`;TDY=`date +%_d`;MTH=`date +%_B`; cal | sed s/"\([^a-zA-Z]\)$MTH"'\b'/'${color white}${font Neon 80s:bold:size=11} '" $MTH"'${color}'/ | sed s/"\([^0-9]\)$YEAR"'\b'/'${color white}'" $YEAR"'${color white}${font}'/ | sed s/"\([^0-9]\)$TDY"'\b'/'${color red}'" $TDY"'${color white}'/ | sed s/^/'${alignc}'/
Code: Select all
#!/bin/bash
YEAR=`date --date='next month' +%_Y`; MONTH=`date --date='next month' +%_m`; MTH=`date --date='next month' +%_B`; cal -m $MONTH $YEAR | sed s/"\([^a-zA-Z]\)$MTH"'\b'/'${color white}'" $MTH"'${color white}'/ | sed s/"\([^0-9]\)$YEAR"'\b'/'${color white}'" $YEAR"'${color white}'/ | sed s/^/'${alignr 30}'/
Code: Select all
#!/bin/bash
YEAR=`date --date='1 month ago' +%_Y`; MONTH=`date --date='1 month ago' +%_m`;MTH=`date --date='1 month ago' +%_B`; cal -m $MONTH $YEAR | sed s/"\([^a-zA-Z]\)$MTH"'\b'/'${color white}'" $MTH"'${color white}'/ | sed s/"\([^0-9]\)$YEAR"'\b'/'${color white}'" $YEAR"'${color white}'/ | sed s/^/'${offset 30}'/