1 votes

Le texte conique se superpose à d'autres textes

Certaines parties du texte du conky se chevauchent avec lui-même. Comme vous pouvez le voir dans la 3ème bulle du haut, "Disques" est caché sous Root, Home, et Date.

enter image description here

Je veux que ça ressemble à ça :

enter image description here

J'ai installé le gestionnaire conky en utilisant ceci méthode . Mais je n'arrive pas à le réparer.

3voto

v2r Points 8969

enter image description here

Original : [image de gauche]

# Showing disk partitions: root, home and Data
${voffset 8}
${offset 103}${font Ubuntu:size=10,weight:bold}${color5}HDD[s]
###${offset 120}${diskiograph 33,183 666666 666666}${voffset 12}
${voffset 12}
${offset 105}${font Ubuntu:size=9,weight:bold}${color1}Swap: ${font Ubuntu:size=9,weight:normal}${fs_free /dev/sda3}${alignr}${font Ubuntu:size=9,weight:bold}Used: ${font Ubuntu:size=9,weight:normal}${fs_used /dev/sda3}
 ${offset 105}${font Ubuntu:size=9,weight:bold}${color1}Home: ${font Ubuntu:size=9,weight:normal}${fs_free /}${alignr}${font Ubuntu:size=9,weight:bold}Used: ${font Ubuntu:size=9,weight:normal}${fs_used /}
${offset 105}${font Ubuntu:size=9,weight:bold}${color1}Data:  ${font Ubuntu:size=9,weight:normal}${fs_free /}${alignr}${font Ubuntu:size=9,weight:bold}Used: ${font Ubuntu:size=9,weight:normal}${fs_used /}

# Network data (my desktop have only LAN). ETHERNET ring is mostly useless but looks pretty, main info is in the graphs
${voffset 54}
${offset 103}${font Ubuntu:size=10,weight:bold}${color5}ARPANET

Fixé : [image de droite]

# Showing disk partitions: root, home and Data
${voffset 48}
${offset 103}${font Ubuntu:size=10,weight:bold}${color5}HDD[s]
###${offset 120}${diskiograph 33,183 666666 666666}${voffset 12}
${voffset -5}
${offset 105}${font Ubuntu:size=9,weight:bold}${color1}Swap: ${font Ubuntu:size=9,weight:normal}${fs_free /dev/sda3}${alignr}${font Ubuntu:size=9,weight:bold}Used: ${font Ubuntu:size=9,weight:normal}${fs_used /dev/sda3}
${offset 105}${font Ubuntu:size=9,weight:bold}${color1}Home: ${font Ubuntu:size=9,weight:normal}${fs_free /}${alignr}${font Ubuntu:size=9,weight:bold}Used: ${font Ubuntu:size=9,weight:normal}${fs_used /}
${offset 105}${font Ubuntu:size=9,weight:bold}${color1}Data:  ${font Ubuntu:size=9,weight:normal}${fs_free /}${alignr}${font Ubuntu:size=9,weight:bold}Used: ${font Ubuntu:size=9,weight:normal}${fs_used /}

# Network data (my desktop have only LAN). ETHERNET ring is mostly useless but looks pretty, main info is in the graphs
${voffset 36}
$ {offset 103}${font Ubuntu:size=10,weight:bold}${color5}ARPANET
  • Dans cet exemple, la capture d'écran est le retour d'information visuel réel de mon projet. .conkyrc qui se trouve dans ~/ .

Ce que vous pouvez voir, lorsque vous comparez attentivement la capture d'écran, avec le code listé ci-dessous des deux exemples, c'est que j'ai seulement changé le paramètre ${voffset} paramètres, à partir de :

 # Showing disk partitions: root, home and Data

Dans votre cas, il s'agit du même point de référence, à partir duquel vous pouvez commencer ! Chaque entrée dans le code, ci-dessous de mon #HDD[s]-setting doit être réajusté, toujours en utilisant le bouton ${voffset xx} comme dans l'exemple.

  • Je sais, ça a l'air assez difficile, mais donnez du temps au temps, et vous y arriverez !

SistemesEz.com

SystemesEZ est une communauté de sysadmins où vous pouvez résoudre vos problèmes et vos doutes. Vous pouvez consulter les questions des autres sysadmins, poser vos propres questions ou résoudre celles des autres.

Powered by:

X