I am set up with a set of conky scripts to display either a current month, or a 3 month previous/current/next month calendar set.
I understand that the numerals must be in a specific font type in which every number takes up the same amount of screen space. Sloppier fonts, like the Neon 80s that I am using as a default system font, has numbers of various outline widths and cannot form clean columns of day of the week numbers underneath the day of the week names.
So on my current calendar, I do have Neon 80s displaying the month and year, but the Monaco font is used for day of the week names and day of the week numbers.
I want to experiment and see if I can make the days of the week abbreviations display in Neon 80s while keeping the numbers themselves in Monaco.
Can anyone take a look at these two scripts and determine if separating the day of the week and number of the day displays into two fonts is possible?
Thanks for reading!
Logan
conky.conf:
Code: Select all
-- needs package cal (provided by ncal) - sudo apt install ncal
conky.config = {
own_window = true,
own_window_type = 'normal',
own_window_transparent = true,
own_window_argb_visual = true,
own_window_hints = 'skip_taskbar,skip_pager,undecorated,below',
own_window_class = 'Conky',
own_window_argb_visual = true,
background = true,
update_interval = 60,
double_buffer = true,
alignment = 'top_left',
gap_x = 180,-- left | right
gap_y = -20,-- up | down
minimum_width = 172, minimum_height = 174,
maximum_width = 172,
use_xft = true,
draw_outline = false,
draw_shades = true,
font = 'Monaco:size=9',
default_color = 'e82127',
};
conky.text = [[
${voffset 31}${execpi 60 ./currentmonth.sh}
# ${alignc}${voffset 3}${color white}${font Monaco:bold:size=10}${time %A %B %e, %Y}${font}${color}
]];
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}'/