Skip to main content

Conky - code is never done!

Tweeking the conky code for my Mini 9 (Fedora 14 Xfce) - thanks Hanna !




# Use Xft?
use_xft yes
xftfont Trebuchet MS:size=8
xftalpha 0.8
text_buffer_size 2048

# Update interval in seconds
update_interval 1

# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0

# Create own window instead of using desktop (required in nautilus)
    own_window yes
    own_window_transparent yes
    own_window_type desktop
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
minimum_size 180 0

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 0

# border margins
border_margin 5

# border width
border_width 1

# Default colors and also border colors
default_color white
own_window_colour white

# Text alignment, other possible values are commented
alignment top_right

# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 35
gap_y 50

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no

# number of cpu samples to average
# set to 1 to disable averaging
cpu_avg_samples 2

# number of net samples to average
# set to 1 to disable averaging
net_avg_samples 2

# Force UTF8? note that UTF8 support required XFT
override_utf8_locale yes

# Add spaces to keep things from moving about?  This only affects certain objects.
use_spacer none

TEXT
SYSTEM ${hr 2}

Kernel:  ${alignr}${kernel}
CPU: ${cpu cpu}% ${alignr}${cpubar 8,60 cpu}
RAM: $memperc% ${alignr}${membar 8,60}
Uptime: ${alignr}${uptime}

DATE ${hr 2}
${alignc 35}${font Trebuchet MS:size=26}${time %H:%M}${font}
${alignc}${time %a %d %b %Y}

HD ${hr 2}

Home:
${fs_free /home}/${fs_size /home} ${alignr}${fs_bar 8,60 /home}
Root:
${fs_free /root}/${fs_size /root} ${alignr}${fs_bar 8,60 /root}

NETWORK ${hr 2}
${if_existing /proc/net/route wlan0}
Up: ${upspeed wlan0} kb/s ${alignr}${upspeedgraph wlan0 8,60 789E2D A7CC5C}
Down: ${downspeed wlan0} kb/s ${alignr}${downspeedgraph wlan0 8,60 789E2D A7CC5C}
Upload: ${alignr}${totalup wlan0}
Download: ${alignr}${totaldown wlan0}
Signal: ${wireless_link_qual wlan0}% ${alignr}${wireless_link_bar 8,60 wlan0}${else}${if_existing /proc/net/route eth0}
Up: ${upspeed eth0} kb/s ${alignr}${upspeedgraph eth0 8,60 789E2D A7CC5C}
Down: ${downspeed eth0} kb/s ${alignr}${downspeedgraph eth0 8,60 789E2D A7CC5C}
Upload: ${alignr}${totalup eth0}
Download: ${alignr}${totaldown eth0}${endif}${else}${if_existing /proc/net/route eth1}
Up: ${upspeed eth1} kb/s ${alignr}${upspeedgraph eth1 8,60 789E2D A7CC5C}
Down: ${downspeed eth1} kb/s ${alignr}${downspeedgraph eth1 8,60 789E2D A7CC5C}
Upload: ${alignr}${totalup eth1}
Download: ${alignr}${totaldown eth1}${endif}${else}${font PizzaDude Bullets:size=14}4${font}   Network Unavailable${endif}

MUSIC ${hr 2}
${alignc 35}${font Buttons and Switches JL:size=38}J${font}
${voffset 7}${exec conkyExaile --datatype=TI} by ${exec conkyExaile --datatype=AR}


WEATHER ${hr 2}
${if_existing /proc/net/route wlan0}
${voffset -8}${alignr 56}${font ConkyWeather:style=Bold:size=40}${execi 600 conkyForecast --location=FIXX0020 --datatype=WF}${font}
${voffset -52}${font Weather:size=40}y${font}   ${voffset -38}${font Trebuchet MS:size=26}${execi 600 conkyForecast --location=FIXX0020 --datatype=HT}${font}


${voffset 0}Humidity: ${alignr}${execi 600 conkyForecast --location=FIXX0020 --datatype=HM}
${voffset 0}Moon Phase: ${alignr}${execi 600 conkyForecast --location=FIXX0020 --datatype=MP}
${voffset 0}${font}Wind Speed: ${alignr}${execi 600 conkyForecast --location=FIXX0020 --datatype=WS}
${else}${if_existing /proc/net/route eth0}
${voffset -8}${alignr 56}${font ConkyWeather:style=Bold:size=40}${execi 600 conkyForecast --location=FIXX0020 --datatype=WF}${font}
${voffset -52}${font Weather:size=40}y${font}   ${voffset -38}${font Trebuchet MS:size=26}${execi 600 conkyForecast --location=FIXX0020 --datatype=HT}${font}


${voffset 0}Humidity: ${alignr}${execi 600 conkyForecast --location=FIXX0020 --datatype=HM}
${voffset 0}Moon Phase: ${alignr}${execi 600 conkyForecast --location=FIXX0020 --datatype=MP}
${voffset 0}${font}Wind Speed: ${alignr}${execi 600 conkyForecast --location=FIXX0020 --datatype=WS}
${endif}${else}${if_existing /proc/net/route eth1}
${voffset -8}${alignr 56}${font ConkyWeather:style=Bold:size=40}${execi 600 conkyForecast --location=FIXX0020 --datatype=WF}${font}
${voffset -52}${font Weather:size=40}y${font}   ${voffset -38}${font Trebuchet MS:size=26}${execi 600 conkyForecast --location=FIXX0020 --datatype=HT}${font}


${voffset 0}Humidity: ${alignr}${execi 600 conkyForecast --location=FIXX0020 --datatype=HM}
${voffset 0}Moon Phase: ${alignr}${execi 600 conkyForecast --location=FIXX0020 --datatype=MP}
${voffset 0}${font}Wind Speed: ${alignr}${execi 600 conkyForecast --location=FIXX0020 --datatype=WS}
${endif}${else}
${font PizzaDude Bullets:size=14}4${font}   Weather Unavailable
${endif}

 

Comments

  1. Thank You... but, hm, I tried Your Network code and it works for me only if I leave out the ${endif}s except for the last one :-)

    ReplyDelete

Post a Comment

Popular posts from this blog

Edge of the World Travel Company

Edge of the World Travel Company wants to offer a journey on the boat, Adventurer home based in Mā‘alaea Harbor in Maui Hawaii.  This is a very special yacht, a custom Sunreef Power 70 Catamaran with an elegant topside, extended interior, and exterior space along with its stability, safety, long cruising range with low fuel consumption maintained makes it an ideal vessel for long-term travel around the world. We can offer day trips around Maui or more extensive adventures to the blue lagoon in Rangiroa, Tahiti, and the Marshall Islands even to Fiji if you dare. Were not quite a Superyacht but with a crew of three certified mariners, you are pretty safe.  We offer Snorkeling, SNUBA and SCUBA Diving, Bike Riding on Distant Tropical Islands, Special Journeys Unpack in a luxurious cabin on the Adventurer and go relax and deck and wonder at the beautiful Pacific Ocean as the Explorer heads almost to the South.  Later, See the Southern Cross at Night, Crossing the Equator and face th

The Blue Wander

Looking for adventure?  How about traveling on a luxury boat from Maui Hawaii to the Marshall Islands, where US Nuclear testing began in 1946 on Bikini Atoll after residents were evacuated. Over the years, 67 weapon tests were conducted, including the 15-megaton Castle Bravo hydrogen bomb test, which produced significant fallout in the region. The testing concluded in 1958.  Time has past and a visit is pretty safe these days, we have a highly trained crew and we carry a good Geiger counter, just to make sure.  This area is close enough to the edge of the World. From 1946 to 1958, it served as the Pacific Proving Grounds for the United States and was the site of 67 nuclear tests on various atolls.[16] The world's first hydrogen bomb, codenamed "Mike", was tested at the Enewetak atoll in the Marshall Islands on November 1, (local date) in 1952, by the United States.  How about Pitcairn Island? Pitcairn is the least populous national jurisdiction in the world.  The P

Fedora 14 Xfce on the Dell Mini 9 - Sucess !

I got Fedora 14 Xfce installed on the Dell Mini 9. After the typical Fedora install, I had head over to RPM Fusion with Firefox to load the Free and Nonfree Repositories, but this was very easy just click-and-load and authorize as root. I loaded the “non-free” kmod-wl driver due to the Broadcom wireless card in the Mini 9. After a restart, we got wireless LAN. If you run Fedora, the RPM Fusion Repositories are at: http://rpmfusion.org/Configuration My Mini 9 has had so many distros on it, but the SSD is holding up well. It came with the Dell tweeked Ubuntu remix, I updated to the latest immediately, ran with Kubuntu for awhile till I ran into the KDE 4X issues (too wiggy for me). I tried #! Crunchbang Linux and that was a winner. It’s dark and ran very well but my “hackerness” brought me back to Xfce. IMHO, it seems Ubuntu is getting a bit wiggy. First it was the menu buttons on the top left, which I promptly fixed back, and Kubuntu is ok but always held back a bit., now th