brndnmtthws / conky

Light-weight system monitor for X, Wayland (sort of), and other things, too
https://conky.cc
GNU General Public License v3.0
7.27k stars 620 forks source link

Version 1.10.8 stopped to render dejavu sans as bold #639

Closed DanyGee closed 6 years ago

DanyGee commented 6 years ago

Conky Version

conky -v
conky 1.10.8 compiled Tue May 15 07:41:15 UTC 2018 for Linux 4.9.0-6-amd64 x86_64

Compiled in features:

System config file: /etc/conky/conky.conf
Package library path: /usr/lib/conky

 General:
  * math
  * hddtemp
  * portmon
  * IPv6
  * Curl
  * RSS
  * Weather (METAR)
  * Weather (XOAP)
  * wireless
  * support for IBM/Lenovo notebooks
  * nvidia
  * eve-online
  * builtin default configuration
  * old configuration syntax
  * Imlib2
  * apcupsd
  * iostats
  * ncurses
  * Internationalization support
  * PulseAudio

 Lua bindings:
  * Cairo
  * Imlib2
  * RSVG
 X11:
  * Xdamage extension
  * Xinerama extension (virtual display)
  * Xshape extension (click through)
  * XDBE (double buffer extension)
  * Xft
  * ARGB visual
  * Own window

 Music detection:
  * Audacious
  * MPD
  * MOC
  * XMMS2

 Default values:
  * Netdevice: eth0
  * Local configfile: $HOME/.conkyrc
  * Localedir: /usr/share/locale
  * Maximum netdevices: 64
  * Maximum text size: 16384
  * Size text buffer: 256

My Config ... ${goto 1461}${voffset -4}${font Dejavu Sans:bold:size=16}$color1${totalup enp0s31f6}$font${goto 1555}${voffset -24} ${upspeedgraph enp0s31f6 30,160}$color2)...

${font Impact:size=40}${goto 10}$color1${time %T}$color2${goto 225}${font Impact:size=20}${time %a %d %b %Y}${font}
${voffset 16}${goto 10}${font :size=16}Pulpit » $color1 Obszar (${desktop})$color2${goto 210}Włączony » $color1${uptime_short}$color
#========================Memory section =====================================================================================
${goto 420}${voffset -108}$color2${font Poky:size=40}M${goto 490}${font Impact:size=32}${voffset -6}$color1${memperc}$color2${goto 555}%${font}${goto 600}${voffset -26}$color1${font :size=16}${mem}$color2${voffset 20}${goto 600}${membar 6,90}${voffset -16}
${voffset 25}${goto 424}${font StyleBats:size=28}i${font}${goto 460}${voffset -19}${font :size=16}SWAP » $color1${swapperc}%$color2  -  $color1$swap$color2
${voffset -8}
#======================= Drive Section =======================================================================================
${goto 730}$color2${font Style Bats:size=40}${voffset -115}M$font${goto 789}${font}${voffset -20}${font :size=16}Root${goto 790}${voffset 20}${fs_bar 6,100 /}
${goto 856}${voffset -46}${font :size=16:condensed:bold}$color1${fs_used_perc /} %$color1 ${voffset 45}${goto 730}${diskiograph 20,160}
${goto 930}${voffset 6}$color2${font Style Bats:size=40}${voffset -98}M$font${goto 989}${font}${voffset -20}${font :size=16}Home${goto 990}${voffset 20}${fs_bar 6,100 /}
${goto 1055}${voffset -46}${font :size=16:condensed:bold}$color1${fs_used_perc /} %$color1 ${voffset 45}${goto 930}${diskiograph 20,160}
#======================= Distro Section =======================================================================================
${goto 1200}$color2${voffset -85}${font micra:size=24} DEEPIN ${font}
${goto 1110}${voffset -45}${color1}${font LogoGlyphs:size=70}d${goto 1283}${voffset -30}${color1}${font micra:size=18} >>15.7 ${font}
${goto 1211}${voffset 5}${font :size=12}${kernel}
#==================== Network Section ========================================================================================
${goto 1410}${voffset -90}${color2}${font PizzaDude Bullets:size=32}S${font}${goto 1460}${voffset -24}${font :size=12}${downspeed enp0s31f6}
${goto 1461}${voffset -4}${font Dejavu Sans:size=16:condensed:bold}$color1${totaldown enp0s31f6}$font${goto 1555}${voffset -24} ${downspeedgraph enp0s31f6 30,160}$color2
${goto 1410}${font PizzaDude Bullets:size=32}M${font}${goto 1460}${voffset -24}${font :size=12}${upspeed enp0s31f6}
${goto 1461}${voffset -4}${font Dejavu Sans:bold:size=16}$color1${totalup enp0s31f6}$font${goto 1555}${voffset -24} ${upspeedgraph enp0s31f6 30,160}$color2
#=================== Processor Section ======================================================================================
${goto 1740}${voffset -115}${font Poky:size=40}P$font $color1${goto 1800}${voffset -45}${font Impact:size=32}${cpu cpu0}${goto 1870}${color2}%${color1}
${goto 1930}${voffset -80}${font Dejavu Sans:size=14:condensed}${top name 1}${goto 2100}:${top cpu 1}$color2
${voffset -2}${goto 1930}${top name 2}${goto 2100}:${top cpu 2}
${voffset -2}${goto 1930}${top name 3}${goto 2100}:${top cpu 3}
${voffset -2}${goto 1930}${top name 4}${goto 2100}:${top cpu 4}
${voffset -38}${goto 1730}$color1${cpugraph 28,180}
#=================== Weather Section ========================================================================================
${color2}${voffset -117}${goto 2178}${font Modern Pictograms:size=50}Y${font}${color2}${voffset -50}${font Impact:size=40} Pogoda AccuWeather
${font Dejavu Sans:size=14:condensed}${color2}${voffset -60}${goto 2182}Aktualna pogoda » ${color1}${goto 2175}${execi 300 curl -s "http://rss.accuweather.com/rss/liveweather_rss.asp?metric=1&locCode=EUR|PL|PL002|BYDGOSZCZ" | grep 'Currently in ' | sed -e :a -e 's/<[^>]*>//g;/</N;//ba' | sed -e 's/^\(.\{80\}\).*/\1/' | sed 's/Currently in //' | sed 's/"//g' | sed 's/&#176;/°/' | sed 's/.$//'}
${color2}${voffset -2}${goto 2180}Prognoza na jutro » ${color1}${goto 2180}${execi 300 curl -s "http://rss.accuweather.com/rss/liveweather_rss.asp?metric=1&locCode=EUR|PL|PL002|BYDGOSZCZ" | grep 'High: ' | sed -e :a -e 's/<[^>]*>//g;/</N;//ba' | sed -e 's/^\(.\{80\}\).*/\1/' | sed 's/ C/ °C/g' | sed '1!d' | sed 's/&.*$//'}
${voffset -960}

My Distro

OS: Deepin 15.7 x86_64 
Kernel: 4.15.0-29deepin-generic 
Uptime: 3 hours, 2 mins 
Packages: 1684 
Shell: bash 4.4.19 
Resolution: 3840x2160 
DE: Deepin 
WM: Mutter(DeepinGala) 
Theme: Deepin [GTK2/3] 
Icons: Deepin [GTK2/3] 
Terminal: deepin-terminal 
Terminal Font: Noto Mono 11 
CPU: Intel i7-6700K (8) @ 4.300GHz 
GPU: NVIDIA GeForce GTX 1080 
Memory: 4451MiB / 32101MiB 

My Hardware

System:    Host: deepin Kernel: 4.15.0-29deepin-generic x86_64 bits: 64 compiler: gcc v: 7.3.0 Desktop: Gnome 
           Distro: Deepin 15 
Machine:   Type: Desktop Mobo: ASUSTeK model: Z170-DELUXE v: Rev 1.xx serial: <filter> 
           UEFI [Legacy]: American Megatrends v: 3504 date: 06/29/2017 
CPU:       Topology: Quad Core model: Intel Core i7-6700K bits: 64 type: MT MCP arch: Skylake-S rev: 3 
           L2 cache: 8192 KiB 
           flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 64128 
           Speed: 4201 MHz min/max: 800/4300 MHz Core speeds (MHz): 1: 4252 2: 4279 3: 4281 4: 4154 5: 4235 
           6: 4280 7: 4220 8: 4286 
Graphics:  Card-1: NVIDIA GP104 [GeForce GTX 1080] driver: nvidia v: 390.67 bus ID: 01:00.0 
           Display: x11 server: X.Org 1.20.0 driver: nvidia unloaded: fbdev,modesetting,vesa 
           resolution: 3840x2160~60Hz 
           OpenGL: renderer: GeForce GTX 1080/PCIe/SSE2 v: 4.6.0 NVIDIA 390.67 direct render: Yes 
Audio:     Card-1: Intel Sunrise Point-H HD Audio driver: snd_hda_intel v: kernel bus ID: 00:1f.3 
           Card-2: NVIDIA GP104 High Definition Audio driver: snd_hda_intel v: kernel bus ID: 01:00.1 
           Sound Server: ALSA v: k4.15.0-29deepin-generic 
Network:   Card-1: Intel Ethernet Connection I219-V driver: e1000e v: 3.2.6-k port: N/A bus ID: 00:1f.6 
           IF: enp0s31f6 state: up speed: 1000 Mbps duplex: full mac: <filter> 
           Card-2: Broadcom Limited BCM4360 802.11ac Wireless Network Adapter driver: wl v: kernel 
           bus ID: 07:00.0 
           IF: wlp7s0 state: dormant mac: <filter> 
           Card-3: Intel I211 Gigabit Network Connection driver: igb v: 5.4.0-k port: c000 bus ID: 0b:00.0 
           IF: enp11s0 state: down mac: <filter> 
Drives:    HDD Total Size: 2.34 TiB used: 83.35 GiB (3.5%) 
           ID-1: /dev/sda vendor: Samsung model: SSD 850 PRO 256GB size: 238.47 GiB 
           ID-2: /dev/sdb vendor: Samsung model: SSD 850 PRO 1TB size: 953.87 GiB 
           ID-3: /dev/sdc vendor: Crucial model: CT1050MX300SSD1 size: 978.09 GiB 
           ID-4: /dev/sdd vendor: Kingston model: SH100S3120G size: 111.79 GiB 
           ID-5: /dev/sde vendor: Kingston model: SV300S37A120G size: 111.79 GiB 
Partition: ID-1: / size: 109.53 GiB used: 83.35 GiB (76.1%) fs: ext4 dev: /dev/sdd1 
Sensors:   System Temperatures: cpu: 35.0 C mobo: N/A gpu: nvidia temp: 56 C 
           Fan Speeds (RPM): cpu: 0 gpu: nvidia fan: 0% 
Info:      Processes: 255 Uptime: 3h 02m Memory: 31.35 GiB used: 4.65 GiB (14.8%) Init: systemd runlevel: 5 
           Compilers: gcc: 7.3.0 Shell: bash v: 4.4.19 inxi: 3.0.09

Don't have the slightest idea what is causing this :thinking:

lasers commented 6 years ago

@DanyGee Can you test the current master branch ?

git clone https://github.com/brndnmtthws/conky
cd conky
mkdir -p build
cd build
cmake ../
make -j4

# to execute the binary type:
src/conky
DanyGee commented 6 years ago

zrzut ekranu deepin_wybierz-obszar_20180823134929 Might be something distro-specific, many things got broken after 15.7 upgrade. I'll test the config on my other two linux machines and get back with results.

DanyGee commented 6 years ago

As suspected...this problem is Deepin 15.7 specific :angry: On other distros, build 1.10.8 (and up) is properly rendering bold fonts :1st_place_medal: zrzut ekranu z 2018-08-23 15

lasers commented 6 years ago

Good. I was wondering if it had to do something with conky initialization because of issues like #218.

Offtopic. That's cool retro term you have there... Wink, wink... And how do you do your pink boxes and arrows? They came out nice so I'd like to learn how to do this too for my screenshots. :smile:

Any other helpful tips are appreciated too.

su8 commented 6 years ago

@lasers I starred yesterday a screenshot tool that does even more than that - https://github.com/lupoDharkael/flameshot

DanyGee commented 6 years ago

@lasers On Deepin I used the built in Deepin Screenshot Tool https://github.com/linuxdeepin/deepin-screenshot

On other distros it was Flameshot https://github.com/lupoDharkael/flameshot