topic title: Conky configuration
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#1
antiX comes with the fantastic conky app to monitor various processes etc. Not only is this useful, but it is so cooool __{{emoticon}}__
Share your (or ones you have found) .conkyrc files here and post a screenshot.
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007

25 Nov 2007, 22:16 #2

I'll begin.
Here is my .conkyrc

========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://www.mediafire.com/?11dgz91nxed"
linktext was:"http://www.mediafire.com/?11dgz91nxed"
====================================


and here is a snapshot.

Image
Posts: 41
UnicornRider
Joined: 24 Oct 2007
#3
Snapshot

Image

~/.conkyrc

Code: Select all

${color gold}CPU:  ${cpubar 4}
${color gold}RAM:  ${membar 4}
${color gold}HDA:  ${fs_bar 4 /}
${color gold}HDB:  ${fs_bar 4 /home}
${color darkred}SETI:  ${execibar 180 ~/.conky_seti.sh}
~/.conky_seti.sh

Code: Select all

#!/bin/bash
STATUS=$( more /var/lib/boinc-client/client_state.xml | \
          grep fraction_done | cut -d '.' -f 2 | cut -c 1-2 )
echo"$STATUS"
(Remark: the SETI stuff provided by Conky default is worthless ...)
Posts: 180
TLeeNorris
Joined: 04 Dec 2007
#4
Can conky be run on KDE? If I start it.. its default location kills the icons on my desktop. Can it be made to start in a different location?
Posts: 180
TLeeNorris
Joined: 04 Dec 2007
#5
I did get conky to run on my KDE desktop without killing the icons by changing

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

It now runs in a small window, just need to figure out how to make it transparent as these comments don't have any effect on the window.

own_window_transparent yes
own_window_colour hotpink

__{{emoticon}}__
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#6
I found these posts.


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://briancarper.net/2006/08/05/transparent-conky-in-kde/"
linktext was:"http://briancarper.net/2006/08/05/trans ... ky-in-kde/"
====================================


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://briancarper.net/2006/08/25/transparent-conky-in-kde-part-2/"
linktext was:"http://briancarper.net/2006/08/25/trans ... de-part-2/"
====================================
Posts: 316
DJiNN
Joined: 26 Oct 2007
#7
As i have recently got into conky in a big way, i thought i'd update this thread with a screenshot, the code, and a cool link that i found for getting some great colour codes. __{{emoticon}}__

Image

Now the code:

Code: Select all

# Conky sample configuration
#
# the list of variables has been removed from this file in favour
# of keeping the documentation more maintainable.
# Check http://conky.sf.net for an up-to-date-list.

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

# X font when Xft is disabled, you can pick one with program xfontsel
#font 5x7
#font 6x10
#font 7x13
#font 8x13
#font 9x15
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*

# Use Xft?
use_xft yes

# Xft font when Xft is enabled
xftfont undotum:size=9

# Text alpha when using Xft
xftalpha 0.7

# Print everything to stdout?
# out_to_console no

# MPD host/port
# mpd_host localhost
# mpd_port 6600
# mpd_password tinker_bell

# Print everything to console?
out_to_console no

# mail spool
mail_spool $MAIL

# Update interval in seconds
update_interval 1.0

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

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

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

# Use pseudo transparency with own_window?
own_window_transparent yes

# If own_window_transparent is set to no, you can set the background colour here
own_window_colour hotpink

# If own_window is yes, these window manager hints may be used
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

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

# Minimum size of text area
minimum_size 220 5

# Maximum width of window
maximum_width 220

# Draw shades?
draw_shades yes

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Draw borders around graphs
draw_graph_borders yes

# Stippled borders?
#stippled_borders 8

# border margins
border_margin 4

# border width
border_width 0

# Default colors and also border colors
default_color #cccccc
default_shade_color #575757
default_outline_color #575757

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

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

# Subtract file system buffers from used memory?
no_buffers yes

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

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

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

# Force UTF8? note that UTF8 support requiwhite XFT
override_utf8_locale no

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

# Allow each port monitor to track at most this many connections (if 0 or not set, default is 256)
#max_port_monitor_connections 256

# Maximum number of special things, e.g. fonts, offsets, aligns, etc.
#max_specials 512

# Maximum size of buffer for user text, i.e. below TEXT line.
#max_user_text 16384

# Timing interval for music player thread, e.g. mpd, audacious
#music_player_interval (update_interval is default)

# variable is given either in format $variable or in ${variable}. Latter
# allows characters right after the variable and must be used in network
# stuff because of an argument

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

TEXT
${color #dddf00}${font MgOpen Modata:size=9}SYSTEM $stippled_hr ${font}
  ${color cyan}${font undotum:size=14}${time %e %B %G %H:%M:%S}${font}
${color #FF3030}${hr 2}$color
  ${color #575757}${alignc}$nodename - ${color white}$sysname $kernel 
  ${alignc}on ${color white}$machine
  ${color #575757}Uptime:${color white} $uptime - ${color #575757}Load:${color white} $loadavg
  ${color #575757}${execi 1000 cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'} ${color white}${alignr}${freq_dyn}Mhz
  ${color #575757}CPU        ${color white} $cpu% ${color #7F00FF}${alignr}${cpubar 6,135}
  ${color #cccccc}${cpugraph 15,213 FF0066 2E0854}
  ${color #575757}RAM       ${color white} $memperc% ${color #5DFC0A}${alignr}${membar 6,135}
  ${color #5DFC0A}${alignr}$mem/$memmax
  ${color #575757}Swap       ${color white} $swapperc% ${color #1464F4}${alignr}${swapbar 6,135}
  ${color #1464F4}${ALIGNr}$swap/$swapmax
  ${color #575757}Processes: ${color white}$processes  ${color #575757}Running: ${color white}$running_processes
${color #dddf00}${font MgOpen Modata:size=10}NETWORK $stippled_hr ${font}
  ${color #575757}NAT IP ${alignc}${color }${addr eth0}
  ${color #575757}Down:${color magenta} ${downspeed eth0} k/s ${color #33ff33} ${offset 40}${color #575757}Up:${color magenta} ${upspeed eth0} k/s
  ${color #cc9900}${downspeedgraph eth0 15,100 ff3333 00ff99}   ${color #cc9900}${upspeedgraph eth0 15,100 ff3333 00ff99}
${color #dddf00}${font MgOpen Modata:size=10}DRIVES $stippled_hr ${font}
  ${color #575757}/      ${offset 10}${color white}${fs_used /}/${fs_size /}    ${color #cccccc}${fs_bar /}
  ${color #575757}ZeN ${offset 10}${color white}${fs_used /mnt/ZeN}/${fs_size /mnt/ZeN}  ${color #cccccc}${fs_bar //mnt/ZeN}
  ${color #575757}TiNY ${offset 10}${color white}${fs_used /mnt/TiNY}/${fs_size /mnt/TiNY}  ${color #cccccc}${fs_bar /mnt/TiNY}
  ${color #575757}T-FluX ${offset 10}${color white}${fs_used /mnt/TiNYFLUX}/${fs_size /mnt/TiNYFLUX}  ${color #cccccc}${fs_bar /mnt/TiNYFLUX}
  ${color #575757}LiNGO ${offset 10}${color white}${fs_used /mnt/sda5}/${fs_size /mnt/sda5}  ${color #cccccc}${fs_bar /mnt/sda5}
  ${color #575757}USB ${offset 10}${if_mounted /media/DISK-ON-KEY__} ${color white}${fs_used /media/DISK-ON-KEY__}/${fs_size /media/DISK-ON-KEY__}      ${color #cccccc}${fs_bar /media/DISK-ON-KEY__} $else ${color white}Not mounted${color} $endif
  ${color #575757}CD  ${offset 10}${if_mounted /media/cdrom0}  ${color white}${fs_used /media/cdrom0}/${fs_size /media/cdrom0}       ${color #cccccc}${fs_bar /media/cdrom0}$else ${color white} Not mounted${color} $endif
${color #dddf00}${font MgOpen Modata:size=10}MONITORING $stippled_hr ${font}
  ${color #575757}NAME -                          PID      CPU%   MEM%
  ${color white}${top name 1}    ${alignr 10}${top pid 1} ${top cpu 1} ${top mem 1}
  ${color white}${top name 2}    ${alignr 10}${top pid 2} ${top cpu 2} ${top mem 2}
  ${color white}${top name 3}    ${alignr 10}${top pid 3} ${top cpu 3} ${top mem 3}
  ${color white}${top name 4}    ${alignr 10}${top pid 4} ${top cpu 4} ${top mem 4}
  ${color}MEMORY -
  ${color white}${top_mem name 1}    ${alignr 10}${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
  ${color white}${top_mem name 2}    ${alignr 10}${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
  ${color white}${top_mem name 3}    ${alignr 10}${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
${color #dddf00}${font MgOpen Modata:size=10}MUSIC $stippled_hr ${font}
  ${if_running xmmsapp}${color #575757}Artist: ${color white}  ${execi 10 ~/.conky/xmms artist}
  ${color #575757}Title:    ${color white}${execi 10 ~/.conky/xmms title}
  ${color #cccccc}${execibar 1 ~/.conky/xmms progress}
  ${color #575757}Album:  ${color white}${execi 10 ~/.conky/xmms album}
  ${color #575757}Year:    ${color white}${execi 10 ~/.conky/xmms year}$else${color #cccccc}${alignc}NOT ACTIVE$endif
${color #dddf00}$stippled_hr

And finally the
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://www.december.com/html/spec/color.html"
linktext was:"link to that great colour chart!"
====================================


I've had enough for today, but i'm sure that i'll be tweaking it again soon! __{{emoticon}}__
Posts: 180
TLeeNorris
Joined: 04 Dec 2007
#8
That looks great. Thanks for the color guide. Do you know how to set the music player to Amarok?
Posts: 316
DJiNN
Joined: 26 Oct 2007
#9
xToeCutter wrote:That looks great. Thanks for the color guide. Do you know how to set the music player to Amarok?
Thanks, glad you like. I really love conky and i can spend hours just messing about with it, and learning a lot in the process. __{{emoticon}}__

Re: Amarok, put the following at the end of your .conkyrc and see if it works. You may have to tweak it a bit. __{{emoticon}}__

Code: Select all

${color #dddf00}${font MgOpen Modata:size=10}MUSIC $stippled_hr ${font}
  ${if_running amarokapp}${color #ffffff}Artist: ${color #999999}  ${execi 10 ~/.conky/amarok artist}
  ${color #ffffff}Title:    ${color #999999}${execi 10 ~/.conky/amarok title}
  ${color #cccccc}${execibar 1 ~/.conky/amarok progress}
  ${color #ffffff}Album:  ${color #999999}${execi 10 ~/.conky/amarok album}
  ${color #ffffff}Year:    ${color #999999}${execi 10 ~/.conky/amarok year}$else${color #cccccc}${alignc}NOT ACTIVE$endif
${color #dddf00}$stippled_hr
Let me know how you get on, i'd be interested to know if it works. __{{emoticon}}__
Posts: 1,520
eriefisher
Joined: 07 Oct 2007
#10
Here are some ideas and scripts.


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://conky.sourceforge.net/screenshots.html"
linktext was:"http://conky.sourceforge.net/screenshots.html"
====================================


eriefisher
Posts: 316
DJiNN
Joined: 26 Oct 2007
#11
Excellent link eriefisher, much appreciated. Looks like i'll be going to bed late tonight! __{{emoticon}}__
Posts: 1,520
eriefisher
Joined: 07 Oct 2007
#12
Did you get any sleep yet? What were the final results?

eriefisher
Posts: 316
DJiNN
Joined: 26 Oct 2007
#13
LOL!! Yep, got some sleep eventually, but had a blast with Conky before doing so. I learnt quite a lot in the process (Although i've still much to learn of course) and i did get my Temperature settings (CPU & HDD) working on my core 2 lappie, so that was a real boon! Also found out how to make the bars look a lot sweeter, how to change the size of them and that kind of thing. Mainly cosmetic, but it's all good stuff.

I'll post a screenie of the latest incarnation soon as i get a chance. __{{emoticon}}__
harii
Posts: 138
harii
Joined: 14 Nov 2007
#14
Share your (or ones you have found) .conkyrc files here and post a screenshot.
Image
# ----------------------------------------------------------------------
# file: ~/.conkyrc
# author: Harii for AntiX
# modified: May 26, 2008
#
# ----------------------------------------------------------------------


alignment bottom_left
background no
cpu_avg_samples 2
default_color white
default_outline_color black
default_shade_color black
double_buffer yes
draw_outline yes
draw_shades no
gap_y 0
net_avg_samples 2
override_utf8_locale no
own_window yes
own_window_transparent yes
own_window_type desktop
own_window_type override
total_run_times 0
update_interval 5.0
uppercase no
use_spacer no
use_xft yes
xftalpha 0.8
xftfont DejaVu Sans:size=8
#${font Ranger:size=7}$sysname $kernel on ${freq_g}GHz $machine ${pre_exec uname -p | sed -e 's/(R)//g'} $color$stippled_hr
#$color$stippled_hr
# output ---------------------------------------------------------------

TEXT

${color white}${font Ranger:bold:size=26}AntiX ${color orange}${time %H:%M}${font}${voffset -17} ${color grey}${time %A %d %b %Y} ${color grey}CPU: ${color orange}${cpugraph 7,40}${color grey} ( ${cpu}%) ${color}Proc: ${color grey}$processes ${color}Run: ${color grey}$running_processes sda1:${color orange} ${fs_bar 7,40 /}${color grey} (${fs_free_perc /}%) ${color grey}essid: ${wireless_essid wlan0} ${color grey}IP:${color grey} ${addr wlan0}
${font DejaVu Sans:size=8}${offset 245} ${color grey}Uptime: $uptime ${offset 12} ${color grey}MEM: ${color orange}${membar 7,40} ${color grey}($memperc%)${color grey} ${color}Swap: ${color orange}${swapbar 7,40}${color grey} ($swapperc%) ${color}sda3: ${color orange}${fs_bar 7,40 /home} ${color grey}(${fs_free_perc /home}%) ${color grey}Wi-Fi STR: ${color orange}${wireless_link_bar 7,40 wlan0} ${color grey}speed: ${color grey} ${wireless_bitrate wlan0}
The text is just two lines? But i think people can get it working?
Posts: 316
DJiNN
Joined: 26 Oct 2007
#15
harii - that conky looks great! Nice one! __{{emoticon}}__ I've been looking for a decent two line conky for a while now, and this fits the bill perfectly!!