topic title: Conky configuration
Posts: 1,228
secipolla
Joined: 15 Jun 2008
#31
jjm, I would call it neat but you've already done so. __{{emoticon}}__
You made the bars all the same size, which gives a better visualization and the weather part...

Here's my basic one (image below)

Code: Select all

# Conky, a system monitor, based on torsmo
#
# Any original torsmo code is licensed under the BSD license
#
# All code written since the fork of torsmo is licensed under the GPL
#
# Please see COPYING for details
#
# Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
# Copyright (c) 2005-2009 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS)
# All rights reserved.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#

alignment top_right
background yes
border_width 1
cpu_avg_samples 2
default_color 5825c9
default_outline_color 5825c9
default_shade_color red
double_buffer yes
draw_borders no
draw_graph_borders yes
draw_outline no
draw_shades no
use_xft yes
xftfont DejaVu Sans Mono:size=10
gap_x 10
gap_y 60
minimum_size 5 5
net_avg_samples 2
no_buffers yes
out_to_console no
out_to_stderr no
own_window yes
own_window_class Conky
own_window_colour aecee0
own_window_type desktop
stippled_borders 0
update_interval 1.0
uppercase no
use_spacer left
show_graph_scale no
show_graph_range no

TEXT
$nodename - $sysname $kernel
$hr
Uptime:$alignr $color $uptime
Frequency (in MHz):$alignr $color $freq
RAM Usage:$alignr $color $mem/$memmax - $memperc%
Swap Usage:$alignr $color $swap/$swapmax - $swapperc%
CPU Usage:$alignr $color $cpu%
Processes:$alignr $color $processes  Running:$color $running_processes
$hr
File systems:
 / $color${fs_used /} +${fs_free /} ${fs_bar 6 /}
$hr
Networking:
Up:${upspeed eth0} $alignr Down:${downspeed eth0}
$hr
Super+space$alignr Run
Super+t$alignr Terminal
Super+f$alignr File Manager
Super+u$alignr Rox
Super+e$alignr Editor
Super+m$alignr Media Player
Super+w$alignr Web Browser
Super+n$alignr Htop
Super+o$alignr Conky on/off
PrtSc$alignr Screenshot
Insert$alignr Screensaver

Super+r$alignr Reboot
Super+x$alignr Shutdown

and ~/.icewm/keys

Code: Select all

#key"Alt+Ctrl+v" sudo rox #set up first in /etc/sudoers
key"Alt+Ctrl+u" rox
key"Alt+Ctrl+f" pcmanfm
key"Alt+Ctrl+e" leafpad
key"Alt+Ctrl+n" rxvt-unicode -tr -sh 65 -fg white -T 'Htop' -e htop 
key"Alt+Ctrl+t" rxvt-unicode -tr -sh 65 -fg white -T 'antiX'
key"Alt+Ctrl+m" vlc
key"Alt+Ctrl+w" iceweasel 
#key"Alt+Ctrl+m" claws-mail
key"Print" antixscreenshot.sh 
#key"Alt+Ctrl+c" antixcc.sh 
key"Alt+Ctrl+o" conkytoggle.sh
key"Alt+Ctrl+x" sudo halt
key"Alt+Ctrl+r" sudo reboot
key"Insert" /bin/sh -c"/usr/bin/xlock -remote -nice 19 -nolock -mode blank"
key"Alt+Ctrl+KP_Divide" aumix -v -5 # lower volume
key"Alt+Ctrl+KP_Multiply" aumix -v +5 # raise volume
Posts: 29
okiipapasan
Joined: 12 Feb 2010
#32
Image

Took me awhile to figure out how to get things to work properly, but I eventually got it set up.

Code: Select all

# 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                   
#  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##
##${color cccccc}battery: ${color cccccc}$acpiacadapter, ${battery_percent BAT1}% 
##${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
${shadecolor a53d10}${font Swift:size=20}${color e6be6b}OKIIPAPASAN$font
${color e6be6b}${hr 2}$shadecolor
${font DejaVu Sans:size=14}${color ddd652}AntiX-M 8.2$font
${font DejaVu Sans:size=8}Tȟašúŋke Witkó-Crazy Horse
July 24, 2009$font
${color fdb341}$sysname $kernel
${color fdb341}Uptime: ${color green}$uptime 
${color 000000}${hr 2}
${color red}CPU ${color ffffff}Usage: ${color red}$cpu%
${shadecolor 6B0000}${color black}${cpugraph 30,200 0000f4 f10a0a}$shadecolor
${color ffffff}Frequency: ${color gold}$freq ${color gold}MHz
${color 7091c1}RAM ${color ffffff}Usage: ${color 7091c1}$memperc%
${shadecolor 6B0000}${color black}${memgraph 30,200 f10a0a 7091c1}$shadecolor
${color 7091c1}$mem${color ffffff}/${color ffffff}$memmax
${color 7091c1}$buffers ${color 54f729} Buffered
${color 7091c1}$cached ${color d58e2b} Cached
${color orange}Swap ${color ffffff}Usage:
${color orange}$swap${color ffffff}/${color ffffff}$swapmax ${color ffffff}- ${color ffffff}$swapperc%
${color orange}$swapbar
${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}
${color ffffff}Networking:
Up:${color 14f3ff}${upspeed eth0} ${color ffffff} - Down:${color green}${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
${font DejaVuSansMono:size=8}${color ffffff} ${top name 2}  ${color red}${top cpu 2}  ${color 7091c1}${top mem 2}$font
${font DejaVuSansMono:size=8}${color ffffff} ${top name 3}  ${color red}${top cpu 3}  ${color 7091c1}${top mem 3}$font

${color ffffff}${time %a %d %b %l:%M:%S%p}

${font Penguin Attack}${color b5550b}Conky ${color b5550b}$conky_version$font
Posts: 29
okiipapasan
Joined: 12 Feb 2010
#33
Made a few changes to mine. Found out howto show the HDD temp, put the text inside the bars and graphs for the cpu and RAM and how to show my windows partition when it is mounted.

Image

Code: Select all

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

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

    # 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 top_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                   
    #  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##
    ##${color cccccc}battery: ${color cccccc}$acpiacadapter, ${battery_percent BAT1}%
    ##${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
    ${shadecolor a53d10}${font Swift:size=20}${color e6be6b}OKIIPAPASAN$font
    ${color e6be6b}${hr 2}$shadecolor
    ${font DejaVu Sans:size=14}${color ddd652}AntiX-M 8.2$font
    ${font DejaVu Sans:size=8}Tȟašúŋke Witkó-Crazy Horse
    July 24, 2009$font
    ${color fdb341}$sysname $kernel
    ${color fdb341}Uptime: ${color green}$uptime
    ${color yellow}${hr 2}
    ${shadecolor 6B0000}${color black}${cpugraph cpu1 23,200 0000f4 f10a0a}$shadecolor
    ${color ffffff}${voffset -29} CPU1 Usage: ${alignr 5}${cpu cpu1}%
    ${shadecolor 6B0000}${color black}${cpugraph cpu2 23,200 0000f4 f10a0a}$shadecolor
    ${color ffffff}${voffset -29} CPU2 Usage: ${alignr 5}${cpu cpu2}%
    ${color gold}${voffset 5}Frequency: $freq MHz
    ${color yellow}${hr 2}
    ${shadecolor 6B0000}${color black}${memgraph 23,200 f10a0a 7091c1}$shadecolor
    ${color ffffff}${voffset -29} RAM Usage: ${alignr 5}$memperc% 
    ${color 7091c1}${voffset 5}$mem / $memmax
    ${color 7091c1}$buffers  Buffered
    ${color 7091c1}$cached  Cached
    ${color orange}${swapbar 23}
    ${color ffffff}${voffset -29} Swap Usage: ${alignr 5}$swapperc%
    ${color orange}${voffset 5}$swap/ $swapmax 
    ${color yellow}${hr 2}
    ${color ffffff}Hard Disk Temp: ${alignr 5}${color red}${execi 300 nc localhost 7634 | cut -c30-31 ;}°C
    ${color ffffff}Free Space:
    ${color b555b2}/root
    ${color b555b2}${fs_bar_free 23}
    ${voffset -29}${color ffffff} ${fs_free /} = ${fs_free_perc /}%
    ${voffset 5}${color 4ab1ab}/home
    ${color 4ab1ab}${fs_bar_free 23 /home}
    ${voffset -29}${color ffffff} ${fs_free /home} = ${fs_free_perc /home}%${if_mounted /mnt/sda2}
    ${color orange}${voffset 5}/XP
    ${color orange}${fs_bar_free 23 /mnt/sda2} 
    ${voffset -29}${color ffffff} ${fs_free /mnt/sda2} = ${fs_free_perc /mnt/sda2}%${endif}
    ${voffset 5}${color yellow}${hr 2}
    ${color ffffff}Networking:
    Up:${color 14f3ff}${upspeed eth0} ${color ffffff} - Down:${color green}${downspeed eth0}
    ${color yellow}${hr 2}
    ${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
    ${font DejaVuSansMono:size=8}${color ffffff} ${top name 2}  ${color red}${top cpu 2}  ${color 7091c1}${top mem 2}$font
    ${font DejaVuSansMono:size=8}${color ffffff} ${top name 3}  ${color red}${top cpu 3}  ${color 7091c1}${top mem 3}$font

    ${font Penguin Attack}${color b5550b}Conky ${color b5550b}$conky_version$font
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#34
Very Nice one okiipapasan. Thanks for sharing. I borrowed some (pretty near the whole durn thing)of your entries for my IBM T23 running AntiX 8.5.

I'm a bit of a Linux scrounger I guess. __{{emoticon}}__



Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#35
Here is another conkyrc I run also. Depends on what mood I am in I guess. It is a Horizontal Conky that runs at the top of Icewm. I edited this conky to show battery and also removed up and down wlan0 and eth0 because of preferences,



Code: Select all

#avoid flicker
double_buffer yes

#own window to run simultanious 2 or more conkys
own_window  yes
own_window_transparent no
own_window_type normal
own_window_hints undecorate,sticky,skip_taskbar,skip_pager 

#borders
draw_borders no
border_margin 3

#shades
draw_shades no

#position
gap_x 0
gap_y 4
alignment top_left

#behaviour
update_interval 1

#colour
default_color  8f8f8f
#default_shade_color 000000
own_window_colour 262729

#font
use_xft yes
xftfont sans:size=7

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

#to prevent window from moving
use_spacer none
minimum_size 1024 0

#mpd
#mpd_host localhost
#mpd_port 6600

TEXT
${alignc}Date: ${color e0e0e0}${time %d/%m/%y}${color}  Time: ${color e0e0e0}${time %H:%M}${color}  |  Kernel: ${color e0e0e0}$kernel${color}  Uptime: ${color e0e0e0}${uptime_short}${color}  |  Cpu: ${color e0e0e0}${cpu}%${color}  Ram: ${color e0e0e0}${memperc}%${color}  Swap: ${color e0e0e0}${swapperc}%${color}  Disk: ${color e0e0e0}${fs_used_perc /}%${color}  |  Motherboard: ${color e0e0e0}${acpitemp}°C${color}  Cpu: ${color e0e0e0}${acpitemp}°C${color}  Disk: ${color e0e0e0}${acpitemp}°C${color}  |  ${if_existing /proc/net/route wlan0} Signal: ${color e0e0e0}${wireless_link_qual wlan0}%${color}  Up: ${color e0e0e0}${upspeed wlan0} kb/s${color}  Down: ${color e0e0e0}${downspeed wlan0} kb/s${color}${else}${if_existing /proc/net/route eth0}Up: ${color e0e0e0}${upspeed eth0} kb/s${color}  Down: ${color e0e0e0}${downspeed eth0} kb/s${color}${endif}${else}Network Unavailable${endif}${alignc}
Posts: 29
okiipapasan
Joined: 12 Feb 2010
#36
Really dig the horizontal conky, Rokytnji. Here's a new one I did.

Image

Uploaded with
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://imageshack.us"
linktext was:"ImageShack.us"
====================================

Code: Select all

TEXT
${voffset 100}${shadecolor 215142}${color d07807}${font DejaVuSansMono:Bold:italic:size=20}${alignc}Okiipapasan$shadecolor$color$font
${voffset 15}${color 215142}${hr 3}$color
${color d07807}${voffset -16}${font DejaVuSans:bold:italic:size=12}${alignc}SYSTEM INFO$color$font
${font DejaVuSansMono:Bold:size=16}${alignc}AntiX-M 8.2$font
${alignc}Tȟašúŋke Witkó
${alignc}Crazy Horse
${alignc}July 24, 2009
${alignc}$sysname $kernel
${alignc}Uptime: $uptime
${color 215142}${hr 3}$color
${color d07807}${voffset -16}${font DejaVuSans:bold:italic:size=12}${alignc}CPU$font$color
${cpugraph cpu1 23, 333333 999999}
${voffset -31} CPU1 Usage: ${alignr 15}${cpu cpu1}%
${cpugraph cpu2 23, 333333 999999}
${voffset -31} CPU2 Usage: ${alignr 15}${cpu cpu2}%
${voffset 5}Frequency: $freq MHz
${color 215142}${hr 3}$color
${color d07807}${voffset -16}${font DejaVuSans:bold:italic:size=12}${alignc}MEMORY$font$color
${memgraph 23, 333333 999999}
${voffset -31} RAM Usage: ${alignr 15}$memperc%
${voffset 5}$mem / $memmax
$buffers  Buffered
$cached  Cached
${swapbar 23}
${voffset -31} Swap Usage: ${alignr 15}$swapperc%
${voffset 5}$swap/ $swapmax 
${voffset 5}${color 215142}${hr 3}$color
${color d07807}${voffset -16}${font DejaVuSans:bold:italic:size=12}${alignc}PROCESSES$font $color
${font DejaVuSansMono:size=8}Total/Running${alignr 15}${processes}/ ${running_processes}
Name             CPU%    MEM%
${top name 1}  ${top cpu 1}  ${top mem 1}
${top name 2}  ${top cpu 2}  ${top mem 2}
${top name 3}  ${top cpu 3}  ${top mem 3}$font
${color 215142}${hr 3}$color
${color d07807}${voffset -16}${font DejaVuSans:bold:italic:size=12}${alignc}HARD DRIVE$font$color
Temp: ${alignr 15}${execi 300 nc localhost 7634 | cut -c30-31 ;}°C
Free Space:
/root${alignr 15}${fs_free /}
${fs_bar_free 23}
${goto 1090}${voffset -31}${color black}${fs_free_perc /}% free$color
${voffset 5}/home${alignr 15}${fs_free /home}
${fs_bar_free 23 /home}
${goto 1090}${voffset -31}${color black}${fs_free_perc /home}% free${if_mounted /mnt/sda2}$color
${voffset 5}/XP${alignr 15}${fs_free /mnt/sda2}
${fs_bar_free 23 /mnt/sda2} 
${goto 1090}${voffset -31}${color black}${fs_free_perc /mnt/sda2}% free$color${endif}
${voffset 5}${color 215142}${hr 3}$color
${color d07807}${voffset -16}${font DejaVuSans:bold:italic:size=12}${alignc}NETWORKING$font$color
Up: ${upspeed eth0}  - Down: ${downspeed eth0}
${execpi 1800 conkyForecast --location=USNV0049 --template=/usr/share/conkyforecast/example/conkyForecast.template}
${voffset 5}${color 215142}${hr 3}$color
${image /home/okiipapasan/Documents/AntiX.png -p 35,0 -s 138x111}
It has conkyforecast in it, which was a real pain in the butt to set up, but I think I may stick with this one for awhile.
Posts: 1,228
secipolla
Joined: 15 Jun 2008
#37
It looks very neat, okiipapasan.
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#38
Just another .conkyrc I am trying out on my EEEPC 701SD. Edit it to suit your needs. I smudged
out my IP address __{{emoticon}}__





Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#39
This is my IBM T23 running a new prepackaged conky I found from
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://gnome-look.org/content/show.php/?content=133414"
linktext was:"http://gnome-look.org/content/show.php/?content=133414"
====================================


It said it requires Gnome. But I have it running in Icewm. My ~/.icewm/startup

Code: Select all

#killall icewmtray
#icewmtray &
/home/harry/.Conky/future_blue/start_conky.sh
##conky &
#idesk &
#rox -pinboard=antiX &
sleep 2 && wicd-client &
##rutilt &

########## PLAY STARTUP SOUND #########
#play /usr/share/sounds/Pardus_Rocks/Pardus_Rocks-Logout.ogg > /dev/null 2>&1 &
#play /home/harry/.icewm/sounds/operatnl.wav
play /home/harry/sounds/hog1.ogg
I had to rename ~/.conkyrc to ~/,conkyrcbk. I also commented out conky & in ~/.icewm/startup. I downloaded zip from Gnome Look. Renamed Conky to .Conky. Placed it in /home. Then used the start_conky.sh as you can see to start new conky. I deleted the exaile text file as I don't run exaile in AntiX. If you run exaile. Leave the text file in there. One last thing. I needed to open pcmanfm as root using gexec. Went to /etc/conky and rename conky.conf to conky.confbk. This keeps a black conky from opening up on the left of the screen when conky starts. Xkill will close it also if not wanting to rename conky.conf.
Edit: forgot to mention. This conky will slow down the loading up of your desktop if you choose to use it. So don't freak out. __{{emoticon}}__
Happy Trails, Rok
Posts: 609
dark-D
Joined: 02 Jun 2008
#40
very sweet setup you have there roky.
Posts: 1,062
Dave
Joined: 20 Jan 2010
#41
I was just going to post my battery status and network device detection part, but this just beats that. I will still post it, just figured out how to make it detect when it is charging and when it is not. as well as display different colors and warnings for different levels of battery life and temp. The Network part just shows what is being used in the case that there may be various ways that you access the internet

( using notification-deamon to display warnings as well as a few windows I made up for extreme cases )

========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://www.daveserver.info/conky.tar.gz"
linktext was:"http://www.daveserver.info/conky.tar.gz"
====================================
Last edited by Dave on 29 Jan 2012, 16:21, edited 3 times in total.
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#42
Latest LXDE Setup on my Amrel RT 786 EX still running AntiX 8.5 core . Battery Monitor in taskbar is from

========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"https://bbs.archlinux.org/viewtopic.php?id=67565"
linktext was:"https://bbs.archlinux.org/viewtopic.php?id=67565"
====================================

which works a lot better than the stock LXDE battery monitor (prettier to)

I usually autohide the top taskbar but left it on just for this screenshot. I do not recommend LXDE Desktop as PcManfm is siamesed in with LXDE plus Wallpaper setting must be tweaked for changes to stick as per my post at
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://forum.lxde.org/viewtopic.php?f=22&t=31217"
linktext was:"http://forum.lxde.org/viewtopic.php?f=22&t=31217"
====================================
. The only reason I keep using LXDE is because I havefinally tweaked it to where it works OK. But for a novice. Beware.


Code: Select all

# 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

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

# Use Xft?
use_xft yes

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

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

# Use pseudo transparency with own_window?
own_window_transparent yes

# If own_window is yes, these window manager hints may be used
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
# Create own window instead of using desktop (required in nautilus, pcmanfm and rox desktops)
own_window yes
# 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 DeepSkyBlue
#default_color DarkSeaGreen
#default_color Crimson
#default_color Orchid
#default_color GoldenRod
#default_color Silver
#default_color SteelBlue
#default_color white
default_shade_color white
default_outline_color white

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

# 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##
##${color cccccc}battery: ${color cccccc}$acpiacadapter, ${battery_percent BAT1}% 
##${color}battery:${color} ${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
${color}antiX-core
${color}$sysname $kernel
${color}Uptime: $uptime
${color}Pecos:Tx:Biker  ${time %a %d %b %k:%M}
${color}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}link strength: ${color DarkSeaGreen} ${wireless_link_bar 7,50 wlan0}
${color}Space:
${color}Root:${color} ${fs_free /} ${color}= ${fs_free_perc /}%
${color}/data:${color} ${fs_free /mnt/sda1} ${color}= ${fs_free_perc /mnt/sda1}%
${color}BAT 1: ${color Green} ${battery_bar 7,50 BAT1} ${color} ${battery BAT1}
${color}BAT 2: ${color Green} ${battery_bar 7,50 BAT2} ${color} ${battery BAT2}
${color}BAT 1:  ${execi 60 cat /proc/acpi/battery/BAT1/state | awk '{if ($0 ~"present rate:"){rate = $3} if($0 ~"remaining capacity:"){cap = $3}} END {printf"%d hours %d minutes\n" ,(cap / rate), (((cap % rate) / rate) * 60)}'} 
${color}BAT 2:  ${execi 60 cat /proc/acpi/battery/BAT2/state | awk '{if ($0 ~"present rate:"){rate = $3} if($0 ~"remaining capacity:"){cap = $3}} END {printf"%d hours %d minutes\n" ,(cap / rate), (((cap % rate) / rate) * 60)}'}
${color}Temp: ${color} ${hwmon 0 temp 1}C
Posts: 609
dark-D
Joined: 02 Jun 2008
#43
my simple conky based on the rokytnji's horizontal setup.

Image

i resize it and the taskbar to the width of the photo that i use as a wallpaper.

Image

Code: Select all

#avoid flicker
double_buffer yes

#own window to run simultanious 2 or more conkys
own_window  yes
own_window_transparent no
own_window_type nornal
own_window_hints undecorate,sticky,skip_taskbar,skip_pager 

#borders
draw_borders no

#shades
draw_shades no

#position
gap_x 245
gap_y 1
alignment top_left

#behaviour
update_interval 1

#colour
default_color 8f8f8f
color1 ffffff
#default_shade_color 000000
own_window_colour 000000

#font
use_xft yes
xftfont sans:bold:size=8

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

#to prevent window from moving
use_spacer none
minimum_size 790 0
short_units 1

#mpd
#mpd_host localhost
#mpd_port 6600

TEXT
${alignc}Bat: ${color1}$battery_short${color}  Temp: ${color1}$acpitemp°C${color}  |  Cpu: ${color1}${cpu}%${color}  Ram: ${color1}${memperc}%${color}  |  Root: ${color1}${fs_used_perc /}%${color}  Data: ${color1}${fs_used_perc /home/ICE-M/Files}%${color}  |  ${if_existing /proc/net/route wlan0}Signal: ${color1}${wireless_link_qual wlan0}%${color}  Down: ${color1}${downspeed wlan0}${color}  Up: ${color1}${upspeed wlan0}${color}${else}${if_existing /proc/net/route ppp0}Down: ${color1}${downspeed ppp0}${color}  Up: ${color1}${upspeed ppp0}${color}${else}${if_existing /proc/net/route eth0}Down: ${color1}${downspeed eth0}${color}  Up: ${color1}${upspeed eth0}${color}${else}Network Unavailable${endif}${alignc}
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#44
Nice Ice __{{emoticon}}__ . This is my horizontal conky on my AntiX 11 Full Iso Install on IBM A22M Laptop. I show size of installed ram on second line. Also I have / and /home separated on a 20 gig pata hardrive.


Code: Select all

#avoid flicker
double_buffer yes

#own window to run simultanious 2 or more conkys
own_window  yes
own_window_transparent yes
own_window_type normal
own_window_hints undecorate,sticky,skip_taskbar,skip_pager 

#borders
#shades
draw_shades no

#position
gap_x 0
gap_y 4
alignment top_left

#behaviour
update_interval 1

#colour
default_color  green yellow
#default_shade_color 000000
own_window_colour 262729

#font
use_xft yes
xftfont sans:size=8

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

#to prevent window from moving
use_spacer none
minimum_size 1024 0

#mpd
#mpd_host localhost
#mpd_port 6600

TEXT
Date: ${color e0e0e0}${time %d/%m/%y} ${color} Time: ${color e0e0e0}${time %H:%M}${color}  |  Kernel: ${color e0e0e0}$kernel${color}  |  Cpu: ${color e0e0e0}${cpu}%${color}  Ram: ${color e0e0e0} $memperc% ${color} Swap: ${color e0e0e0} $swapperc% ${color} Disk: ${color e0e0e0}${fs_used_perc /}%${color} Home: ${color e0e0e0}${fs_used_perc /home}%${color}  |   Cpu: ${color e0e0e0}${acpitemp}°C${color}  | Signal: ${wireless_link_bar 7,50 wlan0} | ${color}Batt: ${color}$acpiacadapter, ${battery_bar BAT0}

$memmax
Top line under TEXT starting with Date: should be in one big line in geany or leafpad. $memmax just goes under that line.
Posts: 299
Cuttlefish
Joined: 18 Dec 2008
#45
I'm really interested in changing my original antiX conky. Would a good way to do it be to make a copy of the original conky and place it in a folder for safe keeping and then delete it from the .conkyrc file and then replace it with one of the nice ones I've found here?

Will the info in the new conky just work, or is there additional configuration that I need to do? I just want to try an informational conky to start. I'm not looking to add any keybindings ( I think that's what they are called.) __{{emoticon}}__

Thanks folks.
Dave