sxmo-utils/configs/appcfg/conky.conf
tetrakist f8995ad25c Fix large conky shadow when using large fonts.
After HiDPI was enabled, larger font sizes were needed in conky.conf.
Due to conky weirdness, this requires the addition of ${font} at the end
of the conky.text = [[ ]] section in conky.conf to prevent weird large
offsets for the drop shadow. This returns the shadow a ~1 pixel
offset.

See https://forums.gentoo.org/viewtopic-p-7132288.html

Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-03-24 21:43:53 +01:00

37 lines
1 KiB
Text

conky.config = {
alignment = 'middle_middle',
background = false,
border_width = 0.5,
cpu_avg_samples = 4,
default_color = 'white',
default_outline_color = 'grey',
default_shade_color = 'black',
draw_borders = true,
draw_graph_borders = true,
draw_outline = false,
draw_shades = true,
use_xft = true,
font = 'DejaVu Sans Mono:size=10',
gap_x = 5,
gap_y = 50,
minimum_height = 5,
minimum_width = 5,
net_avg_samples = 2,
double_buffer = true,
out_to_console = false,
out_to_stderr = false,
extra_newline = false,
own_window = false,
stippled_borders = 1,
update_interval = 60,
uppercase = false,
use_spacer = 'none',
show_graph_scale = false,
show_graph_range = false
}
conky.text = [[
${font Latin Modern Mono Caps:size=60}${alignc}${exec date +"%I:%M"}${font Latin Modern Mono Caps:size=15}${exec date +"%P" | tr 'amp' 'AMP'}
${font Latin Modern Mono Caps:size=10}${alignc}${exec date +"%b %d, %Y"}
${font}
]]