Friday, April 5, 2013

Fedora 17 : Conky in Gnome

1. Install Conky.

~]$ yum -y install conky

2. Create conkyrc file. 

~]$ vi ~/.conkyrc

Make sure you use "own_window_type normal" and change eth0 to the name of your network interface.

3. Create startup script.

~]$ vi ~/

4. Add Conky to Startup Programs

~]$ gnome-session-properties &

Click Add button:
Name: Conky
Command: ~/

5. Log out and log in back.


=== conkyrc ===

# .conkyrc
alignment top_right
gap_x 30
gap_y 50
background yes
border_width 1
cpu_avg_samples 2
default_color grey
default_outline_color black
default_shade_color lightgrey
draw_borders no
draw_graph_borders no
draw_outline no
draw_shades no
use_xft yes
xftalpha 0.75
xftfont DejaVu Sans:size=8
minimum_size 5 5
maximum_width 300
net_avg_samples 2
no_buffers yes
double_buffer yes
text_buffer_size 2048
out_to_console no
out_to_stderr no
extra_newline no
own_window yes
own_window_class Conky
#own_window_type desktop # makes it part of the desktop, GNOME hides this upon clicking desktop
own_window_type normal # makes it part of the desktop, but GNOME does not hide it
#own_window_type panel # cannot be hidden by other windows
#own_window_type dock # can be hidden by other windows, but cannot be aligned

own_window_argb_visual yes # added this in Fedora 19 to fix transparency issue
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
stippled_borders 0
uppercase no
use_spacer none
show_graph_scale no
show_graph_range no
imlib_cache_size 0 # Don't Cache Images
#update_interval 0.5
update_interval 1.0
#update_interval 2.0
#update_interval 3.0
#update_interval 4.0
#update_interval 5.0
#update_interval 10.0
#update_interval 15.0
#update_interval 30.0
#update_interval 60.0
${color #ffcb48}${font openlogos:size=40}N${font DejaVu Sans:size=16} ${voffset -25}${offset -10} FEDORA 17
${voffset -10}${offset 45}$color${font}$sysname $kernel on $machine
${color #ffcb48}${font StyleBats:size=18}k ${font DejaVu Sans:size=16}SYSTEM ${hr 1}${font}
${color slate grey}Up:$color $uptime${goto 150}${cpugraph 50,150 4d8e00 A80000 -t}
${voffset -50}${color slate grey}CPU:$color $cpu%
${color slate grey}Processes:$color $running_processes/$processes
${color slate grey}Load:$color $loadavg
${color slate grey}CPU 0 $color${cpu cpu1}% ${cpubar cpu1}
${color slate grey}CPU 1 $color${cpu cpu2}% ${cpubar cpu2}
${color slate grey}CPU 2 $color${cpu cpu3}% ${cpubar cpu3}
${color slate grey}CPU 3 $color${cpu cpu4}% ${cpubar cpu4}
${color slate grey}Swap:$color $swap/$swapmax - $swapperc% ${swapbar 4}
${color slate grey}RAM:$color $mem/$memmax - $memperc% ${memgraph 10,128 4d8e00 A80000 -t}
${color #ffcb48}${font StyleBats:size=18}l ${font DejaVu Sans:size=14}Processes ${hr 1}${font}
${color slate grey}Name $alignr PID CPU% MEM%
$color${top name 1} $alignr$color ${top pid 1} ${top cpu 1}% ${top mem 1}%
$color${top name 2} $alignr$color ${top pid 2} ${top cpu 2}% ${top mem 2}%
$color${top name 3} $alignr$color ${top pid 3} ${top cpu 3}% ${top mem 3}%
$color${top name 4} $alignr$color ${top pid 4} ${top cpu 4}% ${top mem 4}%
$color${top name 5} $alignr$color ${top pid 5} ${top cpu 5}% ${top mem 5}%
$color${top name 6} $alignr$color ${top pid 6} ${top cpu 6}% ${top mem 6}%
$color${top name 7} $alignr$color ${top pid 7} ${top cpu 7}% ${top mem 7}%
$color${top name 8} $alignr$color ${top pid 8} ${top cpu 8}% ${top mem 8}%
$color${top name 9} $alignr$color ${top pid 9} ${top cpu 9}% ${top mem 9}%
${color #ffcb48}${font StyleBats:size=18}j ${font DejaVu Sans:size=14}File Systems ${hr 1}${font}
${color slate grey} / $color${fs_used}/${fs_size} ${alignr}${color slate grey}Used: $color${fs_used_perc /}% ${color slate grey}Free: $color${fs_free_perc /}%
${fs_bar 6}
${color slate grey} /home $color${fs_used /home}/${fs_size /home} ${alignr}${color slate grey}Used: $color${fs_used_perc /home}% ${color slate grey}Free: $color${fs_free_perc /home}%
${fs_bar 6 /home}
${color #ffcb48}${font StyleBats:size=18}2 ${font DejaVu Sans:size=14}Network ${hr 1}${font}
${color slate grey}Public: ${goto 41}$color${execpi 600 wget -q -O /dev/stdout | cut -d : -f 2- | cut -d \< -f -1} ${goto 150}${downspeedgraph eth0 30,150 4d8e00 A80000 -t}
${voffset -30}${color slate grey}IP: ${goto 45}$color${addr eth0}
${color slate grey}Down: ${goto 45}$color${downspeedf eth0} Kb/sec
${color slate grey}Up: ${goto 45}$color${upspeedf p5p1} Kb/sec${goto 150}${upspeedgraph eth0 30,150 4d8e00 A80000 -t}
${voffset -30}${color slate grey}Downloaded: $color${totaldown eth0}
${color slate grey}Uploaded: $color${totalup eth0}

=== ===

sleep 10 && /usr/bin/conky -c /home/gescape/.conkyrc ;


No comments:

Post a Comment