Zhenhua Wu

Zhenhua Wu的分享

他的个人主页  他的分享

发起分享成功

我的 .conkyrc

Zhenhua Wu   2012年07月06日 星期五 19:31 | 0条评论

最初的版本一直用在我的 m17x上,今天修改了一下用到这个 macbook pro上,暂时还可以。

 


#------------------------------------------
background no
use_spacer right
use_xft yes
font :size=19:bold
xftfont courier-9
override_utf8_locale yes
update_interval 1.0
own_window no
#own_window_type override
# If own_window is yes, you may use type normal, desktop or override
own_window_type desktop
# Use pseudo transparency with own_window?
own_window_transparent yes
# If own_window_transparent is set to no, you can set the background colour here
#own_window_colour hotpink
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 250 50
maximum_width 250
draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders no
default_color ffffff
default_shade_color 000000
default_outline_color 000000
alignment top_right
gap_x 10
gap_y 10
cpu_avg_samples 2
uppercase yes # set to yes if you want all text to be in uppercase

#------------------------------------------



# none, xmms, bmp, audacious, infopipe (default is none)
#none xmms_player bmp

# boinc (seti) dir
# seti_dir /opt/seti

# Possible variables to be used:
#
#      Variable         Arguments                  Description              
#  acpiacadapter                     ACPI ac adapter state.                  
#  acpifan                           ACPI fan state                          
#  acpitemp                          ACPI temperature.                      
#  adt746xcpu                        CPU temperature from therm_adt746x      
#  adt746xfan                        Fan speed from therm_adt746x            
#  battery           (num)           Remaining capasity in ACPI or APM      
#                                    battery. ACPI battery number can be    
#                                    given as argument (default is BAT0).    
#  buffers                           Amount of memory buffered              
#  cached                            Amount of memory cached                
#  color             (color)         Change drawing color to color          
#  cpu                               CPU usage in percents                  
#  cpubar            (height)        Bar that shows CPU usage, height is    
#                                    bar's height in pixels                  
#  downspeed         net             Download speed in kilobytes            
#  downspeedf        net             Download speed in kilobytes with one    
#                                    decimal                                
#  exec              shell command   Executes a shell command and displays  
#                                    the output in torsmo. warning: this    
#                                    takes a lot more resources than other  
#                                    variables. I'd recommend coding wanted  
#                                    behaviour in C and posting a patch :-).
#  execi             interval, shell Same as exec but with specific interval.
#                    command         Interval can't be less than            
#                                    update_interval in configuration.      
#  fs_bar            (height), (fs)  Bar that shows how much space is used on
#                                    a file system. height is the height in  
#                                    pixels. fs is any file on that file    
#                                    system.                                
#  fs_free           (fs)            Free space on a file system available  
#                                    for users.                              
#  fs_free_perc      (fs)            Free percentage of space on a file      
#                                    system available for users.            
#  fs_size           (fs)            File system size                        
#  fs_used           (fs)            File system used space                  
#  hr                (height)        Horizontal line, height is the height in
#                                    pixels                                  
#  i2c               (dev), type, n  I2C sensor from sysfs (Linux 2.6). dev  
#                                    may be omitted if you have only one I2C
#                                    device. type is either in (or vol)      
#                                    meaning voltage, fan meaning fan or temp
#                                    meaning temperature. n is number of the
#                                    sensor. See /sys/bus/i2c/devices/ on    
#                                    your local computer.                    
#  kernel                            Kernel version                          
#  loadavg           (1), (2), (3)   System load average, 1 is for past 1    
#                                    minute, 2 for past 5 minutes and 3 for  
#                                    past 15 minutes.                        
#  machine                           Machine, i686 for example              
#  mails                             Mail count in mail spool. You can use  
#                                    program like fetchmail to get mails from
#                                    some server using your favourite        
#                                    protocol. See also new_mails.          
#  mem                               Amount of memory in use                
#  membar            (height)        Bar that shows amount of memory in use  
#  memmax                            Total amount of memory                  
#  memperc                           Percentage of memory in use            
#  new_mails                         Unread mail count in mail spool.        
#  nodename                          Hostname                                
#  outlinecolor      (color)         Change outline color                    
#  pre_exec          shell command   Executes a shell command one time before
#                                    torsmo displays anything and puts output
#                                    as text.                                
#  processes                         Total processes (sleeping and running)  
#  running_processes                 Running processes (not sleeping),      
#                                    requires Linux 2.6                      
#  shadecolor        (color)         Change shading color                    
#  stippled_hr       (space),        Stippled (dashed) horizontal line      
#                    (height)      
#  swapbar           (height)        Bar that shows amount of swap in use    
#  swap                              Amount of swap in use                  
#  swapmax                           Total amount of swap                    
#  swapperc                          Percentage of swap in use              
#  sysname                           System name, Linux for example          
#  time              (format)        Local time, see man strftime to get more
#                                    information about format                
#  totaldown         net             Total download, overflows at 4 GB on    
#                                    Linux with 32-bit arch and there doesn't
#                                    seem to be a way to know how many times
#                                    it has already done that before torsmo  
#                                    has started.                            
#  totalup           net             Total upload, this one too, may overflow
#  updates                           Number of updates (for debugging)      
#  upspeed           net             Upload speed in kilobytes              
#  upspeedf          net             Upload speed in kilobytes with one      
#                                    decimal                                
#  uptime                            Uptime                                  
#  uptime_short                      Uptime in a shorter format              
#
#  seti_prog                         Seti@home current progress
#  seti_progbar      (height)        Seti@home current progress bar
#  seti_credit                       Seti@hoome total user credit


# variable is given either in format $variable or in ${variable}. Latter
# allows characters right after the variable and must be used in network
# stuff because of an argument
#${font Dungeon:style=Bold:pixelsize=10}I can change the font as well
#${font Verdana:size=10}as many times as I choose
#${font Perry:size=10}Including UTF-8,
# stuff after 'TEXT' will be formatted on screen

TEXT
##${font Courier:style=Bold:pixelsize=42}${alignc}${time %H:%M:%S}
#${hr 1 }
${voffset -93}${color #ffa500}
${font Courier:bold:size=9}${color red}
${voffset 93}${color #5da5d3}${alignc} UBUNTU @ Macbook Pro
#${voffset -6}${color #ffd700}${hr 1}$font$color
${color #2E8B57}${font Courier:size=8}${font}${color}${color #87CEEB}${hr 1}${color}
${font Ubuntu:size=20}${alignc}${color #87CEEB}${time %H:%M:%S}${font}${alignr}${color}
${color #87CEEB}${alignc}${font Courier:size=10:bold}${time %b-%d-%a}${color}${font}
${hr 1}

${font Courier:bold:size=9:bold}${color #ffd700}Kernel: $alignr${color}$kernel $machine ${color}${execi 99999  uname -v | cut -c -15}
${font Courier:bold:size=9:bold}${color #ffd700}Booting: $alignr${color}$uptime_short
#${font Your Keys:regular:18}${color white}${font courier:bold:size=11}${color #5da5d3}CPU info
#${voffset -8}${color #ffd700}${hr 1}$font$color
# ${font Courier:size=9:bold}$color
${font Courier:bold:size=9}${color #0077ff}CPU$font$color  ${hr 1}
#${alignc}${color red}  ${execi 99999 cat /proc/cpuinfo |  "model name" -m1 | cut -d":" -f2 | cut -d" " -f2- | sed 's#Processor ##'}
${font Courier:bold:size=9}${color red}
   ${freq_g 0}GHz ${cpu cpu0}% ${cpubar cpu0}  
   ${freq_g 1}GHz ${cpu cpu1}% ${cpubar cpu1}
#   ${freq_g 2}GHz ${cpu cpu2}% ${cpubar cpu2}
#   ${freq_g 3}GHz ${cpu cpu3}% ${cpubar cpu3}
#   ${freq_g 4}GHz ${cpu cpu4}% ${cpubar cpu4}
#   ${freq_g 5}GHz ${cpu cpu5}% ${cpubar cpu5}
#   ${freq_g 6}GHz ${cpu cpu6}% ${cpubar cpu6}
#   ${freq_g 7}GHz ${cpu cpu7}% ${cpubar cpu7}
#   ${freq_g 8}GHz ${cpu cpu8}% ${cpubar cpu8}

   ${color #0077ff}Load: $color $loadavg
   ${color #0077ff}Top Processes$alignr -PID-     CPU     MEM$color
  # ---------------------------------------------------------------------------------
 ${top name 1}${color #ff6a6a}$alignr${top pid 1}${top cpu 1}   ${top mem 1}$color
   ${top name 2}${color #ffc125}$alignr${top pid 2}${top cpu 2}   ${top mem 2}$color
   ${top name 3}${color #eeee00}$alignr${top pid 3}${top cpu 3}   ${top mem 3}$color
   ${top name 4}${color #c0ff3e}$alignr${top pid 4}${top cpu 4}   ${top mem 4}$color
${font Courier:bold:size=8:bold}${color #0077ff}CPU Temp $color$font ${hr 1}
${font Courier:bold:size=9}${color red}
  ${color white}CPU-Core 0 Tempe: ${color red}${execpi 5 sensors | grep "Core 0" | awk '{print $3}' | cut -c2-3}°C
  ${color white}CPU-Core 1 Tempe: ${color red}${execpi 5 sensors | grep "Core 1" | awk '{print $3}' | cut -c2-3}°C
#  ${color white}CPU-Core 2 Temperature: ${color red}${execpi 5 sensors | grep "Core 2" | awk '{print $3}' | cut -c2-3}°C
#  ${color white}CPU-Core 3 Temperature: ${color red}${execpi 5 sensors | grep "Core 3" | awk '{print $3}' | cut -c2-3}°C

####
${font Courier:bold:size=8}${color #0077ff}GFX $color$font ${hr 1}
${font Courier:bold:size=9:bold}${color #ffd700}GPU Temp:${color white}${execi 60 nvidia-settings -query GPUCoreTemp | perl -ne 'print $1 if /GPUCoreTemp.*?: (\d+)./;'} °C
#${font courier:bold:size=9}${color red}${execi 8 lspci | grep VGA | tail -c+36 | head -n1}$color$font
#${font courier:bold:size=9}${color white}${execi 8 aticonfig --list-adapters}$color$font
#${font courier:bold:size=9}${color white}${execi 8 fglrxinfo}$color$font
#${font courier:bold:size=9}${color #0077ff}Xorg: ${execi 8 cat /var/log/Xorg.0.log | grep "X.Org X Server " | tail -c+16} $alignr ATI CrossfireX$color$font
${font Courier:bold:size=8}${color #0077ff}RAM / HD$font  $color${hr 1}
   ${color #0077ff}RAM$color $alignc $mem / $memmax $alignr$memperc%
   $membar
   ${color #0077ff}Disk Space$color $alignc ${fs_used /} / ${fs_size /} $alignr${fs_used_perc /} %
   ${fs_bar /}
#---------------------------------------------------------------
#${font Courier:bold:size=8}${color #0077ff}Network$font  $color${hr 1}
#   ${color #0077ff}IP: $color${addr eth1}$alignr
#   ${color #0077ff}Down: ${color white}${downspeed eth1}k/s ${alignr}${color #0077ff}Up: ${color white}${upspeed eth1}k/s
#   ${downspeedgraph eth1 25,100} ${alignr}${upspeedgraph eth1 25,100}
#   ${color #0077ff}Total: ${color white}${totaldown eth1} ${alignr}${color #0077ff}Total:  ${color white}${totalup eth1}
#   ${color #0077ff}Inbound: ${color white}${tcp_portmon 1 32767 count}$alignr${color #0077ff}Outbound: ${color white}${tcp_portmon 32768 61000 count}
#${tcp_portmon 32768 61000 rhost 0} ${alignr} ${tcp_portmon 32768 61000 rservice 0}
#${tcp_portmon 32768 61000 rhost 1} ${alignr} ${tcp_portmon 32768 61000 rservice 1}
#${tcp_portmon 32768 61000 rhost 2} ${alignr} ${tcp_portmon 32768 61000 rservice 2}
#${tcp_portmon 32768 61000 rhost 3} ${alignr} ${tcp_portmon 32768 61000 rservice 3}
#${tcp_portmon 32768 61000 rhost 4} ${alignr} ${tcp_portmon 32768 61000 rservice 4}
#${tcp_portmon 32768 61000 rhost 5} ${alignr} ${tcp_portmon 32768 61000 rservice 5}
#-------------------------------------------------------------------
#
${font Courier:bold:size=8}${color #0077ff}Network $color$font ${hr 1}
#${font Courier:style=Bold:size=8}$color1 Network  ${hr 1}
Down / Up Speed: ${downspeed wifi0} k/s / ${upspeed wifi0} k/s
${downspeedgraph wlan0 20,120 F660AB F52887} $alignr ${upspeedgraph wlan0 20,120 F660AB F52887}
Down / Up Bytes: ${totaldown wifi0} / ${totalup wifi0}
Inbound / Outbound / Total: ${tcp_portmon 1 32767 count} / ${tcp_portmon 32768 61000 count} / ${tcp_portmon 1 65535 count}

${font Courier:style=Bold:size=8}$color1 File systems: $font $color
/      ${fs_free /} (${fs_free_perc /}%) ${fs_bar 6 /}
#/home  ${fs_free /home} (${fs_free_perc /home}%) ${fs_bar 6 /home}
#/usr   ${fs_free /usr} (${fs_free_perc /usr}%) ${fs_bar 6 /usr}

 

评论

我的评论:

发表评论

请 登录 后发表评论。还没有在Zeuux哲思注册吗?现在 注册 !

暂时没有评论

Zeuux © 2022

京ICP备05028076号