Help with styling my .conkyrc file [SOLVED]

Questions about applications and software
Forum rules
Before you post please read this

Help with styling my .conkyrc file [SOLVED]

Postby gibbs1984 on Tue Jul 07, 2009 3:37 pm

Hi all,

I've managed to get my .conkyrc file pretty much how I want it apart from two things, first thing how do I get rid of the outline with the shadow, it's bugging me really, I just want it like it's writing on a wall, I know how to code in CSS so just a bit of help in changing the code, I've changed bits here and there but it's probably something simple that I've missed.

Secondly, I'd like to have a live bar of what I'm uploading and downloading from Deluge for example, I've copied and pasted the upload and download bits from other .conkyrc files but it never shows me uploading or downloading when I am, either through Deluge or from Firefox.

Image

This is my .conkyrc file which I didn't write myself, got it online and altered to my tastes:

Code: Select all
# conky configuration

# 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 Bitstream Vera Sans Mono:size=8
#xftfont Terminus:size=8
xftfont Sans:size=10

# Text alpha when using Xft
xftalpha 0.2

# Print everything to console?
# out_to_console no

# mail spool
#mail_spool $MAIL

# Update interval in seconds
update_interval 1
# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0

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


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

# Minimum size of text area
minimum_size 125 5

# Draw shades?
draw_shades yes

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 3

# border margins
border_margin 9

# border width
border_width 0

# Default colors and also border colors
default_color white
default_shade_color black
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
# same thing as passing -x at command line
gap_x 5
gap_y 5

# Subtract file system buffers from used memory?
no_buffers yes

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

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

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

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


# Add spaces to keep things from moving about?  This only affects certain objects.
use_spacer yes
#Note: doesn't work in conky 1.2 =(

#   mldonkey_hostname     Hostname for mldonkey stuff, defaults to localhost
#   mldonkey_port         Mldonkey port, 4001 default
#   mldonkey_login        Mldonkey login, default none
#   mldonkey_password     Mldonkey password, default none


# Possible variables to be used:
#
#      Variable         Arguments                  Description               

#     addr              (interface)   IP address for an interface
#     acpiacadapter                   ACPI ac adapter state.                   
#     acpifan                         ACPI fan state                           
#     acpitemp                        ACPI temperature.                       
#     adt746xcpu                      CPU temperature from therm_adt746x       
#     adt746xfan                      Fan speed from therm_adt746x             
#     alignr            (num)         Right-justify text, with space of N
#     alignc                          Align text to centre
#     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                 
#     cpugraph          (height),(width) (gradient colour 1) (gradient colour 2)
#                     CPU usage graph, with optional colours in hex,
#                     minus the #.
#     downspeed         net           Download speed in kilobytes             
#     downspeedf        net           Download speed in kilobytes with one     
#                     decimal                                 
#     downspeedgraph    net (height),(width) (gradient colour 1) (gradient colour 2)
#                     Download speed graph, colours defined in
#                     hex, minus the #.
#     exec              shell command Executes a shell command and displays   
#                     the output in conky. warning: this     
#                     takes a lot more resources than other   
#                     variables. I'd recommend coding wanted   
#                     behaviour in C and posting a patch :-). 
#     execbar           shell command Same as exec, except if the first value
#                     return is a value between 0-100, it
#                     will use that number for a bar.
#                     The size for the bar is currently fixed,
#                     but that may change in the future.
#     execgraph         shell command Same as execbar, but graphs values
#     execi             interval, shell command
#                      Same as exec but with specific interval.
#                     Interval can't be less than             
#                     update_interval in configuration.       
#    font          font        Specify a different font.  Only applies
#                    to one line.
#     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/tempf (first in C, second in F)
#                     meaning temperature. n is number of the 
#                     sensor. See /sys/bus/i2c/devices/ on     
#                     your local computer.                     
#     if_running        (process)     if PROCESS is running, display
#                     everything if_running and the matching $endif
#     if_existing       (file)        if FILE exists, display everything between
#                     if_existing and the matching $endif
#     if_mounted        (mountpoint)  if MOUNTPOINT is mounted, display everything between
#                     if_mounted and the matching $endif
#     else                            Text to show if any of the above are not true
#     kernel                          Kernel version                         
#     linkstatus        (interface)   Get the link status for wireless connections
#     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
#     
#     metar_ob_time
#     metar_temp
#     metar_tempf                     Temp in F
#     metar_windchill
#     metar_dew_point                 There are a bunch of these
#     metar_rh                        and they are self-explanatory
#     metar_windspeed
#     metar_winddir
#     metar_swinddir
#     metar_cloud
#     metar_u2d_time
#     
#     ml_upload_counter               total session upload in mb
#     ml_download_counter             total session download in mb
#     ml_nshared_files                number of shared files
#     ml_shared_counter               total session shared in mb, buggy
#                     in some mldonkey versions
#     ml_tcp_upload_rate              tcp upload rate in kb/s
#     ml_tcp_download_rate            tcp download rate in kb/s
#     ml_udp_upload_rate              udp upload rate in kb/s
#     ml_udp_download_rate            udp download rate in kb/s
#     ml_ndownloaded_files            number of completed files
#     ml_ndownloading_files           number of downloading files
#     
#     mpd_artist            Artist in current MPD song
#                     (must be enabled at compile)
#     mpd_album            Album in current MPD song
#     mpd_bar           (height)      Bar of mpd's progress
#     mpd_bitrate                     Bitrate of current song
#     mpd_status                      Playing, stopped, et cetera.
#     mpd_title            Title of current MPD song
#     mpd_vol                MPD's volume
#     mpd_elapsed                     Song's elapsed time
#     mpd_length                      Song's length
#     mpd_percent                     Percent of song's progress
#     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
#                     conky 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           
#     offset            pixels        Move text over by N pixels
#     tail              logfile, lines (interval)
#                     Displays last N lines of supplied text
#                     text file.  If interval is not supplied,
#                     Conky assumes 2x Conky's interval.
#                     Max of 30 lines.
#                     Max of 30 lines can be displayed.
#     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 conky   
#                     has started.                           
#     top               type, num     This takes arguments in the form:
#                     top <name> <number>
#                     Basically, processes are ranked from
#                     highest to lowest in terms of cpu
#                     usage, which is what <num> represents.
#                     The types are: "name", "pid", "cpu", and
#                     "mem".
#                     There can be a max of 10 processes listed.
#     top_mem           type, num     Same as top, except sorted by mem usage
#                     instead of cpu
#     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                                 
#     upspeedgraph      net (height),(width)  (gradient colour 1) (gradient colour 2)
#                     Upload speed graph, colours defined in
#                     hex, minus the #.
#     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


# 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 }$nodename  ${hr}
${color #9fb6cd}${time %a, } $alignr${color }${time %e %B %G}
${color #9fb6cd}${time %Z,    }$alignr${color }${time %H:%M:%S}
${color #9fb6cd}UpTime $alignr${color }$uptime
${color #9fb6cd}Kernel$alignr${color }$kernel
${color #9fb6cd}Processes $alignr${color }$processes
${color #9fb6cd}Running   $alignr${color }$running_processes
${if_existing /proc/net/route wlan0}${color #9fb6cd}Wireless ${alignr} ${color }${wireless_link_qual wlan0}%${endif}

${color #9fb6cd}CPU1  ${cpu cpu1}%
${cpubar 8,225 cpu1}
${color #9fb6cd}CPU2  ${cpu cpu2}%
${cpubar 8,225 cpu2}

${color #9fb6cd}/root ${alignr}${color #9fb6cd} ${fs_used /}of ${fs_size /}
${fs_bar 8,225 /}
${color #9fb6cd}/home ${alignr}${color #9fb6cd} ${fs_used /home}of ${fs_size /home}
${fs_bar 8,225 /home}

${color #9fb6cd}RAM ${alignr}${color #9fb6cd} $mem of $memmax
${membar 8,225}
${color #9fb6cd}SWAP ${alignr}${color #9fb6cd} $swap of $swapmax
${swapbar 8,225}

${color #9fb6cd}Highest CPU
${color #ddaa00} ${top name 1}$alignr${top_mem cpu 1}
${color lightgrey} ${top name 2}$alignr${top cpu 2}
${color lightgrey} ${top name 3}$alignr${top cpu 3}
${color lightgrey} ${top name 4}$alignr${top cpu 4}
${color lightgrey} ${top name 5}$alignr${top cpu 5}

${color #9fb6cd}Highest RAM
${color #ddaa00} ${top_mem name 1}$alignr${top_mem mem 1}
${color lightgrey} ${top_mem name 2}$alignr${top_mem mem 2}
${color lightgrey} ${top_mem name 3}$alignr${top_mem mem 3}
${color lightgrey} ${top_mem name 4}$alignr${top_mem mem 4}
${color lightgrey} ${top_mem name 5}$alignr${top_mem mem 5}
Last edited by gibbs1984 on Thu Jul 09, 2009 5:37 pm, edited 1 time in total.
Linux Mint 17 (Cinnamon) 32bit.
User avatar
gibbs1984
Level 5
Level 5
 
Posts: 657
Joined: Mon Oct 27, 2008 2:40 pm
Location: Hemel Hempstead, England

Linux Mint is funded by ads and donations.
 

Re: Help with styling my .conkyrc file

Postby optimize me on Tue Jul 07, 2009 3:46 pm

As far as the shadow, there's a couple things you can try. Try changing own_window_type from 'desktop' to 'override'. If that doesn't work, you need to start conky on a delay so compiz has time to load. I start my conky (and awn) from a startup script that runs when my desktop loads:
Code: Select all
#!/bin/sh
sleep 15
conky -c ~/Conky/.conkyrc &
#conky -c ~/Conky/conky-countdown &
conky -c ~/Conky/conky-email &
sleep 1
avant-window-navigator &
exit

As far as other stuff, you might want to look two places. First, Ubuntu forums has a massive conky thread. I'd also have a look at http://conky.linux-hardcore.com/ There's the beginnings of a nice conky encyclopedia there.
AMD Phenom II X6 1045T 2.8GHz 8GB DDR3 RAM ATI Radeon HD6970
User avatar
optimize me
Level 5
Level 5
 
Posts: 639
Joined: Wed Jun 03, 2009 5:25 pm

Re: Help with styling my .conkyrc file

Postby lagagnon on Tue Jul 07, 2009 3:55 pm

Here are my conky upload/download graph bits:

Code: Select all
$color$stippled_hr
${color lightgrey}Networking:
 Down:${color #8844ee} ${downspeed eth0} k/s${color lightgrey} ${offset 80}Up:${color #22ccff} ${upspeed eth0} k/s
${color #0000ff}${downspeedgraph eth0 32,150 ff0000 0000ff} ${color #22ccff}${upspeedgraph eth0 32,150 0000ff ff0000}
User avatar
lagagnon
Level 7
Level 7
 
Posts: 1888
Joined: Wed Jun 17, 2009 7:38 pm
Location: an island in the Pacific...

Re: Help with styling my .conkyrc file

Postby gibbs1984 on Tue Jul 07, 2009 3:55 pm

Cheers optimize me, the own_desktop_type was actually commented out, I've uncommented it out and set it to override and the border/shadow has now gone :D

I've been through the Ubuntu Conky thread (I've actually got 15 .conkyrc files in a folder that I've been experimenting with) but all the different ones for upload and download have no effect, not sure if it's specific to my hardware or not, I'll have a look on that link now though.

Thanks.
Linux Mint 17 (Cinnamon) 32bit.
User avatar
gibbs1984
Level 5
Level 5
 
Posts: 657
Joined: Mon Oct 27, 2008 2:40 pm
Location: Hemel Hempstead, England

Re: Help with styling my .conkyrc file

Postby gibbs1984 on Tue Jul 07, 2009 4:02 pm

lagagnon wrote:Here are my conky upload/download graph bits:

Code: Select all
$color$stippled_hr
${color lightgrey}Networking:
 Down:${color #8844ee} ${downspeed eth0} k/s${color lightgrey} ${offset 80}Up:${color #22ccff} ${upspeed eth0} k/s
${color #0000ff}${downspeedgraph eth0 32,150 ff0000 0000ff} ${color #22ccff}${upspeedgraph eth0 32,150 0000ff ff0000}

Hi lagagnon,

I put your upload and download code in my .conkyrc file and it still doesn't show that I'm uploading or downloading, as you can see I'm downloading at 680KiB/s but Conky shows nothing:

Image

Code: Select all
# conky configuration

# 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 Bitstream Vera Sans Mono:size=8
#xftfont Terminus:size=8
xftfont Sans:size=10

# Text alpha when using Xft
xftalpha 0.2

# Print everything to console?
# out_to_console no

# mail spool
#mail_spool $MAIL

# Update interval in seconds
update_interval 1
# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0

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


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

# Minimum size of text area
minimum_size 125 5

# Draw shades?
draw_shades yes

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 3

# border margins
border_margin 9

# border width
border_width 0

# Default colors and also border colors
default_color white
default_shade_color black
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
# same thing as passing -x at command line
gap_x 5
gap_y 5

# Subtract file system buffers from used memory?
no_buffers yes

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

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

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

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


# Add spaces to keep things from moving about?  This only affects certain objects.
use_spacer yes
#Note: doesn't work in conky 1.2 =(

#   mldonkey_hostname     Hostname for mldonkey stuff, defaults to localhost
#   mldonkey_port         Mldonkey port, 4001 default
#   mldonkey_login        Mldonkey login, default none
#   mldonkey_password     Mldonkey password, default none


# Possible variables to be used:
#
#      Variable         Arguments                  Description               

#     addr              (interface)   IP address for an interface
#     acpiacadapter                   ACPI ac adapter state.                   
#     acpifan                         ACPI fan state                           
#     acpitemp                        ACPI temperature.                       
#     adt746xcpu                      CPU temperature from therm_adt746x       
#     adt746xfan                      Fan speed from therm_adt746x             
#     alignr            (num)         Right-justify text, with space of N
#     alignc                          Align text to centre
#     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                 
#     cpugraph          (height),(width) (gradient colour 1) (gradient colour 2)
#                     CPU usage graph, with optional colours in hex,
#                     minus the #.
#     downspeed         net           Download speed in kilobytes             
#     downspeedf        net           Download speed in kilobytes with one     
#                     decimal                                 
#     downspeedgraph    net (height),(width) (gradient colour 1) (gradient colour 2)
#                     Download speed graph, colours defined in
#                     hex, minus the #.
#     exec              shell command Executes a shell command and displays   
#                     the output in conky. warning: this     
#                     takes a lot more resources than other   
#                     variables. I'd recommend coding wanted   
#                     behaviour in C and posting a patch :-). 
#     execbar           shell command Same as exec, except if the first value
#                     return is a value between 0-100, it
#                     will use that number for a bar.
#                     The size for the bar is currently fixed,
#                     but that may change in the future.
#     execgraph         shell command Same as execbar, but graphs values
#     execi             interval, shell command
#                      Same as exec but with specific interval.
#                     Interval can't be less than             
#                     update_interval in configuration.       
#    font          font        Specify a different font.  Only applies
#                    to one line.
#     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/tempf (first in C, second in F)
#                     meaning temperature. n is number of the 
#                     sensor. See /sys/bus/i2c/devices/ on     
#                     your local computer.                     
#     if_running        (process)     if PROCESS is running, display
#                     everything if_running and the matching $endif
#     if_existing       (file)        if FILE exists, display everything between
#                     if_existing and the matching $endif
#     if_mounted        (mountpoint)  if MOUNTPOINT is mounted, display everything between
#                     if_mounted and the matching $endif
#     else                            Text to show if any of the above are not true
#     kernel                          Kernel version                         
#     linkstatus        (interface)   Get the link status for wireless connections
#     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
#     
#     metar_ob_time
#     metar_temp
#     metar_tempf                     Temp in F
#     metar_windchill
#     metar_dew_point                 There are a bunch of these
#     metar_rh                        and they are self-explanatory
#     metar_windspeed
#     metar_winddir
#     metar_swinddir
#     metar_cloud
#     metar_u2d_time
#     
#     ml_upload_counter               total session upload in mb
#     ml_download_counter             total session download in mb
#     ml_nshared_files                number of shared files
#     ml_shared_counter               total session shared in mb, buggy
#                     in some mldonkey versions
#     ml_tcp_upload_rate              tcp upload rate in kb/s
#     ml_tcp_download_rate            tcp download rate in kb/s
#     ml_udp_upload_rate              udp upload rate in kb/s
#     ml_udp_download_rate            udp download rate in kb/s
#     ml_ndownloaded_files            number of completed files
#     ml_ndownloading_files           number of downloading files
#     
#     mpd_artist            Artist in current MPD song
#                     (must be enabled at compile)
#     mpd_album            Album in current MPD song
#     mpd_bar           (height)      Bar of mpd's progress
#     mpd_bitrate                     Bitrate of current song
#     mpd_status                      Playing, stopped, et cetera.
#     mpd_title            Title of current MPD song
#     mpd_vol                MPD's volume
#     mpd_elapsed                     Song's elapsed time
#     mpd_length                      Song's length
#     mpd_percent                     Percent of song's progress
#     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
#                     conky 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           
#     offset            pixels        Move text over by N pixels
#     tail              logfile, lines (interval)
#                     Displays last N lines of supplied text
#                     text file.  If interval is not supplied,
#                     Conky assumes 2x Conky's interval.
#                     Max of 30 lines.
#                     Max of 30 lines can be displayed.
#     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 conky   
#                     has started.                           
#     top               type, num     This takes arguments in the form:
#                     top <name> <number>
#                     Basically, processes are ranked from
#                     highest to lowest in terms of cpu
#                     usage, which is what <num> represents.
#                     The types are: "name", "pid", "cpu", and
#                     "mem".
#                     There can be a max of 10 processes listed.
#     top_mem           type, num     Same as top, except sorted by mem usage
#                     instead of cpu
#     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                                 
#     upspeedgraph      net (height),(width)  (gradient colour 1) (gradient colour 2)
#                     Upload speed graph, colours defined in
#                     hex, minus the #.
#     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


# 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 }$nodename  ${hr}
${color #9fb6cd}${time %a, } $alignr${color }${time %e %B %G}
${color #9fb6cd}${time %Z,    }$alignr${color }${time %H:%M:%S}
${color #9fb6cd}UpTime $alignr${color }$uptime
${color #9fb6cd}Kernel$alignr${color }$kernel
${color #9fb6cd}Processes $alignr${color }$processes
${color #9fb6cd}Running   $alignr${color }$running_processes
${if_existing /proc/net/route wlan0}${color #9fb6cd}Wireless ${alignr} ${color }${wireless_link_qual wlan0}%${endif}

${color #9fb6cd}CPU1  ${cpu cpu1}%
${cpubar 8,225 cpu1}
${color #9fb6cd}CPU2  ${cpu cpu2}%
${cpubar 8,225 cpu2}

${color #9fb6cd}/root ${alignr}${color #9fb6cd} ${fs_used /}of ${fs_size /}
${fs_bar 8,225 /}
${color #9fb6cd}/home ${alignr}${color #9fb6cd} ${fs_used /home}of ${fs_size /home}
${fs_bar 8,225 /home}

${color #9fb6cd}RAM ${alignr}${color #9fb6cd} $mem of $memmax
${membar 8,225}
${color #9fb6cd}SWAP ${alignr}${color #9fb6cd} $swap of $swapmax
${swapbar 8,225}

${color #9fb6cd}Highest CPU
${color #ddaa00} ${top name 1}$alignr${top_mem cpu 1}
${color lightgrey} ${top name 2}$alignr${top cpu 2}
${color lightgrey} ${top name 3}$alignr${top cpu 3}
${color lightgrey} ${top name 4}$alignr${top cpu 4}
${color lightgrey} ${top name 5}$alignr${top cpu 5}

${color #9fb6cd}Highest RAM
${color #ddaa00} ${top_mem name 1}$alignr${top_mem mem 1}
${color lightgrey} ${top_mem name 2}$alignr${top_mem mem 2}
${color lightgrey} ${top_mem name 3}$alignr${top_mem mem 3}
${color lightgrey} ${top_mem name 4}$alignr${top_mem mem 4}
${color lightgrey} ${top_mem name 5}$alignr${top_mem mem 5}

$color$stippled_hr
${color lightgrey}Networking:
Down:${color #8844ee} ${downspeed eth0} k/s${color lightgrey} ${offset 80}Up:${color #22ccff} ${upspeed eth0} k/s
${color #0000ff}${downspeedgraph eth0 32,150 ff0000 0000ff} ${color #22ccff}${upspeedgraph eth0 32,150 0000ff ff0000}
Linux Mint 17 (Cinnamon) 32bit.
User avatar
gibbs1984
Level 5
Level 5
 
Posts: 657
Joined: Mon Oct 27, 2008 2:40 pm
Location: Hemel Hempstead, England

Re: Help with styling my .conkyrc file

Postby gibbs1984 on Tue Jul 07, 2009 4:13 pm

Not sure if it makes a difference but I think I should let you know, I'm on wireless and my Dad's computer is the router.
Linux Mint 17 (Cinnamon) 32bit.
User avatar
gibbs1984
Level 5
Level 5
 
Posts: 657
Joined: Mon Oct 27, 2008 2:40 pm
Location: Hemel Hempstead, England

Re: Help with styling my .conkyrc file

Postby lagagnon on Tue Jul 07, 2009 7:12 pm

Yes! It makes a difference - my network device is "eth0" yours is probably "wlan0" - network manager will show you your device name - substitute that name into the lines you pasted instead of eth0....
User avatar
lagagnon
Level 7
Level 7
 
Posts: 1888
Joined: Wed Jun 17, 2009 7:38 pm
Location: an island in the Pacific...

Re: Help with styling my .conkyrc file

Postby optimize me on Tue Jul 07, 2009 7:17 pm

I wouldn't think eth0 would be a wireless device.. more likely ath0 or wlan0. Can you post up the output of iwconfig in a terminal? It should tell you what your active device is named.

Another program you might want to look at is vnstat. It's available in the repos and it gives detailed information concerning daily, weekly, monthly up/download usage.

There's a write up on how to install & use it at conkyhardcore.
AMD Phenom II X6 1045T 2.8GHz 8GB DDR3 RAM ATI Radeon HD6970
User avatar
optimize me
Level 5
Level 5
 
Posts: 639
Joined: Wed Jun 03, 2009 5:25 pm

Re: Help with styling my .conkyrc file

Postby gibbs1984 on Thu Jul 09, 2009 5:36 pm

Thanks both,

I ran iwconfig in the Terminal and it was wlan0 so I amended the Conky file and it works perfectly now, thanks a lot :D

I love Mint, so easy to fix problems that so rarely occur in the first place :lol:
Linux Mint 17 (Cinnamon) 32bit.
User avatar
gibbs1984
Level 5
Level 5
 
Posts: 657
Joined: Mon Oct 27, 2008 2:40 pm
Location: Hemel Hempstead, England

Linux Mint is funded by ads and donations.
 

Return to Software & Applications

Who is online

Users browsing this forum: No registered users and 17 guests