Nach Update Problem mit Conky-Darstellung [SOLVED]

Message
Author
loik
Posts: 1571
Joined: Wed Dec 12, 2018 3:01 pm

Re: Nach Update Problem mit Conky-Darstellung

#41 Post by loik »

Sorry, ich weiß nicht wie.
Muss ich auf "Subscribe Topic" klicken ?

User avatar
fehlix
Developer
Posts: 10310
Joined: Wed Apr 11, 2018 5:09 pm

Re: Nach Update Problem mit Conky-Darstellung

#42 Post by fehlix »

loik wrote: Thu Dec 13, 2018 4:54 pm Sorry, ich weiß nicht wie.
Muss ich auf "Subscribe Topic" klicken ?
Deine erste nachricht editieren - klick auf bleistift oben rechts.
dann an die betreff Zeile [SOLVED] ranhängen und Save klicken...
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

loik
Posts: 1571
Joined: Wed Dec 12, 2018 3:01 pm

Re: Nach Update Problem mit Conky-Darstellung

#43 Post by loik »

o.k.
Danke.

User avatar
Jerry3904
Administrator
Posts: 21881
Joined: Wed Jul 19, 2006 6:13 am

Re: Nach Update Problem mit Conky-Darstellung

#44 Post by Jerry3904 »

Auch von mir
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox and Windows 10
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

male

Re: Nach Update Problem mit Conky-Darstellung [SOLVED]

#45 Post by male »

Noch einmal zum Mitmeiseln. :happy:
loik wrote: Ich habe das alte Script verwendet und die Einträge für den Font geändert, wie vorgeschlagen.
Außer dem habe ich für "maximum_width" den Eintrag "270" gewählt ( Zeile 31 )
1. Nun, ich hatte schon den Kardinalfehler dieser Konfiguration benannt:

Code: Select all

#minimum_size 230 0
#maximum_width 200
maximum_width 270
Conky wird hier in ein Fenster von 270px gepresst.
- er muß aber auch ein Script aufrufen (conky-harddisks.sh), was bei vorhandensein der mounts, bis zu drei zusätzliche Einträge generiert.
- unterhalb von TEXT hat der Autor jede Menge unnützer Leerzeilen, die das Ganze für Conky nicht leichter machen. Richtiger deshalb

Code: Select all

minimum_size 230 0
#maximum_width 200
#maximum_width 270
230 Breite 0 Höhe Das Conky-Fenster kann sich damit, je, was an Anzeigen dazu kommt, dynamisch ausbreiten. Das bewirkt insbesondere die 0. Trage ich statt der 0 einen Wert von 600 beispielsweise ein, wird das Fenster von Conky bei 600px enden.

2. Jetzt kommt eine Font-Cache Aktualisierung, da hat er ganz einfach die Nase voll, weil er über einen weiteren Unsinn stolpert.

Code: Select all

# Use Xft?
use_xft yes
xftfont Droid Sans:size=7.2  
xftalpha 0.8
text_buffer_size 2048
Nach jeder MX-Installation gehört es zu meinen ersten Einstellungen, mir die Schrift zu verkleinern, weil sie mir im Auslieferungszustand zu groß ist. Am Beispiel Terminal ist da immer eine Größe von 10,5 eingestellt. 10,5 oder halbe bzw zehntel - Schritte gibt mir der Schrift-Cache aber gar nicht zur Auswahl. Es ist immer 7,8,9,10 usw.

Sicherlich hat sich Conky bei Droid Sans:size 7.2 auch an den Kopf gefasst.
zu text_buffer_size steht schon seit Jahren:
Größe des Standardtextpuffers (Standard ist 256 Byte). Dieser Puffer wird für Zwischentexte verwendet, wie z.B. einzelne Zeilen, Ausgaben von $exec vars und verschiedene andere Variablen. Die Vergrößerung dieses Puffers kann die Leistung von Conky drastisch reduzieren, ermöglicht aber mehr Textanzeige pro Variable. Die Größe dieses Puffers darf nicht kleiner als der Standardwert von 256 Byte sein.

Size of the standard text buffer (default is 256 bytes). This buffer is used for intermediary text, such as individual lines, output from $exec vars, and various other variables. Increasing the size of this buffer can drastically reduce Conky's performance, but will allow for more text display per variable. The size of this buffer cannot be smaller than the default value of 256 bytes
Deshalb reicht default dicke aus. ;) So, und, wenn Bilder etc. in der Darstellung verschoben sind, korrigiert man das wie folgt:
Das ist in der Regel die betreffende Zeile

Code: Select all

${image $HOME/.conky/MX-Asq/MX-GeekyTowerLogo/MXLogoStart.png -p 105,63 -s 45x45}
In Pixeln 105 = links vom Conky-Fenster aus gesehen. 63 = von oben oder unten gesehen (richtet sich wieder nach dem gewählten alignment). Negative Werte sind möglich. 45x45 = ist die Größe des Bildes.

male

Re: Nach Update Problem mit Conky-Darstellung [SOLVED]

#46 Post by male »

Sorry vergessen, Mutti rief zum Abendbrot... :lipsrsealed:

die geänderte conkyrc

Code: Select all

##############################################
# Settings
##############################################
# Use Xft?
use_xft yes
xftfont Droid Sans:size=7
xftalpha 0.8
text_buffer_size 256

# Update interval in seconds
update_interval 1

# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0

# Create own window instead of using desktop (required in nautilus)
# own_window = yes fixes cairo-compmgr issue...
own_window yes
own_window_transparent yes
own_window_type normal
own_window_hints undecorated,below,skip_taskbar,skip_pager  #sticky,

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
minimum_size 230 0
#maximum_width 200
#maximum_width 270

# Draw shades?
draw_shades no
#default_shade_color black

# Draw outlines?
draw_outline no
#default_outline_color grey

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 0

# border width
border_width 1

############Colors#########
default_color white   #use ${color} to revert to default
#time, date, mx version
color1 fdfdfd
#sections and horizonal lines, item descriptions
color2 F19E12
#readings
color3 26C7D1
###########################

# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 15
gap_y 15

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no

# number of cpu samples to average
# set to 1 to disable averaging
cpu_avg_samples 2

# number of net samples to average
# set to 1 to disable averaging
net_avg_samples 2

# Force UTF8? note that UTF8 support required XFT
override_utf8_locale yes

# Add spaces to keep things from moving about? This only affects
#certain objects.
use_spacer none

##############################################
#  Output
##############################################
TEXT
   ${alignc}${font Arial Black:size=28}${color1}${time %H:%M}${font}
   ${alignc}${time %A %d %B %Y}
${color2}SYSTEM ${hr 2}${color}


${image $HOME/.conky/MX-Asq/MX-GeekyTowerLogo/MXLogoStart.png -p 105,63 -s 45x45}
${alignc}${color1}${execi 86400 cat /etc/mx-version}
${voffset 2}${color3}   Kernel: ${alignr}${color}${kernel}
   ${color3}CPU: ${color}${cpu cpu0}% ${alignr}${color}${cpubar cpu0 8,60}
   ${color3}RAM: ${color}$memperc% ${alignr}${color}${membar 8,60}
   ${color3}SWAP: ${color}$swap/ $swapmax ${alignr}${color}${swapbar 8,60}
   ${color3}Uptime: ${alignr}${color}${uptime}
${color2}MEDIA ${hr 2}${color}

${execpi 1800 $HOME/.conky/MX-Asq/MX-GeekyTowerLogo/conky-harddisks.sh}
${color2}ETHERNET (${addr eth0}) ${hr 2}${color}
   Down: ${downspeedf eth0}kB/s ${alignr}Up: ${upspeedf eth0}kB/s
   ${downspeedgraph eth0 30,120 000000 000000} ${upspeedgraph eth0 30,120 000000 000000}
${color2}WIRELESS (${addr wlan0}) [${wireless_link_qual_perc wlan0}%] ${hr 2}${color}
   Down: ${downspeedf wlan0}kB/s ${alignr}Up: ${upspeedf wlan0}kB/s
   ${downspeedgraph wlan0 30,120 000000 000000} ${upspeedgraph wlan0 30,120 000000 000000}   
${color2}MONITOR ${hr 2}${color}
   NAME $alignr PID CPU
   ${color3}${top name 1} $alignr${color} ${top pid 1} ${top cpu 1}
   ${color3}${top name 2} $alignr${color} ${top pid 2} ${top cpu 2}
   ${color3}${top name 3} $alignr${color} ${top pid 3} ${top cpu 3}
   ${color3}${top name 4} $alignr${color} ${top pid 4} ${top cpu 4}
   ${color3}${top name 5} $alignr${color} ${top pid 5} ${top cpu 5}
   ${color3}${top name 6} $alignr${color} ${top pid 6} ${top cpu 6}
   ${color3}${top name 7} $alignr${color} ${top pid 7} ${top cpu 7}
   ${color3}${top name 8} $alignr${color} ${top pid 8} ${top cpu 8}

User avatar
dphn
Posts: 126
Joined: Sun Nov 25, 2018 7:26 am

Re: Nach Update Problem mit Conky-Darstellung [SOLVED]

#47 Post by dphn »

versuche mal aus dem globalen Ordner /usr/share/mx-conky-data/themes den Inhalt in dein userprofile nach ~/.conky zu kopieren. Die conky-Konfigurationen werden ja auch durch Updates angepasst, landen aber nicht automatisch in dein /home. Da ist manchmal Handarbeit erforderlich.
for those with an eye for the finer details...

loik
Posts: 1571
Joined: Wed Dec 12, 2018 3:01 pm

Re: Nach Update Problem mit Conky-Darstellung [SOLVED]

#48 Post by loik »

Hi.
Sorry, habe die Nachträge erst jetzt auf Grund eines anderen Anliegens gelesen.
Ich hatte nicht erwartet, dass nach dem SOLVED noch so ein umfangreicher Nachtrag kommt.
Super erklärt, super Anleitung.
Wenn ich wieder Probleme mit dem Conky bekomme, werde ich darauf zurückgreifen.
Aber für mich war schon die Lösung, nur die Schriftgröße umzustellen und alles sah wieder hübsch aus.
Deshalb habe ich es dabei belassen.

Aber all die Mühe und Erklärungen kommen ja nicht nur mir zu Gute.

Jedefalls DANKE für den ambitionierten Einsatz.

Gruß
Loki

Post Reply

Return to “Deutsches Forum”