Conky

Aus Roebke Wiki
Zur Navigation springen Zur Suche springen

Conky

  • Systemsinfos auf dem Desktop darstellen
  • Kann grafisch mit "conky-manager" administriert werden
  • Themes liegen in /home/daniel/conky-manager/themes

Folgendes Theme habe ich modifiziert

/home/daniel/conky-manager/themes/Conky Seamod

Im Wesentlichen sind diese beiden Dateien anzupassen

/home/daniel/conky-manager/themes/Conky Seamod DanMod/config/conky_seamod

für die Texte in der Anzeige

/home/daniel/conky-manager/themes/Conky Seamod DanMod/seamod_rings.lua

für das Anpassen der Ringe

Temperatur

hddtemp installieren

apt-get install hddtemp

für user ausführbar machen

chmod 4755 /usr/sbin/hddtemp

in bn verlinken

ln -s /usr/sbin/hddtemp /usr/bin/hddtemp

mit diesem Befehl einbinden (cut anpassen)

${alignc}${execi 60 hddtemp /dev/sda1 | cut -c 33-40} °C

Komplette conky_seamod

#==============================================================================
#                               conkyrc_seamod
# Date    : 05/02/2012
# Author  : SeaJey
# Version : v0.1
# License : Distributed under the terms of GNU GPL version 2 or later
# 
# This version is a modification of conkyrc_lunatico wich is modification of conkyrc_orange
# 
# conkyrc_orange:    http://gnome-look.org/content/show.php?content=137503&forumpage=0
# conkyrc_lunatico:  http://gnome-look.org/content/show.php?content=142884
#==============================================================================
#
background yes
update_interval 1
#
cpu_avg_samples 1
net_avg_samples 2
temperature_unit celsius
#
double_buffer yes
no_buffers yes
text_buffer_size 2048
#
gap_x 5
gap_y 20
minimum_size 300 910
maximum_width 350
own_window yes
own_window_type normal
own_window_transparent no
own_window_argb_visual yes
own_window_type normal
own_window_class conky-semi
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
border_inner_margin 0
border_outer_margin 0
alignment top_right
 #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
#
override_utf8_locale yes
use_xft yes
xftfont caviar dreams:size=10
xftalpha 0.5
uppercase no
#
# Defining colors
default_color FFFFFF
# Shades of Gray
color1 DDDDDD
color2 AAAAAA
color3 888888
# Orange
color4 EF5A29
# Green
color5 77B753
#
# Loading lua script for drawning rings
lua_load ./seamod_rings.lua
lua_draw_hook_post main
#
## System information using conky capabilities
#
# Header with base system info
own_window_argb_value 76
own_window_colour 000000
TEXT
${font Ubuntu:size=10,weight:bold}${color4}SYSTEM ${hr 2}
${offset 15}${font Ubuntu:size=10,weight:normal}${color1}$sysname $kernel
${offset 15}${font Ubuntu:size=10,weight:normal}${color1}$nodename
${offset 15}${font Ubuntu:size=10,weight:normal}${color1}Uptime: $uptime
#
# Showing CPU Graph
${voffset 20}
${offset 120}${cpugraph 40,183 666666 666666}${voffset -25}
${offset 90}${font Ubuntu:size=10,weight:bold}${color5}CPU
# Showing TOP 5 CPU-consumers
${offset 105}${font Ubuntu:size=10,weight:normal}${color4}${top name 1}${alignr}${top cpu 1}%
${offset 105}${font Ubuntu:size=10,weight:normal}${color1}${top name 2}${alignr}${top cpu 2}%
${offset 105}${font Ubuntu:size=10,weight:normal}${color2}${top name 3}${alignr}${top cpu 3}%
${offset 105}${font Ubuntu:size=10,weight:normal}${color3}${top name 4}${alignr}${top cpu 4}%
${offset 105}${font Ubuntu:size=10,weight:normal}${color3}${top name 5}${alignr}${top cpu 5}%
#
#Showing memory part with TOP 5
${voffset 40}
${offset 90}${font Ubuntu:size=10,weight:bold}${color5}MEM
${offset 105}${font Ubuntu:size=10,weight:normal}${color4}${top_mem name 1}${alignr}${top_mem mem 1}%
${offset 105}${font Ubuntu:size=10,weight:normal}${color1}${top_mem name 2}${alignr}${top_mem mem 2}%
${offset 105}${font Ubuntu:size=10,weight:normal}${color2}${top_mem name 3}${alignr}${top_mem mem 3}%
${offset 105}${font Ubuntu:size=10,weight:normal}${color3}${top_mem name 4}${alignr}${top_mem mem 4}%
${offset 105}${font Ubuntu:size=10,weight:normal}${color3}${top_mem name 4}${alignr}${top_mem mem 5}%
#
# Showing disk partitions: root, home and Data
${voffset 28}
${offset 90}${font Ubuntu:size=10,weight:bold}${color5}DISKS
${offset 120}${diskiograph 33,183 666666 666666}${voffset -30}
${voffset 20}
${offset 115}${font Ubuntu:size=9,weight:bold}${color1}Free root: ${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 115}${font Ubuntu:size=9,weight:bold}${color1}Free NAS00: ${font Ubuntu:size=9,weight:normal}${fs_free /media/NAS00}${alignr}${font Ubuntu:size=9,weight:bold}Used: ${font Ubuntu:size=9,weight:normal}${fs_used /media/NAS00}
${offset 115}${font Ubuntu:size=9,weight:bold}${color1}Free NAS02: ${font Ubuntu:size=9,weight:normal}${fs_free /media/NAS02}${alignr}${font Ubuntu:size=9,weight:bold}Used: ${font Ubuntu:size=9,weight:normal}${fs_used /media/NAS02}
${offset 115}${font Ubuntu:size=9,weight:bold}${color1}Free NAS03: ${font Ubuntu:size=9,weight:normal}${fs_free /media/NAS03}${alignr}${font Ubuntu:size=9,weight:bold}Used: ${font Ubuntu:size=9,weight:normal}${fs_used /media/NAS03}
${offset 115}${font Ubuntu:size=9,weight:bold}${color1}Free NAS04: ${font Ubuntu:size=9,weight:normal}${fs_free /media/NAS04}${alignr}${font Ubuntu:size=9,weight:bold}Used: ${font Ubuntu:size=9,weight:normal}${fs_used /media/NAS04}
#
# Network data (my desktop have only LAN). ETHERNET ring is mostly useless but looks pretty, main info is in the graphs
${voffset 43}
${offset 90}${font Ubuntu:size=10,weight:bold}${color5}ETHERNET
${voffset 40}             
${offset 15}${color1}${font Ubuntu:size=9,weight:bold}Up: ${alignr}${font Ubuntu:size=9,weight:normal}$color2${upspeed eth0} / ${totalup}
${offset 15}${upspeedgraph eth0 40,285 4B1B0C FF5C2B 100 -l}
${offset 15}${color1}${font Ubuntu:size=9,weight:bold}Down: ${alignr}${font Ubuntu:size=9,weight:normal}$color2${downspeed eth0} / ${totaldown}
${offset 15}${downspeedgraph eth0 40,285 324D23 77B753 100 -l}
#
# HD Temperatur
${voffset 5}
${offset 90}${font Ubuntu:size=10,weight:bold}${color5}HD TEMPERATUR
${voffset 10}  
${offset 105}${color1}${font Ubuntu:size=9,weight:bold}sda ${font Ubuntu:size=9,weight:normal}${alignr}${execi 60 hddtemp /dev/sda | cut -c 32-40}
${offset 105}${color1}${font Ubuntu:size=9,weight:bold}sdb ${font Ubuntu:size=9,weight:normal}${alignr}${execi 60 hddtemp /dev/sdb | cut -c 34-40}
${offset 105}${color1}${font Ubuntu:size=9,weight:bold}sdc ${font Ubuntu:size=9,weight:normal}${alignr}${execi 60 hddtemp /dev/sdc | cut -c 28-40}
${offset 105}${color1}${font Ubuntu:size=9,weight:bold}sdd ${font Ubuntu:size=9,weight:normal}${alignr}${execi    60 hddtemp /dev/sdd | cut -c 28-40}
${color4}${hr 2}

Alternative CPU Temperatur und HDD Temperatur nebeneinander

# Temperatur
${voffset 5}
${offset 90}${font Ubuntu:size=10,weight:bold}${color5}TEMPERATUR
${voffset 10}  
${offset 15}${color1}${font Ubuntu:size=9,weight:bold}CPU 1 ${font Ubuntu:size=9,weight:normal}${offset 20}${execi 60 sensors | grep "Core 0" | cut -c15-22}${offset 50}${color1}${font Ubuntu:size=9,weight:bold}sda ${font Ubuntu:size=9,weight:normal}${offset 20}${execi 60 hddtemp /dev/sda | cut -c 32-40}
${offset 15}${color1}${font Ubuntu:size=9,weight:bold}CPU 2 ${font Ubuntu:size=9,weight:normal}${offset 20}${execi 60 sensors | grep "Core 1" | cut -c15-22}${offset 50}${color1}${font Ubuntu:size=9,weight:bold}sdb ${font Ubuntu:size=9,weight:normal}${offset 20}${execi 60 hddtemp /dev/sdb | cut -c 34-40}
${offset 15}${color1}${font Ubuntu:size=9,weight:bold}CPU 3 ${font Ubuntu:size=9,weight:normal}${offset 20}${execi 60 sensors | grep "Core 2" | cut -c15-22}${offset 50}${color1}${font Ubuntu:size=9,weight:bold}sdc ${font Ubuntu:size=9,weight:normal}${offset 20}${execi 60 hddtemp /dev/sdc | cut -c 28-40}
${offset 15}${color1}${font Ubuntu:size=9,weight:bold}CPU 4 ${font Ubuntu:size=9,weight:normal}${offset 20}${execi 60 sensors | grep "Core 3" | cut -c15-22}${offset 50}${color1}${font Ubuntu:size=9,weight:bold}sdd ${font Ubuntu:size=9,weight:normal}${offset 20}${execi 60 hddtemp /dev/sdd | cut -c 28-40}
${offset 15}${color1}${font Ubuntu:size=9,weight:bold}GPU   ${font Ubuntu:size=9,weight:normal}${offset 20}${execi 60 sensors | grep temp1 | cut -c14-23}