How to fix conky font issue?

Post your terminal/konsole in- and output as text (no pictures) from:

System:
  Kernel: 5.16.0-zen1-1-zen x86_64 bits: 64 compiler: gcc v: 11.1.0
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
    root=UUID=6b13a369-b041-4975-8b36-e67239723d2c rw [email protected]
    quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0 loglevel=3
  Desktop: i3 4.20.1 info: i3bar vt: 7 dm: LightDM 1.30.0
    Distro: Garuda Linux base: Arch Linux
Machine:
  Type: Laptop System: Acer product: Nitro AN515-54 v: V1.33
    serial: <superuser required>
  Mobo: CFL model: Octavia_CFS v: V1.33 serial: <superuser required>
    UEFI: Insyde v: 1.33 date: 11/17/2020
Battery:
  ID-1: BAT1 charge: 41.3 Wh (100.0%) condition: 41.3/58.8 Wh (70.2%)
    volts: 16.5 min: 15.4 model: SMP AP18E7M type: Li-ion serial: <filter>
    status: Full
CPU:
  Info: model: Intel Core i7-9750H bits: 64 type: MT MCP arch: Coffee Lake
    family: 6 model-id: 0x9E (158) stepping: 0xA (10) microcode: 0xEA
  Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache:
    L1: 384 KiB desc: d-6x32 KiB; i-6x32 KiB L2: 1.5 MiB desc: 6x256 KiB
    L3: 12 MiB desc: 1x12 MiB
  Speed (MHz): avg: 866 high: 1108 min/max: 800/4500 scaling:
    driver: intel_pstate governor: powersave cores: 1: 1108 2: 851 3: 872
    4: 854 5: 800 6: 803 7: 802 8: 876 9: 900 10: 900 11: 801 12: 835
    bogomips: 62399
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf
    mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable
  Type: meltdown mitigation: PTI
  Type: spec_store_bypass
    mitigation: Speculative Store Bypass disabled via prctl
  Type: spectre_v1
    mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional,
    IBRS_FW, STIBP: conditional, RSB filling
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel CoffeeLake-H GT2 [UHD Graphics 630]
    vendor: Acer Incorporated ALI driver: i915 v: kernel bus-ID: 00:02.0
    chip-ID: 8086:3e9b class-ID: 0300
  Device-2: NVIDIA TU117M [GeForce GTX 1650 Mobile / Max-Q]
    vendor: Acer Incorporated ALI driver: nvidia v: 495.46
    alternate: nouveau,nvidia_drm bus-ID: 01:00.0 chip-ID: 10de:1f91
    class-ID: 0300
  Device-3: Quanta HD Webcam type: USB driver: uvcvideo bus-ID: 1-5:3
    chip-ID: 0408:a060 class-ID: 0e02 serial: <filter>
  Display: x11 server: X.Org 1.21.1.3 driver: loaded: modesetting,nvidia
    display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1848 s-dpi: 96 s-size: 506x487mm (19.9x19.2")
    s-diag: 702mm (27.6")
  Monitor-1: eDP-1 res: 1920x1080 hz: 60 dpi: 142
    size: 344x193mm (13.5x7.6") diag: 394mm (15.5")
  Monitor-2: HDMI-1-0 res: 1366x768 hz: 60 dpi: 85
    size: 410x230mm (16.1x9.1") diag: 470mm (18.5")
  Message: Unable to show advanced data. Required tool glxinfo missing.
Audio:
  Device-1: Intel Cannon Lake PCH cAVS vendor: Acer Incorporated ALI
    driver: snd_hda_intel v: kernel
    alternate: snd_soc_skl,snd_sof_pci_intel_cnl bus-ID: 00:1f.3
    chip-ID: 8086:a348 class-ID: 0403
  Device-2: NVIDIA vendor: Acer Incorporated ALI driver: snd_hda_intel
    v: kernel bus-ID: 01:00.1 chip-ID: 10de:10fa class-ID: 0403
  Sound Server-1: ALSA v: k5.16.0-zen1-1-zen running: yes
  Sound Server-2: JACK v: 1.9.19 running: no
  Sound Server-3: PulseAudio v: 15.0 running: no
  Sound Server-4: PipeWire v: 0.3.43 running: yes
Network:
  Device-1: Intel Cannon Lake PCH CNVi WiFi driver: iwlwifi v: kernel
    bus-ID: 00:14.3 chip-ID: 8086:a370 class-ID: 0280
  IF: wlp0s20f3 state: up mac: <filter>
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Acer Incorporated ALI driver: r8169 v: kernel port: 3000
    bus-ID: 06:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp6s0 state: down mac: <filter>
  IF-ID-1: br-d4230d5827ef state: down mac: <filter>
  IF-ID-2: docker0 state: down mac: <filter>
  IF-ID-3: ppp0 state: unknown speed: N/A duplex: N/A mac: N/A
Bluetooth:
  Device-1: Intel Bluetooth 9460/9560 Jefferson Peak (JfP) type: USB
    driver: btusb v: 0.8 bus-ID: 1-14:4 chip-ID: 8087:0aaa class-ID: e001
  Report: bt-adapter ID: hci0 rfk-id: 1 state: down
    bt-service: enabled,running rfk-block: hardware: no software: no
    address: <filter>
RAID:
  Hardware-1: Intel 82801 Mobile SATA Controller [RAID mode] driver: ahci
    v: 3.0 port: 5060 bus-ID: 00:17.0 chip-ID: 8086:282a rev: N/A
    class-ID: 0104
Drives:
  Local Storage: total: 931.51 GiB used: 43.69 GiB (4.7%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/sda maj-min: 8:0 vendor: Crucial model: CT1000MX500SSD4
    size: 931.51 GiB block-size: physical: 4096 B logical: 512 B
    speed: 6.0 Gb/s type: SSD serial: <filter> rev: 023 scheme: GPT
Partition:
  ID-1: / raw-size: 442.94 GiB size: 442.94 GiB (100.00%)
    used: 15.48 GiB (3.5%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
  ID-2: /boot/efi raw-size: 301 MiB size: 300.4 MiB (99.79%)
    used: 576 KiB (0.2%) fs: vfat dev: /dev/sda1 maj-min: 8:1
  ID-3: /home raw-size: 442.94 GiB size: 442.94 GiB (100.00%)
    used: 15.48 GiB (3.5%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
  ID-4: /var/log raw-size: 442.94 GiB size: 442.94 GiB (100.00%)
    used: 15.48 GiB (3.5%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
  ID-5: /var/tmp raw-size: 442.94 GiB size: 442.94 GiB (100.00%)
    used: 15.48 GiB (3.5%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: zram size: 31.19 GiB used: 0 KiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 47.0 C pch: 62.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 332 Uptime: 50m wakeups: 1 Memory: 31.19 GiB
  used: 3.33 GiB (10.7%) Init: systemd v: 250 tool: systemctl Compilers:
  gcc: 11.1.0 clang: 13.0.0 Packages: pacman: 1256 lib: 314 Shell: Zsh v: 5.8
  running-in: alacritty inxi: 3.3.11

My conky setup is showing empty boxes around time and date. I tried changing font in ~/.config/conky/conky.conf but it did not fix. I changed the font to source code pro from sans mono.

This is how it looks now

I see the font does display for "OS" and "KERNEL" down below, what font is conky using there?

Posting your conky.conf might help.

2 Likes

Seems you use i3 very long, Os:

image

${alignr}${font sans mono:size=20}${color1}${time %H:%M}
${alignr}${font sans mono:size=12}${color1}${time %a. %d.%m.%Y}${font}
5 Likes

It works, but there are few boxes left.

conky.config = {
  background = true,
  update_interval = 1,

  cpu_avg_samples = 2,
  net_avg_samples = 2,
  temperature_unit = 'celsius',
  if_up_strictness = 'address',

  double_buffer = true,
  no_buffers = true,
  text_buffer_size = 2048,

  own_window = true,
  own_window_class = 'conky',
  own_window_type = 'override',
  own_window_hints = 'undecorated,sticky,skip_taskbar,skip_pager,below',

  --own_window_colour = '#555555',
  own_window_transparent = true,
  own_window_argb_visual = true,
  own_window_argb_value = 0,

  draw_shades = false,
  draw_outline = false,
  draw_borders = false,
  draw_graph_borders = false,

  alignment = 'top_left',
	gap_x = 50,
	gap_y = 40,
  minimum_width = 400,
  minimum_height = 700,
  maximum_width = 420,
  border_inner_margin = 0,
  border_outer_margin = 20,
  --xinerama_head = 0,

  override_utf8_locale = true,
  use_xft = true,
  font = 'monospace:size=9',
  xftalpha = 0.8,
  uppercase = false,

  -- Defining colors
  default_color = '#FFFFFF',
  -- Shades of Gray
  color1 = '#DDDDDD',
  color2 = '#AAAAAA',
  color3 = '#FFFFFF',
  color4 = '#808080',
  color5 = '#EF5A29',
  color6 = '#b2c8d8',
  color7 = '#b2c8d8',
  color8 = '#697987',
  color9 = '#2d3b41',

}
conky.text = [[
# focused_workspace background #16a085 to #5D7B86
#                     border  backgr. text
# focused_workspace  #F9FAF9 #16a085 #292F34
${image /usr/share/icons/garuda/garuda-white.png -p 10,0 -s 78x59  -f 5}${font sans mono:size=10}${alignr}${color6}${alignc}
${alignr}${font sans mono:size=20}${color1}${time %H:%M}
${alignr}${font sans mono:size=12}${color1}${time %a. %d.%m.%Y}${font}
${color1} ${font}
 ${alignr}${color3}${color}
${goto 12}+-----------------------------------------------------------+
${goto 12}${color1}+----System ${color}
${goto 15}|${goto 40}|
${goto 15}|${goto 38}+-- ${color3}Os:${alignr}${color6}${execi 130000 awk -F= '/DESCRIPTION=/{print $2}' /etc/lsb-release}${color}
${goto 15}|${goto 38}+-- ${color3}Kernel:${alignr}${color6}${kernel}${color}
${goto 15}|${goto 38}+-- ${color3}User:${alignr}${color6}${execi 11003 whoami}${color}
#${goto 15}|${goto 38}+-- ${color3}Node:${alignr}${color6}${nodename}${font}${color}
#${goto 15}|${goto 38}+-- ${color3}Machine:${alignr}${color6}${machine}${color}
${goto 15}|${goto 38}+-- ${color3}Uptime:${alignr}${color6}${uptime_short}${color}
${goto 15}|${goto 38}+-- ${color3}Entropy${alignr}${color1}${entropy_perc}% ${color6}(${entropy_avail}/${entropy_poolsize})${color}
${goto 15}|
${goto 12}${color1}+----Status${color}
${goto 15}|${goto 40}|
${goto 15}|${goto 38}${color1}+-- Cpu ${color}
${goto 15}|${goto 40}|${goto 60}+-- ${color3}Usage${alignr}${color1}${cpu cpu0}% ${color6}- ${freq_g}GHz${color}
${goto 15}|${goto 40}|${goto 60}+-- ${color3}LoadAvg${alignr}${color6}${loadavg}${color}
${goto 15}|${goto 40}|${goto 60}+-- ${color3}Temp${alignr}${color1}${execi 10 sensors | grep 'Core 0' | awk {'print $3'}}${color}
${goto 15}|${goto 40}|
${goto 15}|${goto 38}+-- ${color1}Ram${color}
${goto 15}|${goto 40}|${goto 60}+-- ${color3}Total${alignr}${color6}${memmax}${color}
${goto 15}|${goto 40}|${goto 60}+-- ${color3}In Use${alignr}${color6}${mem} ${color1}(${memperc}%)${color}
${goto 15}|${goto 40}|${goto 60}+-- ${color3}Free${alignr}${color6}${memfree}${color}
${goto 15}|${goto 40}|${goto 60}+-- ${color3}Up to${alignr}${color6}${memeasyfree}${color}
${goto 15}|${goto 40}|
${goto 15}|${goto 38}+-- ${color1}Swap${color}
${goto 15}|${goto 40}|${goto 60}+-- ${color3}Total${alignr}${color6}${swapmax}${color}
${goto 15}|${goto 40}|${goto 60}+-- ${color3}Used${alignr}${color6}${swap} - ${swapperc}%${color}
${goto 15}|${goto 40}|${goto 60}+-- ${color3}Free${alignr}${color6}${swapfree}${color}
${goto 15}|${goto 40}|
${goto 15}|${goto 38}${color1}+-- Storage ${color}
${goto 15}|${goto 40}|${goto 60}+-- ${color3}Total${alignr}${color6}${fs_size /}${color}
${goto 15}|${goto 40}|${goto 60}+-- ${color3}Used${alignr}${color6}${fs_used /} ${color1}(${fs_used_perc}%)
${goto 15}|${goto 40}|${goto 60}+-- ${color3}Free${alignr}${color6}${fs_free /}${color}
${goto 15}|${goto 40}|
${goto 15}|${goto 38}${color1}+-- Diskio ${color}
${goto 15}|${goto 40}|${goto 60}+-- ${color3}Read${alignr}${color6}${diskio_read}${color}
${goto 15}|${goto 40}|${goto 60}+-- ${color3}Write${alignr}${color6}${diskio_write}${color}
${goto 15}|${goto 40}|
${goto 12}${color1}+----Processes ${color}
${goto 15}|${goto 40}|
${goto 15}|${goto 38}+-- ${color3}Total${alignr}${color6}${processes}${color}
${goto 15}|${goto 38}+-- ${color3}Running${alignr}${color6}${running_processes}${color}
${goto 15}|${goto 40}|
${goto 15}|${goto 38}+-- ${color1}Cpu${color}
${goto 15}|${goto 40}|${goto 60}+-- ${color3}${top name 1}${alignr}${color6}${top cpu 1}${top mem 1}${color}
${goto 15}|${goto 40}|${goto 60}+-- ${color3}${top name 2}${alignr}${color6}${top cpu 2}${top mem 2}${color}
${goto 15}|${goto 40}|${goto 60}+-- ${color3}${top name 3}${alignr}${color6}${top cpu 3}${top mem 3}${color}
${goto 15}|
${goto 15}|${goto 38}+-- ${color1}Mem${color}
${goto 15}|${goto 40}|${goto 60}+-- ${color3}${top_mem name 1}${alignr}${color6}${top_mem cpu 1}${top_mem mem 1}${color}
${goto 15}|${goto 40}|${goto 60}+-- ${color3}${top_mem name 2}${alignr}${color6}${top_mem cpu 2}${top_mem mem 2}${color}
${goto 15}|${goto 40}|${goto 60}+-- ${color3}${top_mem name 3}${alignr}${color6}${top_mem cpu 3}${top_mem mem 3}${color}
${goto 15}|
${goto 12}+-----------------------------------------------------------+

]];
${alignr}${font sans mono:size=20}${color1}${time %H:%M}
${alignr}${font sans mono:size=12}${color1}${time %a. %d.%m.%Y}${font}

${goto 12}${color}+----------------------------------------+
${goto 15}|
${goto 12}${color1}+----System ${color}
${goto 15}|${goto 40}|${color}

Remove

3 Likes

Thanks, I was able to fix further by removing %a, it seems %a produces some character which is not known to the system.

Now it looks good -

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.