Conky тема #1


Создаем в домашней директории (home) файл .conkyrc (файл скрытый- на это указывает точка впереди), открываем файл .conkyrc с помощью любого текстового редактора и вставляем код:



# set to yes if you want Conky to be forked in the background
background yes
use_xft yes
xftfont HandelGotD:size=7
xftalpha 0.5
update_interval 1.0
total_run_times 0
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 250 5
maximum_width 250
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes

default_color white
#default_color green
default_shade_color red
default_outline_color grey
alignment top_right
gap_x 12
gap_y 48
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale yes

TEXT
${font Arial Black:size:36}${alignc} ${nodename}
Date & Time ${hr 2}
${font Arial Black:size:36}${alignc} ${time %H:%M:%S}${font}
${alignc}${Time %a %b %d %Y}
System ${hr 2}
Distro ${alignr}#! CrunchBang 8.10.01
Kernel ${alignr}$sysname $kernel on $machine
Hostname $alignr $nodename
Uptime $alignr $uptime
CPU1: ${cpu cpu1}% ${alignr}${cpubar cpu1 8,70}
CPU2: ${cpu cpu2}% ${alignr}${cpubar cpu2 8,70}

MEM $alignc $mem / $memmax $alignr $memperc%
${color 48a0d2}${membar}${color}

File System ${hr 2}

Root $alignc ${fs_used /} / ${fs_size /} $alignr ${fs_free_perc /}%
${color 48a0d2}${fs_bar /}${color}
Home $alignc ${fs_used /home} / ${fs_size /home} $alignr ${fs_free_perc /home}%
${color 48a0d2}${fs_bar /home}${color}

Processes ${hr 2}
$processes processes ($running_processes running)
Load Average${alignr}$loadavg
NAME $alignr PID CPU MEM
${top name 1} $alignr ${top pid 1} ${top cpu 1} ${top mem 1}
${top name 2} $alignr ${top pid 2} ${top cpu 2} ${top mem 2}
${top name 3} $alignr ${top pid 3} ${top cpu 3} ${top mem 3}
${top name 4} $alignr ${top pid 4} ${top cpu 4} ${top mem 4}
${top name 5} $alignr ${top pid 5} ${top cpu 5} ${top mem 5}

Network ${hr 2}
${if_existing /proc/net/route wlan0}
${font ConkyWeather:size:36}${alignc} WLAN: ${wireless_essid wlan0}${font}

Up: ${upspeed wlan0} kb/s ${alignr}${upspeedgraph wlan0 8,70 BEBEBE BEBEBE}
Down: ${downspeed wlan0} kb/s ${alignr}${downspeedgraph wlan0 8,70 BEBEBE BEBEBE}
Upload: ${alignr}${totalup wlan0}
Download: ${alignr}${totaldown wlan0}
Signal: ${wireless_link_qual wlan0}% ${alignr}${wireless_link_bar 8,70 wlan0}
Local Ip: ${alignr}${addr wlan0}
${else}${if_existing /proc/net/route eth0}
${font ConkyWeather:size:36}${alignc} LAN: ${addr eth0}${font}

Up: ${upspeed eth0} kb/s ${alignr}${upspeedgraph eth0 8,70 789E2D A7CC5C}
Down: ${downspeed eth0} kb/s ${alignr}${downspeedgraph eth0 8,70 789E2D A7CC5C}
Upload: ${alignr}${totalup eth0}
Download: ${alignr}${totaldown eth0}
Local Ip: ${alignr}${addr eth0}
${else}${if_existing /proc/net/route eth1}
${font ConkyWeather:size:36}${alignc} LAN: ${addr eth1}${font}

Up: ${upspeed eth0} kb/s ${alignr}${upspeedgraph eth1 8,70 789E2D A7CC5C}
Down: ${downspeed eth0} kb/s ${alignr}${downspeedgraph eth1 8,70 789E2D A7CC5C}
Upload: ${alignr}${totalup eth1}
Download: ${alignr}${totaldown eth1}
Local Ip: ${alignr}${addr eth1}
${endif}${else}${if_existing wlan0}
Up: ${upspeed wlan0} kb/s ${alignr}${upspeedgraph wlan0 8,70 789E2D A7CC5C}
Down: ${downspeed wlan0} kb/s ${alignr}${downspeedgraph wlan0 8,70 789E2D A7CC5C}
Upload: ${alignr}${totalup wlan0}
Download: ${alignr}${totaldown wlan0}
Local Ip: ${alignr}${addr wlan0}
${endif}${else}
${font PizzaDude Bullets:size=14}4${font} Network Unavailable
${endif}

Комментарии