topic title: Conky configuration
Posts: 19
Tanga
Joined: 21 Jan 2012
#61
Wow, some gorgeous conky setups in here. I like the idea of keeping a list of commented out commands in the conky file, and also a list of shortcuts. I might follow suit with that (at least until I'm more familiar with them.

I wanted something a bit 'prettier' than the usual text based options and this is what I ended up with:
Image

References:
Took a little of the design stuff (especially the fonts) from
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://www.quicktweaks.com/2008/09/27/gmail-weather-beauty-right-on-your-ubuntu-desktop/#idc-cover"
linktext was:"here"
====================================
and all the weather code from
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://www.webupd8.org/2011/09/htc-like-clock-weather-conky.html"
linktext was:"here"
====================================
.

First you'll need to install Conky Forcast (it's in the repositories). Very handy for getting weather in my conky (nothing else worked). You'll need to change ASXX0001 to your location code. Look up your code at
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://www.weather.com/"
linktext was:"weather.com"
====================================
then do a find and replace from within geany (or your text editor of choice). You'll also need the
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://dl.getdropbox.com/u/83257/conkyfonts.zip"
linktext was:"fonts"
====================================
.

Code: Sorry about this, but Googledocs isn't working for me, and I didn't want to sign up for filesonic with what's going on in the states right now.

conkyrc

Code: Select all

# -- Conky settings -- #
    background no
    update_interval 1

    cpu_avg_samples 2
    net_avg_samples 2

    override_utf8_locale yes

    double_buffer yes
    no_buffers yes

    text_buffer_size 2048
    imlib_cache_size 0

    # -- Window specifications -- #

    own_window yes
    own_window_type override
    own_window_transparent yes
    own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below

    border_inner_margin 10
    border_outer_margin 10

    minimum_size 310 310
    maximum_width 310
    

    alignment tr
    gap_x -20
    gap_y 30

    # -- Graphics settings -- #
    draw_shades no
    draw_outline no
    draw_borders no
    draw_graph_borders yes

    # -- Text settings -- #
    use_xft yes
xftfont verdana:size=8
xftalpha 0.8
color1 014A7F
uppercase no

TEXT
   ${color 014A7F}${font Radio Space:size=14}${time %A %d %Y}
      ${font Radio Space:size=55}${time %H:%M}
   ${voffset -65}${goto 175}${font verdana:size12}${color 4A4D4A}${execi 600 conkyForecast --location=ASXX0001 --datatype=CN --refetch}  ${execi 1800 conkyForecast --location=ASXX0001 -u
    --datatype=HT}
   ${voffset 50}${font verdana :size=8}${color 014A7F}${goto 25}${execi 600 conkyForecast --location=ASXX0001 --datatype=HT -u --startday=1}/${color 4A4D4A}${execi 600 conkyForecast --location=ASXX0001 --datatype=LT -u --startday=1}${font verdana :size=8}${color 014A7F}${goto 76}${execi 600 conkyForecast --location=ASXX0001 --datatype=HT -u --startday=2}/${color 4A4D4A}${execi 600 conkyForecast --location=ASXX0001 --datatype=LT -u --startday=2} ${font verdana :size=8}${color 014A7F}${goto 130}${execi 600 conkyForecast --location=ASXX0001 --datatype=HT -u --startday=3}/${color 4A4D4A}${execi 600 conkyForecast --location=ASXX0001 --datatype=LT -u --startday=3} ${font verdana :size=8}${color 014A7F}${goto 180}${execi 600 conkyForecast --location=ASXX0001 --datatype=HT -u --startday=4}/${color 4A4D4A}${execi 600 conkyForecast --location=ASXX0001 --datatype=LT -u --startday=4}
   ${font verdana :size=8}${color 4A4D4A}${goto 25}${execi 600 conkyForecast --location=ASXX0001 --datatype=DW --shortweekday --startday=1}${font verdana :size=8}${color 4A4D4A}${goto 76}${execi 600 conkyForecast --location=ASXX0001 --datatype=DW --shortweekday --startday=2}${font verdana :size=8}${color 4A4D4A}${goto 130}${execi 600 conkyForecast --location=ASXX0001 --datatype=DW --shortweekday --startday=3}${font verdana :size=8}${color 4A4D4A}${goto 180}${execi 600 conkyForecast --location=ASXX0001 --datatype=DW --shortweekday --startday=4} 
   ${voffset -26}${font verdana :size=8}${color 014A7F}${goto 234}${execi 600 conkyForecast --location=ASXX0001 --datatype=HT -u --startday=5}/${color 4A4D4A}${execi 600 conkyForecast --location=ASXX0001 --datatype=LT -u --startday=5}
   ${font verdana :size=8}${color 4A4D4A}${goto 234}${execi 600 conkyForecast --location=ASXX0001 --datatype=DW --shortweekday --startday=5}${execpi 600 conkyForecast --location=ASXX0001 --template=~/.vreme.template}
   

   ${color 014A7F}${font PizzaDude Bullets:size=14}J${voffset -2}${font}${goto 60}RAM:${goto 110}${voffset 1}${membar 6, 162}
   
   ${voffset -6}${font StyleBats:size=16}A${voffset -4}${font}${goto 60}CPU:${goto 110}${voffset 1}${cpubar 6, 162}
   
   ${voffset -9}${font StyleBats:size=16}8${voffset -4}${font}${goto 60}Battery:${goto 110}${execi 10 (acpi -b | awk)}${voffset 1}${battery_bar 6, 162 BAT1}
   
   ${voffset -9}${font StyleBats:size=16}j${voffset -4}${font}${goto 60}HDD:${goto 110}${fs_bar 6, 162}
You'll also need vreme.template to tell it where to put the weather images:

Code: Select all

${image [--datatype=WI] -p 80,10 -s 113x113} 
${image [--datatype=WI --startday=1] -p 2,128 -s 43x43}
${image [--datatype=WI --startday=2] -p 54,128 -s 43x43}
${image [--datatype=WI --startday=3] -p 106,128 -s 43x43}
${image [--datatype=WI --startday=4] -p 158,128 -s 43x43}  
${image [--datatype=WI --startday=5] -p 210,128 -s 43x43}  
Sorry about the ugly code, I'm sure there is a better way of aligning everything, but I've never coded, and just moved things around (and changed their colour so I could tell what was what) until I got the effect I wanted. Hopefully a starting point for those that want visual weather references on their desktop.
Posts: 299
Cuttlefish
Joined: 18 Dec 2008
#62
Really nice Tanga!
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#63
Posting this so I can grab it later for Antix 12 since I am in AntiX 11

Code: Select all

# Conky settings #
background no
update_interval 1

cpu_avg_samples 2
net_avg_samples 2

override_utf8_locale yes

double_buffer yes
no_buffers yes

text_buffer_size 2048
#imlib_cache_size 0

temperature_unit fahrenheit

# Window specifications #

own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below

border_inner_margin 0
border_outer_margin 0

minimum_size 200 250
maximum_width 200

alignment tr
gap_x 35
gap_y 35

# Graphics settings #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no

# Text settings #
use_xft yes
xftfont Sans Serif:size=9
xftalpha 0.8
text_buffer_size 2048

uppercase no

temperature_unit celsius
default_color FFFFFF

# Lua Load  #
lua_load ~/.conky/clock_rings.lua
lua_draw_hook_pre clock_rings

TEXT
${voffset 8}${color FF6600}${font Sans Serif:size=16}${time %A}${font}${voffset -8}${alignr 50}${color FFFFFF}${font Sans Serif:size=38}${time %e}${font}
${color FFFFFF}${voffset -30}${color FFFFFF}${font Sans Serif:size=18}${time %b}${font}${voffset -3} ${color FFFFFF}${font Sans Serif:size=20}${time %Y}${font}${color FF6600}${hr}
${voffset 140}${font Sans Serif:size=10}${alignr}${time %H:%M}${font}${color}
AntiX 11 RC3 Patched ${color FF6600}${hr}${color}
#${pre_exec lsb_release -ircs} ${color FF6600}${hr}${color}

Kernel: ${alignr}${kernel}
Uptime: ${alignr}${uptime}
Temperature: ${alignr}${acpitemp}°C
CPU1: ${cpu cpu1}% ${alignr}${color FF6600}${cpugraph cpu1 8,60 FF6600 FFFFFF}${color}
#CPU2: ${cpu cpu2}% ${alignr}${color FF6600}${cpugraph cpu2 8,60 FF6600 FFFFFF}${color}
RAM: $memperc% ${alignr}${color FF6600}${memgraph 8,60 FF6600 FFFFFF}${color}

Top Processes ${color FF6600}${hr}${color}

${top_mem name 1}$alignr${color FF6600}${top_mem cpu 1}${color}${top_mem mem 1}
${top_mem name 2}$alignr${color FF6600}${top_mem cpu 2}${color}${top_mem mem 2}
${top_mem name 3}$alignr${color FF6600}${top_mem cpu 3}${color}${top_mem mem 3}
 
${color ffffff}Free Space:
${color b555b2}/root:${color b555b2} ${fs_free /} ${color ffffff}= ${fs_free_perc /}%
${color b555b2}$fs_bar_free /home
#${color 4ab1ab}/home:${color 4ab1ab} ${fs_free /home} ${color ffffff}= ${fs_free_perc /home}%
#${color 4ab1ab}${fs_bar_free /home}

${font sans:bold:size=9}Up:${upspeed eth0} - Down:${downspeed eth0}

${font DejaVuSansMono:size=8}${color ffffff}Running processes: ${color ffffff}$running_processes$font
${font DejaVuSansMono:size=8}${color ffffff}Name                ${color red}CPU%    ${color 7091c1}MEM%$font
  ${font DejaVuSansMono:size=8}${color ffffff} ${top name 1}  ${color red}${top cpu 1}  ${color 7091c1}${top mem 1}$font
${color ffffff}${time %a %d %b %l:%M:%S%p}
${font Penguin Attack}${color b5550b}Conky ${color b5550b}$conky_version$font

Lua goes in folder .conky on /home/username and is named clock_rings.lua.

Code: Select all

--[[
This script draws percentage meters as rings, and also draws clock hands if you want! It is fully customisable; all options are described in the script. This script is based off a combination of my clock.lua script and my rings.lua script.

IMPORTANT: if you are using the 'cpu' function, it will cause a segmentation fault if it tries to draw a ring straight away. The if statement on line 145 uses a delay to make sure that this doesn't happen. It calculates the length of the delay by the number of updates since Conky started. Generally, a value of 5s is long enough, so if you update Conky every 1s, use update_num>5 in that if statement (the default). If you only update Conky every 2s, you should change it to update_num>3; conversely if you update Conky every 0.5s, you should use update_num>10. ALSO, if you change your Conky, is it best to use"killall conky; conky" to update it, otherwise the update_num will not be reset and you will get an error.

To call this script in Conky, use the following (assuming that you save this script to ~/scripts/rings.lua):
    lua_load ~/scripts/clock_rings.lua
    lua_draw_hook_pre clock_rings
]]

settings_table = {
    {
        -- Edit this table to customise your rings.
        -- You can create more rings simply by adding more elements to settings_table.
        --"name" is the type of stat to display; you can choose from 'cpu', 'memperc', 'fs_used_perc', 'battery_used_perc'.
        name='time',
        --"arg" is the argument to the stat type, e.g. if in Conky you would write ${cpu cpu0}, 'cpu0' would be the argument. If you would not use an argument in the Conky variable, use ''.
        arg='%I.%M',
        --"max" is the maximum value of the ring. If the Conky variable outputs a percentage, use 100.
        max=12,
        --"bg_colour" is the colour of the base ring.
        bg_colour=0xffffff,
        --"bg_alpha" is the alpha value of the base ring.
        bg_alpha=0.1,
        --"fg_colour" is the colour of the indicator part of the ring.
        fg_colour=0xFF6600,
        --"fg_alpha" is the alpha value of the indicator part of the ring.
        fg_alpha=0.2,
        --"x" and"y" are the x and y coordinates of the centre of the ring, relative to the top left corner of the Conky window.
        x=100, y=150,
        --"radius" is the radius of the ring.
        radius=50,
        --"thickness" is the thickness of the ring, centred around the radius.
        thickness=5,
        --"start_angle" is the starting angle of the ring, in degrees, clockwise from top. Value can be either positive or negative.
        start_angle=0,
        --"end_angle" is the ending angle of the ring, in degrees, clockwise from top. Value can be either positive or negative, but must be larger than start_angle.
        end_angle=360
    },
    {
        name='time',
        arg='%M.%S',
        max=60,
        bg_colour=0xffffff,
        bg_alpha=0.1,
        fg_colour=0xFF6600,
        fg_alpha=0.4,
        x=100, y=150,
        radius=56,
        thickness=5,
        start_angle=0,
        end_angle=360
    },
    {
        name='time',
        arg='%S',
        max=60,
        bg_colour=0xffffff,
        bg_alpha=0.1,
        fg_colour=0xFF6600,
        fg_alpha=0.6,
        x=100, y=150,
        radius=62,
        thickness=5,
        start_angle=0,
        end_angle=360
    },
    {
        name='time',
        arg='%d',
        max=31,
        bg_colour=0xffffff,
        bg_alpha=0.1,
        fg_colour=0xFF6600,
        fg_alpha=0.8,
        x=100, y=150,
        radius=70,
        thickness=5,
        start_angle=-90,
        end_angle=90
    },
    {
        name='time',
        arg='%m',
        max=12,
        bg_colour=0xffffff,
        bg_alpha=0.1,
        fg_colour=0xFF6600,
        fg_alpha=1,
        x=100, y=150,
        radius=76,
        thickness=5,
        start_angle=-90,
        end_angle=90
    }
}

-- Use these settings to define the origin and extent of your clock.

clock_r=65

--"clock_x" and"clock_y" are the coordinates of the centre of the clock, in pixels, from the top left of the Conky window.

clock_x=100
clock_y=150

show_seconds=true

require 'cairo'

function rgb_to_r_g_b(colour,alpha)
    return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end

function draw_ring(cr,t,pt)
    local w,h=conky_window.width,conky_window.height
    
    local xc,yc,ring_r,ring_w,sa,ea=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['start_angle'],pt['end_angle']
    local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha']

    local angle_0=sa*(2*math.pi/360)-math.pi/2
    local angle_f=ea*(2*math.pi/360)-math.pi/2
    local t_arc=t*(angle_f-angle_0)

    -- Draw background ring

    cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f)
    cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
    cairo_set_line_width(cr,ring_w)
    cairo_stroke(cr)
    
    -- Draw indicator ring

    cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
    cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
    cairo_stroke(cr)        
end

function draw_clock_hands(cr,xc,yc)
    local secs,mins,hours,secs_arc,mins_arc,hours_arc
    local xh,yh,xm,ym,xs,ys
    
    secs=os.date("%S")    
    mins=os.date("%M")
    hours=os.date("%I")
        
    secs_arc=(2*math.pi/60)*secs
    mins_arc=(2*math.pi/60)*mins+secs_arc/60
    hours_arc=(2*math.pi/12)*hours+mins_arc/12
        
    -- Draw hour hand
    
    xh=xc+0.7*clock_r*math.sin(hours_arc)
    yh=yc-0.7*clock_r*math.cos(hours_arc)
    cairo_move_to(cr,xc,yc)
    cairo_line_to(cr,xh,yh)
    
    cairo_set_line_cap(cr,CAIRO_LINE_CAP_ROUND)
    cairo_set_line_width(cr,5)
    cairo_set_source_rgba(cr,1.0,1.0,1.0,1.0)
    cairo_stroke(cr)
    
    -- Draw minute hand
    
    xm=xc+clock_r*math.sin(mins_arc)
    ym=yc-clock_r*math.cos(mins_arc)
    cairo_move_to(cr,xc,yc)
    cairo_line_to(cr,xm,ym)
    
    cairo_set_line_width(cr,3)
    cairo_stroke(cr)
    
    -- Draw seconds hand
    
    if show_seconds then
        xs=xc+clock_r*math.sin(secs_arc)
        ys=yc-clock_r*math.cos(secs_arc)
        cairo_move_to(cr,xc,yc)
        cairo_line_to(cr,xs,ys)
    
        cairo_set_line_width(cr,1)
        cairo_stroke(cr)
    end
end

function conky_clock_rings()
    local function setup_rings(cr,pt)
        local str=''
        local value=0
        
        str=string.format('${%s %s}',pt['name'],pt['arg'])
        str=conky_parse(str)
        
        value=tonumber(str)
        pct=value/pt['max']
        
        draw_ring(cr,pct,pt)
    end
    
    -- Check that Conky has been running for at least 5s

    if conky_window==nil then return end
    local cs=cairo_xlib_surface_create(conky_window.display,conky_window.drawable,conky_window.visual, conky_window.width,conky_window.height)
    
    local cr=cairo_create(cs)    
    
    local updates=conky_parse('${updates}')
    update_num=tonumber(updates)
    
    if update_num>5 then
        for i in pairs(settings_table) do
            setup_rings(cr,settings_table[i])
        end
    end
    
    draw_clock_hands(cr,clock_x,clock_y)
end

Edit: AntiX 12 is done.

Posts: 765
rust collector
Joined: 27 Dec 2011
#64
I found a neat line to add usb-sticks and such to conky, on some forum somewhere.
It seems to work pretty well!

Code: Select all

${exec df -h | grep"/dev/sd" | awk '{ printf"%s of %s \t : %s\n", $5, $2, $6 }' }
It just show how much space you have on (for example) sdb1, sdc1, and so on.
They show up on their own line, and disappear when you unmount the drive.
Posts: 146
Eperbab
Joined: 10 Dec 2012
#65
I ended up with this configuration:
Image

The way it reads the session name may work on kde, lxde, xfce, gnome3 etc. as well.

The only problem is, that the window is transparent but, if I move something to the area used by conky, then I don't see it.

**
Update: I just figured out, that $usernames doesn't work, if I'm running a full desktop environment without any opened terminal. So now I'm using this: ${exec ps ux | grep -m1 'ps ux' | cut -d' ' -f1} . Since 'ps ux' adds itself to the process list, it will find itself for sure.. __{{emoticon}}__

If I add the 'export DESKTOP_CODE="*session name*" ' line in ./xinitrc to Mate, then I can use it in conky as ${exec echo $DESKTOP_CODE} or simply $DESKTOP_CODE to display the actual session? At the moment I'm running lightdm, and can't start slim paralel to test it. Don't know, how to start slim service on tty8 while Mate-session is running on tty7.
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#66
Just another conkyrc


Code: Select all

# .conkyrc
background yes
update_interval 3
update_interval_on_battery 30
double_buffer yes
alignment top_right
#alignment top_left
gap_x 50
gap_y 15
maximum_width 275
own_window no
own_window_transparent yes
own_window_type normal
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_argb_visual yes
own_window_argb_value 69
default_color ivory
color7 green
color8 yellow
color9 red
default_bar_size 120 12
show_graph_scale yes
use_xft yes
xftalpha 0.5
xftfont DejaVu Sans:size=10
font DejaVu Sans:size=10
override_utf8_locale yes
top_name_width 10
use_spacer left
format_human_readable yes
pad_percents 2
short_units yes
if_up_strictness address
TEXT
${voffset 15}
${color cyan}${time %a %d %b %k:%M %Y} Country Boy Time
#${alignc}${utime %A %B %d, %Y %R} ${color}
#
## System
#
${font size=11}${color coral}System ${hr 1}${font}${color}
Machine${alignr}${color cyan}$nodename${color}
Kernel${alignr}${color cyan}$sysname $kernel | $machine${color}
Uptime${alignr}${color Cyan}$uptime${color}
Battery${if_match ${battery_percent BAT1}>=92}${alignr}${color forest green}${battery_bar BAT1}${color}\
${else}${if_match ${battery_percent BAT1}>=30}${alignr}${color yellow}${battery_bar BAT1}${color}\
${else}${alignr}${color red}${battery_bar BAT1}${color}${endif}${endif}
${voffset -16}${alignr 40}${color white}${battery_percent BAT1}%${color}
#
## CPU
#
${font size=11}${color coral}CPU ${hr 1}${font}${color}
${color cyan}${execi 86400 cat /proc/cpuinfo | cat /proc/cpuinfo | grep 'model name' -m1 | cut -d':' -f2 | cut -b2- | sed -e 's/([^()]*)//g' -e 's/  */ /g' -e 's/ *$//'
}${color}
#
Core0 ${color Cyan}${freq_g 1}GHz ${color blue}${cpubar 12,117 cpu0} \
${alignr}${execpi 6 sensors | grep"Core 0:" | cut -d"+" -f2 | cut -b1-2 | xargs sh ~/colorize_cpu_temps.sh}\
${execi 86400 echo $'\302\260'}C${color}
${voffset -16}${alignc -40}${color white}${cpu cpu0}%${color}
#
Core1 ${color Cyan}${freq_g 2}GHz ${color blue}${cpubar 12,117 cpu1} \
${alignr}${execpi 6 sensors | grep"Core 1:" | cut -d"+" -f2 | cut -b1-2 | xargs sh ~/colorize_cpu_temps.sh}\
${execi 86400 echo $'\302\260'}C${color}
${voffset -16}${alignc -40}${color white}${cpu cpu1}%${color}
#
${color blue}${loadgraph 30,252 FFFF00 0000FF -t}
${voffset -31}${alignc}${color white}${loadavg 1}${color}${voffset 8}
#
## Hard Drive
#
${font size=11}${color coral}Hard Drive ${hr 1}${color}${font}
${color cyan}${execi 86400 sudo /usr/sbin/hddtemp /dev/sda | cut -d':' -f2 | cut -b2-18} \
${execi 86400 sudo /usr/sbin/hdparm -I /dev/sda | grep 'M = 1000' | cut -b53-60}\
${alignr}${execpi 6 sudo /usr/sbin/hddtemp -n /dev/sda | xargs sh ~/colorize_hd_temps.sh}\
${execi 86400 echo $'\302\260'}C${color}
#
${color blue}${diskiograph sda 30,252 FFFF00 0000FF -t}
${voffset -31}${alignc}${color white}${diskio sda}${voffset 12}
#
${font DejaVu Sans Mono:size=10}root${alignr}${color cyan}${fs_size /} ${color blue}${fs_bar /}${color}
${voffset -16}${color white}${alignr 45}${fs_used /}${alignr 10}${fs_used_perc /}%${color}
home${alignr}${color cyan}${fs_size /home} ${color blue}${fs_bar /home}${color}
## Memory
${font size=11}${color coral}Memory ${hr 1}${color}${font}
${memmax}${alignr}${color cyan}${mem} ${color blue}${membar}
${voffset -16}${alignr 40}${color white}${memperc}%
${swapmax}${alignr}${color cyan}${swap} ${color blue}${swapbar}
${voffset -16}${alignr 40}${color white}${swapperc}%
#
## Top Processes
#
${font size=11}${color coral}Top Processes ${hr 1}${color}${font}
Processes:${color cyan}${running_processes}/${processes}${color}${goto 145}
${font DejaVu Sans Mono:size=10}\
Name${goto 110}${alignr}CPU       Memory Usage${color hot pink}
${top name 1}${top cpu 1}%${alignr}${top mem_res 1}${top mem 1}%${color cyan}
${top name 2}${top cpu 2}%${alignr}${top mem_res 2}${top mem 2}%
${top name 3}${top cpu 3}%${alignr}${top mem_res 3}${top mem 3}%
${top name 4}${top cpu 4}%${alignr}${top mem_res 4}${top mem 4}%
${top name 5}${top cpu 5}%${alignr}${top mem_res 5}${top mem 5}%${color}${font}
#
## NetWork
#
${font size=11}${color coral}Network ${hr 1}${color}${font}
${if_up wlan0}\
Wifi Quality:${color cyan}${wireless_link_qual wlan0}${alignr}${color blue}${wireless_link_bar wlan0}${color}
${voffset -16}${alignr 40}${color white}${wireless_link_qual_perc wlan0}%
Best:${color cyan}${wireless_link_qual_max wlan0}${color}
Down:${color cyan}${downspeed wlan0}${color}${goto 140}${color}
${color blue}${downspeedgraph wlan0 30,120 FFFF00 0000FF -t}${alignr}${upspeedgraph wlan0 30,120 FFFF00 0000FF -t}${color}
${else}\
${if_up eth0}\
IP Address${goto 152}${addr eth0}
Down:${color cyan}${downspeed eth0}${color}${goto 140}Up:${color cyan}${upspeed eth0}${color}
${color blue}${downspeedgraph eth0 30,120 FFFF00 0000FF -t}${alignr}${upspeedgraph eth0 30,120 FFFF00 0000FF -t}${color}

Posts: 325
male
Joined: 04 Nov 2011
#67
Hi Roky,
why is your cpu utilization of fluxbox at ~50%

Code: Select all

System:    Host: antiX13Desk Kernel: 3.8-8.dmz.1-liquorix-686 i686 (32 bit) 
           Desktop: Fluxbox 1.3.2 Distro: antiX-13-beta1_386-base Ahmad Sami 8 February 2013
...

Code: Select all

# This is towo-conky-xfce
# THIS CONFIG RELIES ON 2 SCRIPTS, CPUSPEED AND CPUTEMP
# YOUR SYSTEM MAY NOT REQUIRE THEM, REPLACE AS DESIRED

# maintain spacing between certain elements
use_spacer right

# set to yes if you want conky to be forked in the background
background no

use_xft yes

# Xft font when Xft is enabled
xftfont Bitstream Vera Sans Mono-9
#xftfont Andale Mono-9
#xftfont Clean-8
#xftfont cubicfive10:pixelsize=8
#xftfont squaredance10:pixelsize=14
#xftfont swf!t_v02:pixelsize=10

# Text alpha when using Xft
xftalpha 1
#mail_spool $MAIL

# Update interval in seconds
update_interval 1.0

# Create own window instead of using desktop (required in nautilus)
own_window no
own_window_argb_visual yes
own_window_class Conky
own_window_type desktop
own_window_transparent yes
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 110 110

maximum_width 300
#min_port_monitors 100

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no # amplifies text

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 0

# border margins
#border_margin 9

# border width
border_width 1

# Default colors and also border colors, grey90 == #e5e5e5
default_color ffffff
default_shade_color black
default_outline_color DarkGrey

# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text
gap_x 10
gap_y 20

# Subtract file system buffers from used memory?
no_buffers yes

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

# stuff after 'TEXT' will be formatted on screen

TEXT
${font DejaVu Sans:size=26}${alignc}${time %T}${font}
${color 00FFFF}${font DejaVu Sans:size=12}${alignc}${time %A, %e. %B %Y}${font}
${color FFFFFF}$hr
${color 00BFFF}$kernel $color
${color #ffcb48}Uptime:$color          ${color #828282}$uptime$color
${color #ffcb48}CPU 0 Temp:         ${color FFFFFF}${execi 10 sensors | sed -n 's/temp1:[ ]*//p' | cut -d"" -f1}
${color #ffcb48}CPU 1 Temp:         ${color FFFFFF}${execi 10 sensors | sed -n 's/temp2:[ ]*//p' | cut -d"" -f1}
${color yellow}CPU Fan Speed: ${color red} ${execi 10 sensors | grep fan2: | cut -c 11-23}                                                                             
${color yellow}CHA Fan Speed: ${color red} ${execi 10 sensors | grep fan1: | cut -c 11-23}
${color #ffcb48}sda:                 ${color FFFFFF} ${execi 600 /usr/sbin/hddtemp /dev/sda | cut -c26-32}
${color #ffcb48}sdb:                 ${color FFFFFF} ${execi 600 /usr/sbin/hddtemp /dev/sdb | cut -c26-32}
${color #ffcb48}Xorg:                ${color #828282}${exec xdpyinfo | awk '/version:/ { print $NF }'}
$stippled_hr
${color #ffcb48}PROCESS$color
${color #E7881B}CPU0:${tab 10}${cpu cpu0}${tab 40}${execi 3 grep  -m1 MHz /proc/cpuinfo| cut -f3 | awk '{print $2}'}${tab 20}MHz
${color #E7881B}CPU1:${tab 10}${cpu cpu1}${tab 40}${execi 3 grep  -m1 MHz /proc/cpuinfo| cut -f3 | awk '{print $2}'}${tab 20}MHz
${color #E7881B}${cpubar cpu0 7,145} ${cpubar cpu1 7,145}

${color #98c2c7}NAME                CPU%         MEM%
${color #e5e5e5}${top name 1}  ${top cpu 1}       ${top mem 1}
${color #c4c4c4}${top name 2}  ${top cpu 2}       ${top mem 2}
${color #a3a3a3}${top name 3}  ${top cpu 3}       ${top mem 3}
${color #828282}${top name 4}  ${top cpu 4}       ${top mem 4}
${color #616161}${top name 5}  ${top cpu 5}       ${top mem 5}
$stippled_hr
${color #ffcb48}DATA$color
${color #98c2c7}RAM:$color    $memperc% $mem / $memmax
${color #78af78}${membar }${color}
${color #98c2c7}Swap:$color   $swapperc% $swap / $swapmax
${color #78af78}${swapbar }$color

${color red}root:    $color ${fs_used /}/${fs_size /} ${fs_used_perc /}%
${color #78af78}${fs_bar /}$color
${color green}DATEN:   $color ${fs_used /media/sda6}/${fs_size /media/sda6} ${fs_used_perc /media/sda6}%
${color #78af78}${fs_bar /media/sda6}$color
${color #616161}$stippled_hr

${color yellow}Upload:$color    ${upspeed eth0}
${color yellow}Download:$color  ${downspeed eth0}
${color green}Ges.Down:${alignr}${totaldown eth0}${color}
${color #616161}LAN:${alignr}${addr eth0}${color}
$hr
#${font DejaVu Sans Mono:size=11}${execpi 60 DJS=`date +%_d`; cal -m | sed '8d' | sed '/./!d' | sed 's/$/                     /' | fold -w 21 | sed -n '/^.\{21\}/p' | sed 's/^/${alignc} /' | sed /" $DJS"/s/" $DJS"/""'${color ffcb48}'"$DJS"'${color}'""/}
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#68
why is your cpu utilization of fluxbox at ~50%
Because I screwed up and deleted the current wallpaper login_background.sh was using. I fixed it later by renaming one of the wallpapers to the name
login_background.sh was using. Kinda confusing, I know.

Don't delete the current wallpaper while in fuxbox. You will get all kinds of funny symptoms. Change the wallpaper first before deciding to delete one
you don't like or wish to keep.
Posts: 630
Eino
Joined: 12 Oct 2012
#69
Just a simple little conky.

Code: Select all

# set to yes if you want Conky to be forked in the background
background no

short_units yes

cpu_avg_samples 2
net_avg_samples 2

out_to_console no

# X font when Xft is disabled, you can pick one with program xfontsel
#font 7x12
#font 6x10
#font 7x13
 font 8x12
#font 7x12
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
#font -artwiz-snap-normal-r-normal-*-*-100-*-*-p-*-iso8859-1

# Use Xft?
use_xft yes

# Xft font when Xft is enabled
xftfont gentium:size=10

# Create own window instead of using desktop (required in nautilus, pcmanfm and rox desktops)
own_window yes
own_window_transparent no
own_window_hints undecorated,sticky,skip_taskbar

# Text alpha when using Xft
xftalpha 0.8

#on_bottom no

# mail spool
mail_spool $MAIL

# Update interval in seconds
update_interval 1

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

# Minimum size of text area
minimum_size 5 5
maximum_width 200

# 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 10

# border width
border_width 2

# Default colors and also border colors
default_color white
default_shade_color white
default_outline_color white

color3 cyan

# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text

gap_x 20
gap_y 10

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

# Subtract file system buffers from used memory?
no_buffers yes

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

# 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
## antiX additives examples. Add below Text##
##Battery examples##
##${color}battery: ${color}$acpiacadapter, ${battery_percent BAT1}% 
##${color}battery:${color} ${battery}
#${color}ACPI Battery: ${color}$battery
#${battery_bar 11,0}
##Wireless example##
#${color}Wireless:
#${color}essid: ${wireless_essid wlan0}
#${color}IP:${color} ${addr wlan0}
#${color}speed: ${color} ${wireless_bitrate wlan0}
#${color}link strength: ${color} ${wireless_link_bar 7,50 wlan0}
${color3}${execi 10 persist-enabled}
# stuff after 'TEXT' will be formatted on screen

TEXT
${color FFC200}antiX 
${color FFC200}Desktop: ${color}${exec cat ~/.wallpaper/session}
${color FFC200}$sysname $kernel
${color}Uptime: $uptime
${color}${time %a %d %b %l:%M %p}
${color FFC200}Monitors:
${color}cpu: ${color}${cpu}%
${color}ram : ${color}$mem${color}/${color}$memmax ${color}- ${color}$memperc%
${color}swap: ${color}$swap${color}/${color}$swapmax ${color}- ${color}$swapperc%
${color}processes: ${color}$processes  ${color}running: ${color}$running_processes
${color FFC200}Space:
${color}Root:${color} ${fs_free /} ${color}= ${fs_free_perc /}%
${if_up wlan0}\
${color FFC200}Wifi Quality 
${color}${wireless_link_qual_perc wlan0}%${alignr}${color} ${wireless_link_bar 7,90 wlan0}
${color}Upload:$color  ${upspeed wlan0}
${color}Download:$color  ${downspeed wlan0}
Posts: 630
Eino
Joined: 12 Oct 2012
#70
If you use my conky from my from my last post you need to add ${endif} at the end.
Posts: 9
carbon
Joined: 04 Mar 2012
#71
Image

# set to yes if you want Conky to be forked in the background
background yes

cpu_avg_samples 2
net_avg_samples 2

out_to_console no

# X font when Xft is disabled, you can pick one with program xfontsel
#font 7x12
#font 6x10
#font 7x13
font 8x12
#font 7x12
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
#font -artwiz-snap-normal-r-normal-*-*-100-*-*-p-*-iso8859-1

# Use Xft?
use_xft yes

# Xft font when Xft is enabled
xftfont DejaVu Sans:size=10

own_window_transparent no
own_window_colour black

# Text alpha when using Xft
xftalpha 0.8

#on_bottom no

# mail spool
mail_spool $MAIL

# Update interval in seconds
update_interval 1

# Create own window instead of using desktop (required in nautilus)
own_window no

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

# Minimum size of text area
minimum_size 200 5
maximum_width 200

# Draw shades?
draw_shades yes

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 0

# border margins
border_margin 15

# border width
border_width 1

# Default colors and also border colors
default_color 000000
default_shade_color black
default_outline_color green

# Text alignment, other possible values are commented
#alignment top_left
alignment middle_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text

gap_x 30
gap_y 15

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

# Subtract file system buffers from used memory?
no_buffers yes

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

# 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
# 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

# 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


## antiX additives examples. Add below Text##
##${color white}battery:${color white} ${battery}
##Witeless example##
#${color cccccc}Wireless:
#${color cccccc}essid: ${wireless_essid wlan0}
#${color cccccc}IP:${color cccccc} ${addr wlan0}
#${color cccccc}speed: ${color cccccc} ${wireless_bitrate wlan0}
#${color cccccc}link strength: ${color cccccc} ${wireless_link_bar 7,50 wlan0}

# stuff after 'TEXT' will be formatted on screen
TEXT


${font DejaVu Sans:size=14}${color green}AntiX-M 13$font
${font DejaVu Sans:size=8}Alfred Huizinga
Mei, 5 2013$font
${color green}$uptime

${color green}CPU ${color green}Usage: ${color red}$cpu%
${shadecolor 6B0000}${color black}${cpugraph 30,200 0000f4 f10a0a}$shadecolor

${color green}Frequency: ${color red}$freq ${color red}MHz
${color green}RAM ${color green}Usage: ${color red}$memperc%
${shadecolor 6B0000}${color black}${memgraph 30,200 f10a0a 7091c1}$shadecolor

${color green}Down${color red} ${downspeed eth0} ${alignr}${color green}Up${color red} ${upspeed eth0}
${downspeedgraph eth0 25,100 000000 3BB9FF} ${alignr}${upspeedgraph eth0 25,100 000000 800080 }$color

${color green}Free Space: ${color red}${fs_free /home} ${color red} ${fs_free_perc /home}%
${color 800517}${fs_bar_free /home}

${color green}${font DejaVu Sans:size=11}${time %A %e %B}${font}
${font DejaVu Sans:size=27}${color green}${time %H}${color}${color green}:${color}${color green}${time %M}${color}${font}











.
Posts: 5
Goodolandy
Joined: 10 Jul 2013
#72
Hello everyone,

Does anyone else have a problem with Conky loading it's default settings on boot-up even though the Conky file has all your changes in it?

I did not make many changes, mostly changing the font color from white to black and yet when I boot-up my laptop, the text is back to white. Turn Conky off and back on, the text shows up in black as I had set.

Eventually I would love to get the same Conky design as Tanga but that post is from over a year ago and thus not sure what things have changed from then to now with Conky since I have never heard of Conky until I installed AntiX couple of days ago.
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#73
There is a hidden folder named .Conky and inside is icewm_conky and also hidden text file .conkyrc in /home.

Both need to be changed to stay permanent when using Icewm.

Edit since I am here, might as well show another I run.


Code: Select all

background yes
use_xft yes
xftfont DejaVu Sans Mono:size=8
xftalpha 0.8
out_to_console no
update_interval 5.0
total_run_times 0
draw_shades no

# Create own window instead of using desktop (required in nautilus)
own_window yes

# If own_window is yes, you may use type normal, desktop or override
own_window_type override

# Use pseudo transparency with own_window?
own_window_transparent yes
double_buffer yes
#default_color 555753
#color1 grey
alignment top_left
gap_x 2
gap_y 2
#no_buffers yes
use_spacer yes

TEXT
      $nodename ${color1}$kernel      ${color}up ${color1}$uptime       ${color}cpu1 ${color1}${cpu cpu1}% ${cpubar 6,40 cpu1} ${freq cpu1}MHz ${color}cpu2 ${color1}${cpu cpu2}% ${cpubar 6,40 cpu2} ${freq cpu2}MHz       ${color}mem ${color1}$memperc% ${membar 6,40}      ${color}disk ${color1}${fs_used /}/${fs_size /} ${fs_bar 6,40 /}     ${color}disk ${color1}${fs_used /home}/${fs_size /home} ${fs_bar 6,40 /home}   ${color}wireless ${color1}${wireless_link_qual_perc wlan0}${wireless_link_bar 6,40 wlan0}
This is on a 15" wide screen samsung dual core laptop. It has 1366X 768 resolutiuon.

Code: Select all

$ inxi -G
Graphics:  Card: Intel Mobile 4 Series Integrated Graphics Controller 
           X.Org: 1.13.0 drivers: intel (unloaded: fbdev,vesa) Resolution: 1366x768@60.0hz 
           GLX Renderer: Mesa DRI Mobile Intel GM45 Express GLX Version: 2.1 Mesa 9.0.3
2nd Edit: You can use any conky here. Do not worry to much about changes. A word of advice.
Make a backup of original .conkyrc and ~/.Conky/icewm_conky files so you have a backup in case
you need to reference something from the original. I usually rename both .conkyrcbk and icewm_conkybk
and make new text files .conkyrc and icewm_conky and copy and paste backup text file content into the new files.

Then you can experiment to your hearts content knowing you have a original backup to fall back on. Then when done
tweaking new conky. You can rename it .conkyrcbk2 and make another new one and repeat what I said earlier.
Now you have a backup with your changes intact.
Posts: 5
Goodolandy
Joined: 10 Jul 2013
#74
Thank you rokytnjl.
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#75

========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://www.macomp.com/companionpc.asp"
linktext was:"My little one of a kind Netbook"
====================================
that
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"https://www.google.com/search?source=ig&rlz=1G1ACAWCENUS372&q=m%26a+companion+netbook&oq=M%26A+&gs_l=igoogle.1.0.35i39l2j0l8.1680.7054.0.9460.5.5.0.0.0.0.1530.3533.3-2j1j0j1j0j1.5.0...0.0...1ac.1.12.igoogle.vXcurPgo4mQ#rlz=1G1ACAWCENUS372&sclient=psy-ab&q=m%26a+companion+netbook+debian&oq=m%26a+companion+netbook+debian&gs_l=serp.12...2199.4987.0.7156.7.7.0.0.0.0.872.4208.3-1j1j4j1.7.0....0...1c.1.22.psy-ab..2.5.2619.878VQDm5urA&pbx=1&bav=on.2,or.r_cp.r_qf.&bvm=bv.49784469,d.aWc&fp=c89e4c7fb88e534e&biw=1024&bih=433"
linktext was:"I know nobody else in the Linux world or AntiX world owns."
====================================
This netbook is as rare as hens teeth. __{{emoticon}}__ Kaperstky don't count because this aint a Windows Netbook.

Theme is from post17478.html#p17478
There is a purple and blue one on a previous page that I uploaded also if they are not in that .zip

~/.conkyrc & ~'/conky/conky_icewm

Code: Select all

# set to yes if you want Conky to be forked in the background
background yes

short_units yes

cpu_avg_samples 2
net_avg_samples 2

out_to_console no

# X font when Xft is disabled, you can pick one with program xfontsel
#font 7x12
#font 6x10
#font 7x13
 font 8x12
#font 7x12
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
#font -artwiz-snap-normal-r-normal-*-*-100-*-*-p-*-iso8859-1

# Use Xft?
use_xft yes

# Xft font when Xft is enabled
xftfont gentium:size=10

# Create own window instead of using desktop (required in nautilus, pcmanfm and rox desktops)
own_window yes
own_window_transparent yes
own_window_hints undecorated,sticky,skip_taskbar

# Text alpha when using Xft
xftalpha 0.8

#on_bottom no

# mail spool
mail_spool $MAIL

# Update interval in seconds
update_interval 1

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

# Minimum size of text area
minimum_size 5 5
maximum_width 200

# 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 10

# border width
border_width 2

# Default colors and also border colors
#default_color white
#default_color black
#default_color darkorange
#default_color saddlebrown
#default_color gold
#default_color crimson
default_color red
#default_color palegreen
default_shade_color white
default_outline_color white

color3 cyan

# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text

gap_x 20
gap_y 10

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

# Subtract file system buffers from used memory?
no_buffers yes

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

# 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
## antiX additives examples. Add below Text##
##Battery examples##
##${color}battery: ${color}$acpiacadapter, ${battery_percent BAT1}% 
##${color}battery:${color} ${battery}
#${color}ACPI Battery: ${color}$battery
#${battery_bar 11,0}
##Wireless example##
#${color}Wireless:
#${color}essid: ${wireless_essid wlan0}
#${color}IP:${color} ${addr wlan0}
#${color}speed: ${color} ${wireless_bitrate wlan0}
#${color}link strength: ${color} ${wireless_link_bar 7,50 wlan0}

# stuff after 'TEXT' will be formatted on screen

TEXT
${color}AntiX 13 Full
Weather: ${execi 300 /home/harry/.weather.sh 79772}
${color}Desktop: ${color}${exec cat ~/.antix-session/desktop-code$DISPLAY}
${color}$sysname $kernel
${color}Kernel:${exec /home/harry/Documents/kernelname}Antiroks
${color}Uptime: $uptime
${color}${time %a %d %b %k:%M}
${color}Monitors:
${color}Root:${color} ${fs_free /} ${color}= ${fs_free_perc /}%
Batt: ${battery_percent BAT1}% ${execi 05 /home/harry/.battery.sh}
Batt: ${color Green}$battery_short ${battery_bar 7,100 BAT1} 
${color}cpu: ${color}${cpu}%
CPU Temp:${execi 10 sensors | grep ^temp1 | tail -n 1 |awk '{print $2}'}
${color}ram : ${color}$mem${color}/${color}$memmax ${color}- ${color}$memperc%
#${color}swap: ${color}$swap${color}/${color}$swapmax ${color}- ${color}$swapperc%
${color}processes: ${color}$processes  ${color}running: ${color}$running_processes
${color}Down: ${color }${downspeed wlan0}k/s${color}
${color}Up: ${color }${upspeed wlan0} k/s

${color3}${execi 10 persist-enabled}
/home/harry/Documents/kernelname (works on Liqourix and Debian kernels, not on Antis kernels. So I ad libed on Antis Kernel >look in text in conky)

Code: Select all

#! /bin/bash
#
[ -h /usr/src/linux ] && namesource=`readlink /usr/src/linux`
name=`grep NAME /usr/src/$namesource/Makefile | cut -c 8-`
echo $name
exit
/home/harry/.battery.sh

Code: Select all

#!/usr/bin/env python

import os, math
from decimal import *

rate = 0.0
batteries = os.listdir("/sys/class/power_supply")
output ="No Data"

for battery in batteries:
    if"BAT" in battery:
        status = open("/sys/class/power_supply/%s/status" % (battery)).read().strip("\n")
        if"Discharging" in status:
            energy = Decimal(open("/sys/class/power_supply/%s/energy_now" % (battery)).read())
            power = Decimal(open("/sys/class/power_supply/%s/power_now" % (battery)).read())
            if power > 0:
                hours = math.floor(energy / power)
                minutes = math.floor(((energy % power) / power) * 60)
                output ="%.0f hours %.0f minutes" % (hours, minutes)
            else:
                output ="Gathering"
        else:
            output = status
print output
/home/harry/.weather.sh

Code: Select all

#!/bin/sh
#AccuWeather (r) RSS weather tool for conky
#Requires curl and perl.
#USAGE: weather.sh <locationcode>
#
#(c) Michael Seiler 2007

METRIC=0 #Should be 0 or 1; 0 for F, 1 for C

if [ -z $1 ]; then
    echo
    echo"USAGE: weather.sh <79772>"
    echo
    exit 0;
fi

curl -s http://rss.accuweather.com/rss/liveweather_rss.asp\?metric\=${METRIC}\&locCode\=$1 | perl -ne 'if (/Currently/) {chomp;/\<title\>Currently: (.*)?\<\/title\>/; print"$1"; }'
I keep the weather simple seeing that I live in the desert. Mostly 100F every day with sunshine.

Temps, weather,etc....
Temps, weather,etc....