Web Projects Consulting

Conky-colors Plus on Fedora 11

The below describes how to install Conky-colors Plus on Fedora 11. You can have a look how it generally looks like at its original web site.

Prepare for the installation:

cd ~/software/
sudo yum install pystatgrab statgrab-tools

Download conky_colors.tar.gz from //www.webupd8.org/2009/05/how-to-install-and-configure-conky.html to ~/software/.

tar xvfz conky_colors.tar.gz
cd conky_colors/
make

You can now tune .conkyrc doing any time:

cd  ~/software/conky_colors/
./conky-colors --help
./conky-colors --lang=en --dark --cputemp --swap --battery --clock=slim --cpu=2 --hd=default --calendar -m --hd=default --weather=UPXX0045 --unit=C --weatherplus --side=right --fedora --network --wlan=0
make install

However, you can edit ~/.conkyrc on yourself. I did not install the original looks from conky-colors but used some of its advanced features for certain elements.

My live .conkyrc id below. Get the Fedora image used in my configuration:

gedit ~/.conkyrc

# — Window Layout & Options — #
own_window yes
own_window_colour brown
own_window_transparent yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
use_spacer right
use_xft yes
alignment top_right
gap_x 10
gap_y 60

# — Colours, Sizes, Fonts & Margins — #
update_interval 2.0
maximum_width 250
stippled_borders 3
border_margin 9
border_width 10
default_color grey

# — Text — #
draw_outline no
draw_borders no
font Monospace:size=7:weight=normal
uppercase no
draw_shades yes

TEXT
${image ~/fedoralogo-small.png -p 5,30 -s 40×40}
${voffset 15}${goto 75}${color #A5C1E4}${font Tahoma:size=24:bold}FEDORA 11$font$color
${goto 75}${nodename}
${color orange}${hr 1}$color
${color white}Kernel$color$alignr $kernel
${color white}Uptime$color$alignr $uptime
${color orange}${execi 60 date +”%B %Y” | tr “[:lower:]” “[:upper:]”} ${hr 2}$color
${execpi 60 DJS= MARKDOWN_HASH276dc0a074f774fe394fbb470883af4cMARKDOWN_HASH ; cal | sed ‘1d’ | sed ‘/./!d’ | sed ‘s/$/ /’ | fold -w 21 | sed -n ‘/^.\{21\}/p’ | sed ‘s/^/${alignr} /’ | sed /” $DJS “/s/” $DJS “/” “‘${color orange}'”$DJS”‘${color}'” “/}
${voffset -90}${goto 20}${font Arial Black:size=38}${color #FFF299}${time %H}${color}${font}${voffset -28}${font Liberation Sans:style=Bold:size=11}${color #FFF299}${time :%M}${color}${font}
${voffset 30}${goto 20}${font Liberation Sans:style=Bold:size=8}${color #00892B}${time %A}${color}${font}${voffset 10}
${if_up wlan0}${color orange}WEATHER ${hr 2}$color
${color #FFBF00}${font Verdana:size=10}Chernivtsi, Ukraine$font$color
${font Andale Mono:size=8}${execi 300 /home/alec/.conky-weather.sh}$font${endif}
${color orange}CPU ${hr 2}$color
${color #008C00}${execi 99999 cat /proc/cpuinfo | grep “model name” -m1 | cut -d”:” -f2 | cut -d” ” -f2- | sed ‘s#Processor ##’}$font$color
Processor 1 … ${cpu cpu1}%${alignr}Processor 2 … ${cpu cpu2}%
${color #ff6600}${cpubar cpu1 3,120} ${color #cc0033}${cpubar cpu2 3,120}$color
${color orange}TEMPERATURES ${hr 2}$color
Processor 1: ${execi 20 sensors |grep ‘Core 0:’ | cut -d” ” -f8} ${alignr}GPU: +${execi 60 nvidia-settings -q gpucoretemp | grep ‘):’ | awk ‘{print $4}’ | cut -c -2}.0°C
Processor 2: ${execi 20 sensors |grep ‘Core 1:’ | cut -d” ” -f8}
${color orange}POWER ${hr 2}$color
${color orange}AC Adapter$color:${alignr}$acpiacadapter, temp: +${acpitemp}°C
${color orange}Battery$color:${alignr}${battery_percent BAT1}% ${battery_time BAT1}
${color #008C00}${battery_bar 3,250 BAT1}$color
${color orange}TOP 5 PROCESSES ${hr 2}$color
${color #ff9999}NAME PID CPU MEM
${color #ffff99}1. ${top name 1}${top pid 1} ${top cpu 1} ${top mem 1}$color
2. ${top name 2}${top pid 2} ${top cpu 2} ${top mem 2}
3. ${top name 3}${top pid 3} ${top cpu 3} ${top mem 3}
4. ${top name 4}${top pid 4} ${top cpu 4} ${top mem 4}
5. ${top name 5}${top pid 5} ${top cpu 5} ${top mem 5}
${color orange}MEMORY & SWAP ${hr 2}$color
${color white}RAM$color $memperc% ${membar 6}$color
${color white}Swap$color $swapperc% ${swapbar 6}$color
${color orange}DRIVES – FREE SPACE ${hr 2}$color
${color white}Fedora$color ${fs_free_perc /}%$alignr${fs_free /}/ ${fs_size /}
${fs_bar 3 /}$color
${color white}Ext$color ${fs_free_perc /mnt/ext}%$alignr${fs_free /mnt/ext}/ ${fs_size /mnt/ext}
${fs_bar 3 /mnt/ext}$color
${color white}Home$color ${fs_free_perc /home}%$alignr${fs_free /home}/ ${fs_size /home}
${fs_bar 3 /home}$color
${if_up wlan0}${color orange}WLAN (${addr wlan0}) ${hr 2}$color
${color white}Down:$color ${downspeed wlan0} KB/s${alignr}${color white}Up:$color ${upspeed wlan0} KB/s
${color white}Downloaded:$color ${totaldown wlan0}${alignr}${color white}Uploaded:$color ${totalup wlan0}
${downspeedgraph wlan0 25,120 0000BF 0066FF -t} ${alignr}${upspeedgraph wlan0 25,120 101010 ff0000 -t}$color${endif}
${color orange}CONNECTIONS ${hr 2}$color
Inbound: ${tcp_portmon 1 32767 count} Outbound: ${tcp_portmon 32768 61000 count}${alignr}ALL: ${tcp_portmon 1 65535 count}
${color #ddaa00}Outbound Connection ${alignr} Remote Service/Port$color
${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}
${color #ddaa00}Inbound Connection ${alignr} Local Service/Port$color
${tcp_portmon 1 32767 rhost 0} ${alignr} ${tcp_portmon 1 32767 lservice 0}
${tcp_portmon 1 32767 rhost 1} ${alignr} ${tcp_portmon 1 32767 lservice 1}
${tcp_portmon 1 32767 rhost 2} ${alignr} ${tcp_portmon 1 32767 lservice 2}
${tcp_portmon 1 32767 rhost 3} ${alignr} ${tcp_portmon 1 32767 lservice 3}
${tcp_portmon 1 32767 rhost 4} ${alignr} ${tcp_portmon 1 32767 lservice 4}

Small Fedora Logo

Small Fedora Logo

And this is how it looks like (the original 1920×1200 screenshot converted down to 1280 jpeg, click the below to expand).

Conky on Fedora 11

Conky on Fedora 11

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.