You are not logged in.

#251 2009-03-14 18:18:20

vajorie
Member
Registered: 2009-03-12
Posts: 66

Re: conky configs and screenshots!

conky.jpg

# 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 true if you want Conky to be forked in the background
background true
# background no

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

# Use Xft?
use_xft no

# Set conky on the bottom of all other applications
on_bottom no

# Xft font when Xft is enabled
xftfont Gothic:size=8

# Text alpha when using Xft
xftalpha 0.8

# 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 (required in nautilus)
#own_window yes
#own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

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

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

# Minimum size of text area
minimum_size 280 5

# Draw shades?
draw_shades yes

# Draw outlines?
draw_outline yes

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 8

# border margins
border_margin 4

# border width
border_width 1

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

# 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 35
gap_y 1

# Subtract file system buffers from used memory?
no_buffers yes

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

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

#   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

# boinc (seti) dir
# seti_dir /opt/seti

# 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 grey}cpu:$color ${cpubar 4,70} ${color grey}cpu hog:$color ${top name 1}${offset -35}${top cpu 1} ${color grey}| ram:$color ${membar 4,70} ${color grey}ram hog:$color ${top_mem name 1}${offset -35}${top_mem mem 1}  ${color grey}| network:$color ${upspeed wlan0} up, ${downspeed wlan0} down, ${totaldown wlan0} downloaded ${color grey}| temp:$color $acpitemp ${color grey}| battery:$color ${battery_bar 4,70 BAT1} ${color grey}| i/o:$color $diskio ($diskio_write w $diskio_read r)

Last edited by vajorie (2009-03-14 19:33:51)

Offline

#252 2009-03-19 03:29:12

soul..
Member
Registered: 2008-01-10
Posts: 10

Re: conky configs and screenshots!

http://xs537.xs.to/xs537/09123/screen573.jpg
Kinda light one, and my latest, its simple and i use it already long time (my screen 1600x1200)

Question:
still little bit uses of ram (hm :S i say way too much.. how can i minimize conkys ram usage ?

Temp:
gpu - nvidia

Now playing line:
conky size isnt limited so it can show full line with all song name till right screen corner

Bars:
logest is - mpd-playng, ram, swap, cpu

d: u:
first line download
second upload
there is 3 netwcards...


double_buffer yes
background yes
total_run_times 0
update_interval 2

own_window   yes
own_window_transparent yes
own_window_type desktop
own_window_hints ,sticky,skip_taskbar,skip_pager

gap_x 13
gap_y 5
alignment bl

default_color  8f8f8f
own_window_colour 151515
draw_outline no
draw_borders no
border_margin 10
draw_shades yes
use_xft yes
xftfont bauhaus:pixelsize=10

use_spacer none

mpd_host localhost
mpd_port 6600
TEXT
MEM: $color
${top_mem name 1}${top_mem mem 1}%
${top_mem name 2}${top_mem mem 2}%
${top_mem name 3}${top_mem mem 3}%
${top_mem name 4}${top_mem mem 4}%
${top_mem name 5}${top_mem mem 5}%

CPU: $color
${top name 1}${top cpu 1}%
${top name 2}${top cpu 2}%
${top name 3}${top cpu 3}%


RAM ${color e0e0e0}$font$mem$color
SWAP: ${color e0e0e0}$font$swap$color 
CPU: ${color e0e0e0}$font$cpu%$color
CPU: ${color e0e0e0}$font$acpitemp${color}°C$color 
GPU: ${color e0e0e0}${execi 5 nvidia-settings -q GPUCoreTemp | grep -oE '[0-9]+\.$' | sed -e 's/\.//'}${color}°C$color   

d: ${color e0e0e0}${font}${downspeed eth0}:${downspeed eth1}:${downspeed eth2}$color Kb/s
u: ${color e0e0e0}${upspeed eth0}:${upspeed eth1}:${upspeed eth2}$color Kb/s

$font${mpd_bitrate}.$mpd_status ${color e0e0e0}$mpd_artist, $mpd_album${font nec:bold size=20} $mpd_title
${color e0e0e0}${time %d.%m.%Y %A, %k:%M"%S}$font 
$color${mpd_bar 3, 240}  ${membar 3, 70} ${swapbar 3, 70} ${cpubar 3, 70}

Last edited by soul.. (2009-03-19 03:30:37)

Offline

#253 2009-03-26 06:10:55

Alex6969
Member
Registered: 2009-03-26
Posts: 18

Re: conky configs and screenshots!

Ubuntu user here. I tried installing it on my netbook, but I couldn't get my wireless drivers compiled. I plan on using Arch for my nano-itx build coming up. Anyway, I usually lurk around AW&SS and I'm very impressed with your guys' Conky set-ups. Thanks for the inspiration!

th_2009-03-26-005730_1024x600_scrot.png

conkyrc

background yes
use_xft yes
xftfont cure:size=8
update_interval 1
own_window_colour black
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_transparent yes
own_window_type normal
own_window yes
double_buffer yes
maximum_width 950
minimum_size 950
draw_shades no
draw_borders no
draw_outline no
stippled_borders 0
border_margin 0
border_width 0
default_color 696969
color1 FFA000
alignment top_middle
gap_x 0
gap_y 0
no_buffers yes
uppercase no
override_utf8_locale yes
use_spacer left
short_units true


TEXT
${color1}Uptime: ${color}${uptime} :: ${color1}CPU Util:${color}${cpu cpu0}%${cpu cpu1}% :: ${color1}Memory:${color} ${mem} ${color1}[${color}${memperc}%${color1}]${color} :: ${color1}Root:${color}${fs_free_perc /}% :: ${color1}Alex's Files:${color}${fs_free_perc /media/ALEXS FILES}% :: ${color1}IP Add: ${color}${addr eth1} :: ${color1}WiFi: ${color}${wireless_essid eth1} :: ${color1}Battery: ${color}${battery BAT1}

conkyrc_2
(weather and time)

background yes
use_xft yes
xftfont cure:size=8
update_interval 1
own_window_colour black
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_transparent yes
own_window_type normal
own_window yes
double_buffer yes
maximum_width 170
minimum_size 170
draw_shades no
draw_borders no
draw_outline no
stippled_borders 0
border_margin 0
border_width 0
default_color 696969
color1 FFA000
alignment bottom_right
gap_x 0
gap_y 0
no_buffers yes
uppercase no
override_utf8_locale yes
use_spacer left
short_units true

TEXT
${color1}Weather${hr}
${color1}${alignc 40}${font ConkyWeather:size=28}${execi 100 python ~/.scripts/conkyForecast.py --location=65807 --datatype=WF} ${execi 100 python ~/.scripts/conkyForecast.py --location=65807 --startday=1 --datatype=WF} ${execi 100 python ~/.scripts/conkyForecast.py --location=65807 --startday=2 --datatype=WF}${font} 
${color1}Cond: ${color}${alignc 33}${execi 100 python ~/.scripts/conkyForecast.py --location=65807 --datatype=CC} ${alignc -28}${execi 100 python ~/.scripts/conkyForecast.py --location=65807 -n --startday=1 --datatype=LT --imperial} ${alignc -60}${execi 100 python ~/.scripts/conkyForecast.py --location=65807 -n --startday=2 --datatype=LT --imperial} 
${color1}Temp: ${color}${alignc 10}${execi 100 python ~/.scripts/conkyForecast.py --location=65807 --datatype=HT --imperial} ${alignc -27}${execi 100 python ~/.scripts/conkyForecast.py --location=65807 -n --startday=1 --datatype=HT --imperial} ${alignc -60}${execi 100 python ~/.scripts/conkyForecast.py --location=65807 -n --startday=2 --datatype=HT --imperial}
${color1}Time${hr}
${color}${font cure:size=34}${time %I}:${font cure:size=12}${time %M %P}
${color}${font cure:size=12}${time %A %d %Y}

Last edited by Alex6969 (2009-03-26 06:12:29)


This isn't Ubuntu...

Offline

#254 2009-04-05 08:55:30

Netsu
Member
From: Poland
Registered: 2009-04-04
Posts: 182

Re: conky configs and screenshots!

shot.jpg

Three instances of conky.

The main one, with Arch logo.

double_buffer yes
#!/bin/sh
own_window yes
alignment top_right
update_interval 1
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
gap_x 15
gap_y 10
use_xft yes
xftfont sans:size=8.5
xftalpha 0.9
minimum_size 280 5

TEXT
$sysname $kernel on $machine, name: $nodename
Local IP:${color #B3D2FF} ${addr eth0}${color}${alignr 1}Wan IP:${color #B3D2FF} ${execi 600 /home/netsu/Conky/wan-ip.sh}
$color${cpubar 0,115}${offset 39}${cpubar 0}
${voffset -2}${offset 28}${font sans:style=bold:size=12}${time %H:%M:%S}${voffset -2}${offset 57}${font sans:size=11}${time %d %b %G}
${alignr 159}$font Up:${color #B3D2FF} $uptime
$color$hr$font
Frequency:${color #B3D2FF} $freq_g GHz$color
CPU Usage:${color #B3D2FF} $cpu%
${color}${cpugraph 30,280 88AACC B3D2FF}
${color}RAM memory: ${color #B3D2FF}$memmax
${color}RAM Usage:${color #B3D2FF} $memperc%
${color}Swap Usage:${color #B3D2FF} $swapperc%
${color #B3D2FF}${offset 107}${voffset -179}${font openlogos:size=45}B$font
${offset 172}${voffset -21}$color${font sans:size=11}${time %A}$font

The second one, with process monitor and currencies.

double_buffer yes
#!/bin/sh
own_window yes
alignment top_right
update_interval 2
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
gap_x 315
gap_y 10
use_xft yes
xftfont monospace:size=7.5
xftalpha 0.8
minimum_size 205 5

TEXT
${font sans:size=8.5}File systems usage:
 $font Main ${font sans:size=8.5}${color #B3D2FF}${fs_bar 7,45 /} ${fs_used /} / ${fs_size /}
 $font${color} Side ${font sans:size=8.5}${color #B3D2FF}${fs_bar 7,45 /media/Muzyka} ${fs_used /media/Muzyka} / ${fs_size /media/Muzyka}
${color}$hr$font
${alignr 96}Name${alignr 12}CPU%    MEM%
CPU${alignr}${color #B3D2FF}${top name 1} ${top cpu 1} ${top mem 1}
${alignr}${color grey}${top name 2} ${top cpu 2} ${top mem 2}
${alignr}${top name 3} ${top cpu 3} ${top mem 3}
${color}MEM${alignr}${color #B3D2FF}${top_mem name 1} ${top_mem cpu 1} ${top_mem mem 1}
${alignr}${color grey}${top_mem name 2} ${top_mem cpu 2} ${top_mem mem 2}
${alignr}${top_mem name 3} ${top_mem cpu 3} ${top_mem mem 3}
${color}$hr${execi 3600 /home/netsu/Conky/curr.sh}
${color}${alignr}USD: ${color #B3D2FF}${tail /home/netsu/Conky/usd.txt 1}   $font${color}diff: ${color #B3D2FF}${tail /home/netsu/Conky/usd2.txt 1}%
${color}${alignr}EUR: ${color #B3D2FF}${tail /home/netsu/Conky/eur.txt 1}   $font${color}diff: ${color #B3D2FF}${tail /home/netsu/Conky/eur2.txt 1}%
${color}${alignr}GBP: ${color #B3D2FF}${tail /home/netsu/Conky/gbp.txt 1}   $font${color}diff: ${color #B3D2FF}${tail /home/netsu/Conky/gbp2.txt 1}%

The third one just displays my todo.txt file.


My Elegant Pattern GTK theme.
My game development blog, now on a new site.

'~/.xinitrc is an Archer's DE' - moljac024

Offline

#255 2009-04-07 15:26:05

zandaa
Member
From: The Netherlands
Registered: 2008-07-14
Posts: 33
Website

Re: conky configs and screenshots!

I'm using a conky config tweaked from AriciU's conky (first page of this topic) and it's still a work in progress. What I want to do now is to add the current playing song in xmms but not display all the xmms text if xmms is not even running, any clues? anyway, here's mine so far.

Screenshot:
http://home.deds.nl/~xanderbos/shots/conky.png

My config:

#avoid flicker
double_buffer no

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

#borders
draw_borders no
border_margin 1

#shades
draw_shades yes

#position
gap_x 5
gap_y -11
alignment bottom_left

#behaviour
update_interval 2.0

#colour
default_color  a1a1a1
#default_shade_color 000000
own_window_colour 262626

#font
use_xft yes
xftfont bauhaus:pixelsize=10

#to prevent window from moving
use_spacer no
minimum_size 1670 25

TEXT

${voffset 5}${color 1994d1}${font openlogos:size=14}B
${offset 20}${voffset -25}${font}${color} Kernel: ${color e9e9e9}${font}${kernel}${color} | CPU: ${color e9e9e9}${font}${cpu}% ${color} RAM: ${color e9e9e9}${font}${mem} ${color} | ${color} Uptime: ${color e9e9e9}${font}${uptime_short}${color} ${if_up eth0}| IP: ${color e9e9e9}${font}${addr eth0} ${color}Up: ${color e9e9e9}${font}${upspeedf eth0}kbps ${color}Down: ${color e9e9e9}${font}${downspeedf eth0}kbps $endif${color}| Vol: ${color e9e9e9}${font}${exec /home/test/scripts/volmon.sh}

With my army of penguins, I shall overthrow governments and free those who have been waiting for liberty.

Offline

#256 2009-04-07 16:17:36

orphius1970
Member
From: Modesto (HELL) California
Registered: 2009-02-27
Posts: 151

Re: conky configs and screenshots!

Can someone please tell me how to set the sensor section in my conkyrc so that my nvidia card displays fahrenheit?
Here is that section of code

${color1}GPU: ${color e0e0e0}${execi 5 nvidia-settings -q GPUCoreTemp | grep -oE '[0-9]+\.$' | sed -e 's/\.//'}${color}°C$color

AMD Phenomx3, 4gb ram, Nvidia Gforce 9400gt,
MSI K9N2 Diamond Motherboard, Arch x86_64

Offline

#257 2009-04-07 16:40:20

thefatprecious
Member
From: Austin, TX
Registered: 2009-02-13
Posts: 98

Re: conky configs and screenshots!

This is what I do:

GPU:${color lightgrey}${execi 30 echo "scale=1;((9/5) * `nvidia-settings -q GPUCoreTemp | grep -m1 Attribute | cut -c44-45`) + 32" |bc}F

Crude but it works....heh


ILoveCandy

Offline

#258 2009-04-07 16:59:12

orphius1970
Member
From: Modesto (HELL) California
Registered: 2009-02-27
Posts: 151

Re: conky configs and screenshots!

no joy, didn't work


AMD Phenomx3, 4gb ram, Nvidia Gforce 9400gt,
MSI K9N2 Diamond Motherboard, Arch x86_64

Offline

#259 2009-04-07 17:04:16

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: conky configs and screenshots!

orphius, try replacing his ..."| grep | cut" with your ..."| grep | sed".  also, if you don't have bc installed you will have no joy. 

if you're getting the correct number in C then just pass the C>F conversion through the bc math program like precious does; it could be failing because his 44th and 45th characters arent the same as yours, or you don't have bc installed.

also, this may be a little labor intensive for conky to run, might be worth scripting it.

Last edited by brisbin33 (2009-04-07 17:05:03)

Offline

#260 2009-04-07 17:07:26

orphius1970
Member
From: Modesto (HELL) California
Registered: 2009-02-27
Posts: 151

Re: conky configs and screenshots!

thank you. Unfortunately, I am completely new to conky and I really don't know what you mean.
A little clearer description would be helpful.

Last edited by orphius1970 (2009-04-07 17:10:31)


AMD Phenomx3, 4gb ram, Nvidia Gforce 9400gt,
MSI K9N2 Diamond Motherboard, Arch x86_64

Offline

#261 2009-04-07 18:01:19

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: conky configs and screenshots!

sure!

the ${exec some crap} in conky just executes "somecrap" and displays the output in conky. ${execi N some crap} does the same, but on an interval of N seconds. 

so, on your commandline in xterm you could do this:

$ nvidia-settings -q | grep -oE '[0-9]+\.$' | sed -e 's/\.//'

and you get a number returned which equals your gpu temp in C.

so ${execi 30 nvidia-settings -q | grep -oE '[0-9]+\.$' | sed -e 's/\.//'} will just return the same number but inside conky and update every 30 seconds.

now, precious smartly used bc to convert the degreeC to degreeF using that F=9/5C+32 formula.  so on CLI it would be

$ echo "scale=1;((9/5) * `nvidia-settings -q GPUCoreTemp | grep -m1 Attribute | cut -c44-45`) + 32" | bc

don't analyze it, just know that the above uses bc and will output the degreeF *IF* cut -c 44-45 (show only the 44th and 45th character) is the degreeC for both you and precious.  but we can get around that because we know your | grep | sed portion returns the degreeC correctly on your machine.

so for you, on CLI, this should work:

$ echo "scale=1;((9/5) * `nvidia-settings -q GPUCoreTemp | grep -oE '[0-9]+\.$' | sed -e 's/\.//'`) + 32" | bc

and in conky:

${color1}GPU: ${color e0e0e0}${execi 30 echo "scale=1;((9/5) * `nvidia-settings -q GPUCoreTemp | grep -oE '[0-9]+\.$' | sed -e 's/\.//'`) + 32" | bc}${color}°F$color

phew.

Offline

#262 2009-04-07 18:34:50

orphius1970
Member
From: Modesto (HELL) California
Registered: 2009-02-27
Posts: 151

Re: conky configs and screenshots!

Thank you Brisben !!!!!!!!!!!!
Worked perfectly and now I understand, which is even better smile

NEW:
I just saw on a posting from cinan that he somehow integrated the systray into conky. I would love to know how to
do this?!?

Here is my current Conkyrc

double_buffer yes
background no

use_xft yes
xftfont Bitstream Vera Sans Mono:size=10
xftalpha 0.8

update_interval 1.0
 
total_run_times 0

own_window yes
own_window_type normal
own_window_transparent no
own_window_hints undecorated,below,skip_taskbar,sticky,skip_pager
no_buffers yes
#minimum_size 200 5
maximum_width 200
draw_shades no
draw_outline no  # amplifies text if yes
draw_borders no
stippled_borders 0
alignment tr  # Aligned position on screen: tl, tr, tm, bl, br, bm, ml, mr
gap_x 0
gap_y 0
uppercase no
pad_percents 2
#use_spaces yes

color0 00FF00  # lightgreen
color1 00FFFF  # lightblue
color2 FFFFFF  # white
color3 FFF935  # yellow
color4 FF8DFA  # pink
color5 000000  # black
color6 5b6dad  # darkblue

TEXT
${color0}${stippled_hr 2 1}
${color1}${font openlogos:size-18}B ${font}$color${color1}${font size-11}${alignc}${sysname} ${kernel}
${color0}${stippled_hr 2 1}
${color4}${font size=11}${alignc}${execi 300 ~/.conky/weather.sh 95356}
${color0}${stippled_hr 2 1}
${color2}${font size-20}${alignc}${time %I:%M:%P}$font
${color1}${alignc}${font size-11}${time %a,}${time %e %B %G}$font
${color0}${stippled_hr 2 1}
${color3}${alignc}${font size-11}uptime: ${color0}$uptime$font
${stippled_hr 2 1}
${color1}${alignc}CPU:${color3}$cpu%
${color6}${alignc}${cpugraph 10,200 000000 7f8ed3}
${color1}${alignc}RAM:${color3}$memperc%
${color2}${alignc}$mem/$memmax
${color6}${alignr}${membar 10,200}
${color1}${alignc}Swap:$color
${color2}${alignc}$swap/$swapmax
${color6}${swapbar 10,200}
${color0}${stippled_hr 2 1}
${color3}${alignc}${font size-11}Processes:$color $processes | $running_processes$font
${color0}${color0}${stippled_hr 2 1}
${color1}${font size-11} CPU: ${color e0e0e0}$acpitempf${color}°F$color  ${color1}${alignr}${font size-11}GPU: ${color e0e0e0}${execi 30 echo "scale=1;((9/5) * `nvidia-settings -q GPUCoreTemp | grep -oE '[0-9]+\.$' | sed -e 's/\.//'`) + 32" | bc}${color}°F$color$font   
${color0}${color0}${stippled_hr 2 1}
${color4}${font size-11}Up: ${upspeed eth0} kb/s ${color1}${alignr}${upspeedgraph eth0 12,60 F57900 FCAF3E}
${color4}${font size-11}Down: ${downspeed eth0} kb/s ${color1}${alignr}${downspeedgraph eth0 12,60 F57900 FCAF3E}
${color0}${stippled_hr 2 1}
${color2}${font size-9}/         $color${alignr}${fs_used /}/${fs_size /}
${color6}${fs_bar 8,200 /}
${color2}Home   $color${alignr}${fs_used /home}/${fs_size /home}
${color6}${fs_bar 8,200 /}
${color2}Usr         $color${alignr}${fs_used /usr}/${fs_size /usr}
${color6}${fs_bar 8,200 /usr}
${color2}Var       $color${alignr}${fs_used /var}/${fs_size /var}
${color6}${fs_bar 8,200 /var}
${color2}Tmp       $color${alignr}${fs_used /tmp}/${fs_size /tmp}
${color6}${fs_bar 8,200 /tmp}
${color0}${stippled_hr 2 1}

I am not sure how to post a screenshot.

Last edited by orphius1970 (2009-04-10 15:51:09)


AMD Phenomx3, 4gb ram, Nvidia Gforce 9400gt,
MSI K9N2 Diamond Motherboard, Arch x86_64

Offline

#263 2009-04-14 10:28:40

Netsu
Member
From: Poland
Registered: 2009-04-04
Posts: 182

Re: conky configs and screenshots!

conky.jpg

Redesigned my conky a bit.

The one with the logo:

double_buffer yes
#!/bin/sh
own_window yes
alignment top_right
update_interval 1
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
gap_x 15
gap_y 10
use_xft yes
xftfont sans:size=8.5
xftalpha 0.9
minimum_size 270 5

TEXT
Local IP:${color #B3D2FF} ${addr eth0}${color}        Wan IP:${alignr 1}${color #B3D2FF} ${execi 600 /home/netsu/Conky/wan-ip.sh}
$color${cpubar 0,115}${offset 39}${cpubar 0}
${voffset -2}${offset 28}${font sans:style=bold:size=12}${time %H:%M:%S}${voffset -2}${offset 57}${font sans:size=11}${time %d %b %G}
${alignr 147}${font}Up:${color #B3D2FF} $uptime
$color$font${voffset 5}
CPU Usage: ${color #B3D2FF}$cpu% ${voffset -5}${alignr}$color${cpugraph 26,160 88AACC B3D2FF}
${voffset -18}${color #B3D2FF}$freq_g GHz
${voffset 5}${color}Main FS ${color #B3D2FF}${fs_bar 7,80 /} ${alignr}${fs_used /} / ${fs_size /}
${color}Side FS ${offset 1}${color #B3D2FF}${fs_bar 7,80 /media/Muzyka} ${alignr}${fs_used /media/Muzyka} / ${fs_size /media/Muzyka}
${color}${voffset -2}$hr$font
${color}RAM Usage:${color #B3D2FF} $memperc%${alignr}${color}of ${color #B3D2FF}$memmax
${color}Swap Usage:${color #B3D2FF} $swapperc%${alignr}${color}of ${color #B3D2FF}$swapmax
${color #B3D2FF}${offset 107}${voffset -177}${font openlogos:size=45}B$font
${offset 172}${voffset -19}$color${font sans:size=11}${time %A}$font

The one with system monitor:

double_buffer yes
#!/bin/sh
own_window yes
alignment top_right
update_interval 2
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
gap_x 305
gap_y 10
use_xft yes
xftfont monospace:size=7.5
xftalpha 0.8
minimum_size 200 5

TEXT
${alignr}${font sans:size=8.5}$sysname $kernel on $machine
${voffset -3}${color}$hr$font
${alignr 96}Name${alignr 12}CPU%    MEM%
CPU${alignr}${color #B3D2FF}${top name 1} ${top cpu 1} ${top mem 1}
${alignr}${color grey}${top name 2} ${top cpu 2} ${top mem 2}
${alignr}${top name 3} ${top cpu 3} ${top mem 3}
${color}MEM${alignr}${color #B3D2FF}${top_mem name 1} ${top_mem cpu 1} ${top_mem mem 1}
${alignr}${color grey}${top_mem name 2} ${top_mem cpu 2} ${top_mem mem 2}
${alignr}${top_mem name 3} ${top_mem cpu 3} ${top_mem mem 3}
${color}$hr${execi 3600 /home/netsu/Conky/curr.sh}
${color}${alignr}USD: ${color #B3D2FF}${tail /home/netsu/Conky/usd.txt 1}   $font${color}diff: ${color #B3D2FF}${tail /home/netsu/Conky/usd2.txt 1}%
${color}${alignr}EUR: ${color #B3D2FF}${tail /home/netsu/Conky/eur.txt 1}   $font${color}diff: ${color #B3D2FF}${tail /home/netsu/Conky/eur2.txt 1}%
${color}${alignr}GBP: ${color #B3D2FF}${tail /home/netsu/Conky/gbp.txt 1}   $font${color}diff: ${color #B3D2FF}${tail /home/netsu/Conky/gbp2.txt 1}%

My Elegant Pattern GTK theme.
My game development blog, now on a new site.

'~/.xinitrc is an Archer's DE' - moljac024

Offline

#264 2009-04-14 19:05:02

pharcyde
Member
From: Connecticut
Registered: 2009-03-13
Posts: 88

Re: conky configs and screenshots!

I sheisted mine from the Debian forums and switched it up a little.

Image:
http://f.imagehost.org/view/0264/conkyrc

Code:

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

#cpu_avg_samples 2
#net_avg_samples 2

own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window yes
own_window_type desktop
own_window_transparent yes
#own_window_transparent yes
#own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

out_to_console no

# X font when Xft is disabled, you can pick one with program xfontsel
#font 7x12
#font 6x10
#font 7x13
#font 8x13
#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 Bitstream Vera Sans Mono:size=8

#own_window_transparent no
#own_window_colour hotpink
# Text alpha when using Xft
xftalpha 0.8

on_bottom yes

# 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 250 5
maximum_width 258

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 10

# border margins
border_margin 4

# border width
border_width 1

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

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

# Gap between borders of screen and text
gap_x 12
gap_y 37
# Add spaces to keep things from moving about?  This only affects certain objects.
use_spacer no

# Subtract file system buffers from used memory?
no_buffers yes

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

TEXT
${color #E32770}$nodename$color
$sysname $kernel on $machine
${color lightgrey}Uptime:$color $uptime ${color lightgrey}- Load:$color $loadavg${color lightgrey}
RAM Usage:$color $memperc% or $mem of $memmax${color lightgrey}
Swap Usage:$color $swapperc%${color lightgrey}
$color$stippled_hr${color lightgrey}
Intel Core 2 Duo e6600 @ $color${freq_g} GHz${color lightgrey}
Average CPU History:
${color black}${cpugraph 000000 E32770}${color lightgrey}
 ${color lightgrey}Core0:$color ${execi 8 sensors | grep -A 1 'Core 0' | cut -c15-16 | sed '/^$/d'} C${color grey} @$color ${cpu cpu1}%   ${alignr}${cpubar cpu1 6,120}
 ${color lightgrey}Core1:$color ${execi 8 sensors | grep -A 1 'Core 1' | cut -c15-16 | sed '/^$/d'} C${color grey} @$color ${cpu cpu2}%   ${alignr}${cpubar cpu2 6,120}
/ ${fs_used_perc /}% ${fs_used /}/${fs_size /}
/home ${fs_used_perc /home}% ${fs_used /home}/${fs_size /home}
/var ${fs_used_perc /var}% ${fs_used /var}/${fs_size /var}
$color$stippled_hr${color lightgrey}
Music:${color lightgrey}  $color$mpd_album 
${color grey} $mpd_smart 
${color grey} $mpd_status $mpd_elapsed/$mpd_length${color grey}
$stippled_hr${color light grey}
${color lightgrey}Processes:$color $processes  ${color grey}Running:$color $running_processes
${color}Name              PID     CPU%   MEM%
${color #ddaa00} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color}Mem usage
${color #ddaa00} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${color lightgrey} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${color lightgrey} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}

Offline

#265 2009-04-21 21:48:01

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,637
Website

Re: conky configs and screenshots!

screenshot1xnb.png

# for this to work you need both lm-sensors and hddtemp
# get both from main repos
# be sure to add sudo powers for hddtemp
# /etc/sudoers may contain %users ALL=NOPASSWD: /usr/sbin/hddtemp

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

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

out_to_console no

# X font when Xft is disabled, you can pick one with program xfontsel
#font 7x12
#font 6x10
#font 7x13
#font 8x13
#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 Bitstream Vera Sans Mono:size=8
#
#
#own_window_transparent no
#own_window_colour hotpink
# Text alpha when using Xft
xftalpha 0.8

#on_bottom yes

# 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 250 5
maximum_width 258

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 10

# border margins
border_margin 4

# border width
border_width 1

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

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

# Gap between borders of screen and text
gap_x 12
gap_y 37
# Add spaces to keep things from moving about?  This only affects certain objects.
use_spacer no

# Subtract file system buffers from used memory?
no_buffers yes

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

TEXT
${color #ddaa00}$nodename$color
$sysname $kernel on $machine
${color lightgrey}Uptime:$color $uptime ${color lightgrey}- Load:$color $loadavg${color lightgrey}
RAM Usage:$color $memperc% or $mem of $memmax${color lightgrey}
Swap Usage:$color $swapperc%${color lightgrey}
$color$stippled_hr${color lightgrey}
Intel Xeon X3360 @ $color${freq_g} GHz${color lightgrey} (Vcc: ${execi 8 sensors | grep in0 | cut -c15-19} V)
${color black}${cpugraph 000000 5000a0}${color lightgrey}
 ${color lightgrey}Core0:$color ${execi 8 sensors | grep -A 1 'Core 0' | cut -c15-16 | sed '/^$/d'} °C${color grey} @$color ${cpu cpu1}%   ${alignr}${cpubar cpu1 6,120}
 ${color lightgrey}Core1:$color ${execi 8 sensors | grep -A 1 'Core 1' | cut -c15-16 | sed '/^$/d'} °C${color grey} @$color ${cpu cpu2}%   ${alignr}${cpubar cpu2 6,120}
 ${color lightgrey}Core2:$color ${execi 8 sensors | grep -A 1 'Core 2' | cut -c15-16 | sed '/^$/d'} °C${color grey} @$color ${cpu cpu3}%   ${alignr}${cpubar cpu3 6,120}
 ${color lightgrey}Core3:$color ${execi 8 sensors | grep -A 1 'Core 3' | cut -c15-16 | sed '/^$/d'} °C${color grey} @$color ${cpu cpu4}%   ${alignr}${cpubar cpu4 6,120}${color grey}
$color$stippled_hr${color lightgrey}
${color grey} sda:$color ${execi 300 sudo hddtemp /dev/sda | cut -c24-25} °C    ${color grey} sdb:$color ${execi 300 sudo hddtemp /dev/sdb | cut -c24-25} °C    ${color grey} sdc:$color ${execi 300 sudo hddtemp /dev/sdc | cut -c24-25} °C
${color grey} GPU:$color ${execi 8 nvclock -T | grep 'GPU t' | cut -c21-22} °C    ${color grey} M/B:$color ${execi 8 sensors | grep temp2 | cut -c15-16} °C     ${color grey} NB:$color ${execi 8 sensors | grep temp3 | cut -c15-16} °C
${color grey}$stippled_hr${color light grey}
${color lightgrey}Processes:$color $processes  ${color grey}Running:$color $running_processes
${color}Name              PID     CPU%   MEM%
${color #ddaa00} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color}Mem usage
${color #ddaa00} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${color lightgrey} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${color lightgrey} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}

Last edited by graysky (2009-06-14 12:56:24)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#266 2009-04-21 22:31:24

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: conky configs and screenshots!

underwent a recent update:

conky_new.png

# Conky Config File
# Quad Core and lm_sensors required
# Network interface on eth0
# Music monitoring through mpd
# Mail monitoring via Maildir
# Other scripts in ~/.conky

# Main options (alphabetically)
alignment tr
background yes
border_margin 5 
color1 cd8500 
color2 104e8b
color3 ffe303
default_color d3d3d3  
draw_outline no
draw_shades no
double_buffer yes
gap_x 10 
gap_y 5 
maximum_width 275
mail_spool /home/patrick/Mail/INBOX
minimum_size 275 400
mpd_host 192.168.0.5
mpd_port 6600
no_buffers yes
own_window yes
own_window_type desktop
own_window_transparent yes
override_utf8_locale yes
short_units yes 
total_run_times 0
update_interval 1 
use_xft yes
xftalpha 0.7
xftfont tahoma:size=7

# After TEXT is formatted on screen
TEXT
${font monaco black:size=48}${alignr}${offset -150}${time %e}
${voffset -91}${goto 145}${color1}${font verdana:size=26}${time %I:%M}$color
${voffset -21}${goto 132}${font tahoma:size=8}${time %B}$font


${goto 85}${color1}Mail ${color2}${hr 1}$color
${goto 95}${new_mails} in INBOX

${goto 85}${color1}Weather ${color2}${hr 1}$color
${goto 95}${execi 3600 ~/.conky/weather}

${goto 85}${color1}System ${color2}${hr 1}$color
${goto 95}cores ${voffset 5}${goto 138}${cpu cpu1} % ${goto 168}${platform coretemp.0 temp 1}° C${goto 214}${cpu cpu2} % ${goto 244}${platform coretemp.1 temp 1}° C
${voffset -17}${goto 130}${cpugraph cpu1 20,74 cd8500 104e8b}${goto 206}${cpugraph cpu2 20,74 cd8500 104e8b}
${voffset 5}${goto 138}${cpu cpu3} % ${goto 168}${platform coretemp.2 temp 1}° C${goto 214}${cpu cpu4} % ${goto 244}${platform coretemp.3 temp 1}° C
${voffset -17}${goto 130}${cpugraph cpu4 20,74 cd8500 104e8b}${goto 206}${cpugraph cpu4 20,74 cd8500 104e8b}
${goto 95}net ${voffset 5}${goto 138}${upspeedf eth0} k/s ${goto 214}${downspeedf eth0} k/s
${voffset -17}${goto 130}${upspeedgraph eth0 20,74 cd8500 104e8b} ${goto 206}${downspeedgraph eth0 20,74 cd8500 104e8b}
${goto 95}ram ${goto 130}${membar 3}
${goto 95}swap ${goto 130}${swapbar 3}

${goto 85}${color1}Processes  ${color2}${hr 1}$color
${goto 95}${color3}${top name 1} ${goto 200}${top cpu 1} ${alignr}${top mem 1}$color
${goto 95}${top name 2} ${goto 200}${top cpu 2} ${alignr}${top mem 2}
${goto 95}${top name 3} ${goto 200}${top cpu 3} ${alignr}${top mem 3}

${goto 95}${color3}${top_mem name 1} ${goto 200}${top_mem cpu 1} ${alignr}${top_mem mem 1}$color
${goto 95}${top_mem name 2} ${goto 200}${top_mem cpu 2} ${alignr}${top_mem mem 2}
${goto 95}${top_mem name 3} ${goto 200}${top_mem cpu 3} ${alignr}${top_mem mem 3}

${goto 85}${color1}Drives  ${color2}${hr 1}$color
${goto 95}root/ ${goto 130}${fs_bar 3 /}
${goto 95}home/ ${goto 130}${fs_bar 3 /home/}
${if_existing /mnt/backup_daily/.lock}${goto 95}backup/ ${goto 130}${fs_bar 3 /mnt/backup_daily}$endif
${if_existing /mnt/backup_monthly/.lock}${goto 95}backup/ ${goto 130}${fs_bar 3 /mnt/backup_monthly}$endif


${font tahoma:size=11}${goto 75}${color1}${mpd_title}${font tahoma:size=9}$color
${goto 95}${mpd_bar 3}$font
${goto 95}${mpd_artist}
${goto 95}${mpd_album}

EDIT: stupidly put link to local hostname vs external site name.  "it's working for me..." *facepalm*

Last edited by brisbin33 (2009-04-21 22:35:04)

Offline

#267 2009-04-22 03:25:48

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: conky configs and screenshots!

Just changed mine after probably a year being the same, great ideas from this thread!

conky042109.png

own_window_title conkystats

use_xft yes
#xftfont HandelGotD:size=11
xftfont HeldustryFTVBasic Demi:size=9.5
override_utf8_locale yes
xftalpha 1

update_interval 1
draw_shades no
default_shade_color ff0000
draw_outline no
default_outline_color 151515
draw_borders no
stippled_borders no
border_margin 0
border_width 1

no_buffers yes
uppercase no
double_buffer yes
use_spacer none

default_color 303030
color1 424242
color2 000000
color3 ffffff
color4 ff9600

own_window yes
own_window_colour 280808 #121212
own_window_transparent yes
own_window_type dock
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
background yes
alignment bottom_right
gap_x 40
gap_y 5
minimum_size 1550 0



TEXT
${color3}/:${goto 50}${fs_bar 9,30 /}  ${fs_free /} / ${fs_free_perc /}%${goto 190}/stuff:${goto 240}${fs_bar 9,30 /media/stuff}  ${fs_free /media/stuff} / ${fs_free_perc /media/stuff}% ${goto 390}down: ${downspeed eth0}kB/s ${goto 495}up: ${upspeed eth0}kB/s ${goto 600}cpu: ${cpubar 9,90 ff9600 rrf333} ${goto 745}mem: ${membar 9,90 ff9600 rrf333} ${goto 890}swap: ${swapbar 9,75 ff9600 rrf333} ${goto 1020}Q6600${goto 1065}@ ${hwmon 0 temp 1}C${goto 1120}GPU @ ${execi 30 nvidia-settings -q gpucoretemp |grep '):' | cut -c 40-41}C ${goto 1200}${mpd_artist} - ${mpd_title}
/home:${goto 50}${fs_bar 9,30 /home}  ${fs_free /home} / ${fs_free_perc /home}%${goto 190}/myth:${goto 240}${fs_bar 9,30 /media/myth}  ${fs_free /media/myth} / ${fs_free_perc /media/myth}%${goto 390}${downspeedgraph eth0 10,90 ff0000,525252}${goto 495}${upspeedgraph eth0 10,90 ff0000,525252} ${goto 600}cpu hog: ${top name 1}${goto 745}mem hog: ${top_mem name 1}${goto 890}processes:${running_processes}/${processes}${goto 1020}P5K-E ${goto 1065}@ ${hwmon 0 temp 2}C${goto 1120}${hwmon 0 fan 2}RPM ${goto 1200}${mpd_elapsed} ${mpd_bar 9,100} ${mpd_length}${goto 1375}|    gmail: ${texeci 90 python /home/YOURUSER/.conky/gmail.py}

Offline

#268 2009-04-22 16:58:01

capnmoney
Member
From: ~
Registered: 2008-10-17
Posts: 108
Website

Re: conky configs and screenshots!

Question:  How can I display the size of a folder as a percentage?  I'd like to show how much of my /Dropbox/ folder is using of my available space.  Can I do something like du -sh ~/Dropbox, then grab just the number, and then divide that number by my available space with dropbox?  How do I go about grabbing that number from du?  Also, is there an easier way to do this that I'm missing?

Thanks for any help

Offline

#269 2009-04-22 17:23:47

Wra!th
Member
Registered: 2009-03-31
Posts: 342

Re: conky configs and screenshots!

capnmoney wrote:

Question:  How can I display the size of a folder as a percentage?  I'd like to show how much of my /Dropbox/ folder is using of my available space.  Can I do something like du -sh ~/Dropbox, then grab just the number, and then divide that number by my available space with dropbox?  How do I go about grabbing that number from du?  Also, is there an easier way to do this that I'm missing?

Thanks for any help

VALUE=$(du -sh ~/Dropbox | awk '{print $1}' | sed s/.$//)

MacGregor DESPITE THEM!
7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00

Offline

#270 2009-04-22 18:37:35

capnmoney
Member
From: ~
Registered: 2008-10-17
Posts: 108
Website

Re: conky configs and screenshots!

VALUE=$(du -sh ~/Dropbox | awk '{print $1}' | sed s/.$//)

I may need more handholding that this.  I'm still getting stuck trying to divide this by 23.04 and getting it to display in conky.  Any further ideas?

Offline

#271 2009-04-22 21:30:18

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: conky configs and screenshots!

capnmoney wrote:
VALUE=$(du -sh ~/Dropbox | awk '{print $1}' | sed s/.$//)

I may need more handholding that this.  I'm still getting stuck trying to divide this by 23.04 and getting it to display in conky.  Any further ideas?

you should script the behavior, then call the script in conky.

${execi 30 /path/to/dropbox_calc}
#!/bin/bash
# dropbox_calc
#
###

LIM=2304000      # limit in KB, whatever it is...
SIZE=$(du -s ~/Dropbox | awk '{print $1}') # returns size in KB


PERC=$(expr $SIZE \* 100 / $LIM) # returns percent used

echo "$PERC % used"  # change as desired

exit 0

this /should/ work; but it is untested.  run it in a terminal first if you get a good number then put the conky line in.

i use dropbox too so i may implement this as well.  smile

EDIT: note, du -sh wold return something like 23M, which requires further fiddling to work out a percent.  du -s returns KB, define your limit in KB and it's much simpler math to get your %.

Last edited by brisbin33 (2009-04-22 21:33:10)

Offline

#272 2009-04-22 22:01:18

capnmoney
Member
From: ~
Registered: 2008-10-17
Posts: 108
Website

Re: conky configs and screenshots!

tMWticQ

Works like a charm.  Thanks Wra!th and brisbin (I think I'm using your daemon for dropbox, so thanks for that too).  As you can see in the shot I've used up a dangerous 6% of my dropbox so I need to keep an eye on it at all times. wink

#avoid flicker

double_buffer yes



#own window to run simultanious 2 or more conkys

own_window  yes

own_window_transparent yes

own_window_type desktop

own_window_hints undecorate,sticky,skip_taskbar,skip_pager



#borders

draw_borders no

border_margin 1



#shades

draw_shades no



#position

gap_x 1 

gap_y 0
alignment top_middle


#behaviour

update_interval 1



#colour

default_color  afafaf

#default_shade_color 000000

own_window_colour 222222



#font

use_xft yes

xftfont Dejavu sans:pixelsize=12

#to prevent window from moving

use_spacer no

#minimum_size 1670 25


TEXT
Kernel:  ${color e0e0e0}${kernel}${color} | CPU:  ${color e0e0e0}${cpu}% ${color} RAM:  ${color e0e0e0}${memperc}%${color}  |  Up:  ${color e0e0e0}${uptime}${color} | Wifi:  ${color e0e0e0}${wireless_essid eth0} @ ${wireless_link_qual_perc eth0}%${color} | Battery:  ${color e0e0e0}${battery}${color} | Temp:  ${color e0e0e0}${acpitemp}˚ C${color} | Used - /:  ${color e0e0e0}${fs_used_perc /}%${color}  Home:  ${color e0e0e0}${font}${fs_used_perc /home}%${color}  Drop:  ${color e0e0e0}${execi 30 ~/.scripts/drop.sh}%

Offline

#273 2009-04-25 01:11:08

mythus
Member
From: MS Gulf Coast
Registered: 2008-05-15
Posts: 509
Website

Re: conky configs and screenshots!

Greetings,

I am pleased to present my first ever conky script.

Conky
th_conky1.png

Conky in Full Screen
th_conky2.png

Conky Code

# Use Xft?
use_xft yes
xftfont cure:size=6

# Update interval in seconds
update_interval 1

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

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

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

# Minimum size of text area
minimum_size 280 5

maximum_width 187

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 0

# border margins
border_margin 5

# border width
border_width 0

# Default colors and also border colors
default_color 4d4d4d
#default_shade_color white
#default_outline_color black
own_window_colour 262626

# 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 1180
gap_y 24

# Subtract file system buffers from used memory?
no_buffers yes

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

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

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

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

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

#Email:
#${pop3_unseen  **SERVER NAME**  **USERNAME**  **PASSWORD**} new messages

TEXT

${offset 100}${alignc}${font openlogos-archupdate:size=40}${color blue}B${font}${color}
${color FFFFFF}${font DejaVu Sans:style=Bold:pixelsize=25}${alignc}${time %r}${font Snap.se:size=8}
${color FFFFFF}${alignr}${time %A, %B %e %G}
${color FFFFFF}${font Aerial:style=Bold:pixelsize=12}CALENDAR${font Snap.se:size=8}${hr 1}
${color FFFFFF}${font DejaVu Sans Mono :size=12}${pre_exec cal}
${color FFFFFF}${font DejaVu Sans Mono :size=6}${pre_exec cal -3 | cut -c23-44 --complement}

${color FFFFFF}${font Aerial:style=Bold:pixelsize=12}WEATHER${font Snap.se:size=8}${hr 1}
${color FFFFFF}${alignr 43}${font DejaVu Sans:size=12}${execi 3600 python ~/scripts/conkyForecast.py --location=USOH0311 --datatype=CN}${font}
${color FFFFFF}${alignr 43}${font Weather:size=46}${execi 3600 python ~/scripts/conkyForecast.py --location=USOH0311 --datatype=WF -i}${font} 
${color EE6363}${voffset -30}${font Aerial:style=Bold:pixelsize=12}${execi 3600 python ~/scripts/conkyForecast.py --location=USOH0311 --datatype=HT -i}${font}

${color 00A54E}Low: ${color FFFFFF}${execi 3600 python ~/scripts/conkyForecast.py --location=USOH0311 --datatype=LT -i --startday=1 --endday=1} ${font DejaVu Sans Mono:size=6}» ${font}${alignr}${color 00A54E}High: ${color FFFFFF}${execi 3600 python ~/scripts/conkyForecast.py --location=USOH0311 --datatype=HT -i --startday=1 --endday=1}
${color 00AEED}Conditions: ${color FFFFFF}${alignr}${execi 3600 python ~/scripts/conkyForecast.py --location=USOH0311 --datatype=CC -i}
${color 00AEED}Wind: ${color FFFFFF}${alignr}${execi 3600 python ~/scripts/conkyForecast.py --location=USOH0311 --datatype=WS -i}
${color 00AEED}Humidity: ${color FFFFFF}${alignr}${execi 3600 python ~/scripts/conkyForecast.py --location=USOH0311 --datatype=HM -i}
${color 00AEED}Chance of Precipitation: ${color FFFFFF}${alignr}${execi 3600 python ~/scripts/conkyForecast.py --location=USOH0311 --datatype=PC -i}
${color FAF519}Sun Rise: ${color FFFFFF}}${execi 3600 python ~/scripts/conkyForecast.py --location=USOH0311 --datatype=SR -i --startday=1 --endday=1} ${font DejaVu Sans Mono:size=6}» ${font}${alignr}${color FAF519}Sun Set:${color FFFFFF}${execi 3600 python ~/scripts/conkyForecast.py --location=USOH0311 --datatype=SS -i --startday=1 --endday=1}

${color FFFFFF}${font Aerial:style=Bold:pixelsize=12}FORECAST${font Snap.se:size=8}${hr 1}
${color FF0000}${alignr}${execi 3600 python ~/scripts/conkyForecast.py --location=USOH0311 --datatype=DW -i --startday=1 --endday=1}
${color 00A54E}Low: ${color FFFFFF}${execi 3600 python ~/scripts/conkyForecast.py --location=USOH0311 --datatype=LT -i --startday=2 --endday=2} ${font DejaVu Sans Mono:size=6}» ${font}${alignr}${color 00A54E}High: ${color FFFFFF}${execi 3600 python ~/scripts/conkyForecast.py --location=USOH0311 --datatype=HT -i --startday=2 --endday=2}
${color FAF519}Sun Rise: ${color FFFFFF}${execi 3600 python ~/scripts/conkyForecast.py --location=USOH0311 --datatype=SR -i --startday=2 --endday=2} ${font DejaVu Sans Mono:size=6}» ${font}${alignr}${color FAF519}Sun Set:${color FFFFFF}${execi 3600 python ~/scripts/conkyForecast.py --location=USOH0311 --datatype=SS -i --startday=2 --endday=2}

${color FF0000}${alignr}${execi 3600 python ~/scripts/conkyForecast.py --location=USOH0311 --datatype=DW -i --startday=2 --endday=2}
${color 00A54E}Low: ${color FFFFFF}${execi 3600 python ~/scripts/conkyForecast.py --location=USOH0311 --datatype=LT -i --startday=3 --endday=3} ${font DejaVu Sans Mono:size=6}» ${font}${alignr}${color 00A54E}High: ${color FFFFFF}${execi 3600 python ~/scripts/conkyForecast.py --location=USOH0311 --datatype=HT -i --startday=3 --endday=3}
${color FAF519}Sun Rise: ${color FFFFFF}${execi 3600 python ~/scripts/conkyForecast.py --location=USOH0311 --datatype=SR -i --startday=3 --endday=3} ${font DejaVu Sans Mono:size=6}» ${font}${alignr}${color FAF519}Sun Set:${color FFFFFF}${execi 3600 python ~/scripts/conkyForecast.py --location=USOH0311 --datatype=SS -i --startday=3 --endday=3}

Now I got the base from Sid's conky script, earlier in this thread. However all that I really kept was the basic configuration with some changes, and the weather forecast with changes and additions. I added the lovely calendar from Inxsible's script. If only I could get the current day to highlight on the calendar...

This conky does just what I want it to do, and nothing more. It shows the time, date, calendar, current weather, and next two days forecasts. It doesn't show any cpu usages, hardware or kernel info, or whatever.


Legends of Nor'Ova - role playing community devoted to quality forum-based and table-top role play, home of the Legends of Nor'Ova Core Rule Book and Legends of Nor'Ova: Saga of Ablution steam punk like forum based RPG

Offline

#274 2009-04-26 19:19:12

riivo
Member
Registered: 2008-08-25
Posts: 112

Re: conky configs and screenshots!

2009-04-26-211551_206x821_scrot.png

use_xft yes
xftfont DejaVu Sans:size=8

update_interval 1
total_run_times 0
double_buffer yes

own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

minimum_size 185 0
maximum_width 185

draw_shades no
default_color white

alignment top_right
gap_x 12
gap_y 12

#no_buffers no
net_avg_samples 2

override_utf8_locale yes

TEXT
SYSTEM ${hr 2}
${voffset 2}${font OpenLogos:size=16}B${font}   Kernel:  ${alignr}${kernel}
${font StyleBats:size=16}A${font}   CPU: ${cpu cpu1}% ${alignr}${cpubar cpu1 8,60}
${font StyleBats:size=16}g${font}   RAM: $memperc% ${alignr}${membar 8,60}
${font StyleBats:size=16}j${font}   SWAP: $swapperc% ${alignr}${swapbar 8,60}
${font Webdings:size=16}~${font}  Battery: ${battery_percent BAT0}% ${alignr}${battery_bar 8,60 BAT0}
${font StyleBats:size=16}q${font}   Uptime: ${alignr}${uptime}

DATE ${hr 2}
${alignc 35}${font Arial Black:size=26}${time %H:%M}${font}
${alignc}${time %A %d %B}
${voffset 4}${font RsbillsDng:size=14}O${font}${font DejaVu Sans Mono:size=8}${execpi 3600 DJS=`date +%_d`; cal -m | sed '1d' | sed '/./!d' | sed 's/$/                     /' | fold -w 21 | sed -n '/^.\{21\}/p' | sed 's/^/${alignc} /' | sed /" $DJS "/s/" $DJS "/" "'${color FCAF3E}'"$DJS"'${color0}'" "/}${font}
${voffset 4}${font Webdings:size=14}j${font}   Home: ${alignr}${execi 3600 let diff=$(($(date -d'2009-06-15 23:10 EEST' +%s) - $(date +%s))); printf "%01dd %01dh" $((diff/86400)) $((diff/3600%24))}

HD ${hr 2}
${voffset 4}${font Pie charts for maps:size=14}7${font}   ${voffset -5}Root:
${voffset 4}${fs_used /}/${fs_size /} ${alignr}${fs_bar 8,60 /}
${font Pie charts for maps:size=14}7${font}   ${voffset -5}Home:
${voffset 4}${fs_used /home}/${fs_size /home} ${alignr}${fs_bar 8,60 /home}

NETWORK ${hr 2}
${if_existing /proc/net/route wlan0}
${voffset -6}${font PizzaDude Bullets:size=14}O${font}   Up: ${upspeed wlan0} kb/s ${alignr}${upspeedgraph wlan0 8,60 F57900 FCAF3E}
${voffset 4}${font PizzaDude Bullets:size=14}U${font}   Down: ${downspeed wlan0} kb/s ${alignr}${downspeedgraph wlan0 8,60 F57900 FCAF3E}
${voffset 4}${font PizzaDude Bullets:size=14}N${font}   Upload: ${alignr}${totalup wlan0}
${voffset 4}${font PizzaDude Bullets:size=14}T${font}   Download: ${alignr}${totaldown wlan0}
${voffset 4}${font PizzaDude Bullets:size=14}Z${font}   Signal: ${wireless_link_qual wlan0}% ${alignr}${wireless_link_bar 8,60 wlan0}
${voffset 4}${font PizzaDude Bullets:size=14}a${font}   Local Ip: ${alignr}${addr wlan0}
${voffset 4}${font PizzaDude Bullets:size=14}b${font}   Public Ip: ${alignr}${execi 3600 curl http://riivo.eu/php/ip.php}
${else}${if_existing /proc/net/route eth0}
${voffset -6}${font PizzaDude Bullets:size=14}O${font}   Up: ${upspeed eth0} kb/s ${alignr}${upspeedgraph eth0 8,60 F57900 FCAF3E}
${voffset 4}${font PizzaDude Bullets:size=14}U${font}   Down: ${downspeed eth0} kb/s ${alignr}${downspeedgraph eth0 8,60 F57900 FCAF3E}
${voffset 4}${font PizzaDude Bullets:size=14}N${font}   Upload: ${alignr}${totalup eth0}
${voffset 4}${font PizzaDude Bullets:size=14}T${font}   Download: ${alignr}${totaldown eth0}
${voffset 4}${font PizzaDude Bullets:size=14}a${font}   Local Ip: ${alignr}${addr eth0}
${voffset 4}${font PizzaDude Bullets:size=14}b${font}   Public Ip: ${alignr}${execi 3600 curl http://riivo.eu/php/ip.php}
${endif}${else}
${font PizzaDude Bullets:size=14}4${font}   Network Unavailable
${endif}
NOTIFICATIONS ${hr 2}
${voffset -8}${font Martin Vogel's Symbols:size=19}B${font}  New e-mails: ${alignr} ${execi 120 conkyEmail -m IMAP -s imap.googlemail.com -u <user> -p <password> -e}
${voffset 4}${font PizzaDude Bullets:size=14}B${font}   Packages: ${alignr} ${execi 10800 sh /home/riivo/scripts/pmupdate.sh}

MPD ${hr 2}
${voffset 4}${font Webdings:size=14}U${font}   Status: $alignr$mpd_status
${voffset 4}${font Webdings:size=14}4${font}   Song: $alignr$mpd_artist
${voffset 4}$alignr$mpd_title
${font Martin Vogel's Symbols:size=16}U${font}    Elapsed:
${voffset 4}$mpd_elapsed/$mpd_length $alignr${mpd_bar 8,120}

Edit:
I'll include pmupdate.sh

#!/bin/sh

sudo pacman -Sy > /dev/null

output=`pacman -Qu`

numofup=`echo "$output" | grep Targets | sed 's/Targets (\([0-9]*\).*/\1/'`

if [ -n "$numofup" ]; then

    sizeofup=`echo "$output" | grep "Total Installed Size" | cut -d ':' -f 2 | sed 's/^ *//'`

    echo "$numofup ($sizeofup)"

else

    echo "up-to-date"

fi

Last edited by riivo (2009-04-26 19:21:53)

Offline

#275 2009-04-29 12:02:12

ichigo
Member
Registered: 2009-03-27
Posts: 7

Re: conky configs and screenshots!

My conkyrc

1241006163999.png

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
background yes
double_buffer yes
use_spacer none
update_interval 5
text_buffer_size 512

# Use Xft?
use_xft yes
# Xft font when Xft is enabled
xftfont ArabBruD:pixelsize=11
font ArabBruD:size=11
# Text alpha when using Xft
xftalpha 0.7
#Case - set to yes if you want all text to be in uppercase
uppercase no
#Colour
default_color white

#Borders
#draw_shades used to be yes
draw_shades yes
default_outline_color black
default_shade_color black
#amplifies text if yes
draw_outline no 
draw_borders no
stippled_borders 3
border_margin 9
border_width 10
draw_graph_borders no
maximum_width 260
minimum_size 260
#Placement
alignment top_right
gap_x 4
gap_y 150

#mpd
mpd_host localhost
mpd_port 6600

cpu_avg_samples 2

TEXT
${alignc 40}${font ArabBruD:size=30}${time %H:%M}${font}
$alignc${color white}${time %A %d %B %Y}

${color 729FCF}Kernel: $font${color white}$kernel${color black}$hr   
    ${color 729FCF}Depuis: $alignr${color white}$uptime
    ${color 729FCF}Chargement $alignr${color white}$loadavg
    ${cpugraph 0 729fcf 000000}
    ${color 729FCF}Core 1${color white}$alignr${freq_dyn_g cpu0}Ghz - ${cpu cpu0}%
    ${color 729FCF}Core 2${color white}$alignr${freq_dyn_g cpu1}Ghz - ${cpu cpu1}%

${color white}Consommation${color black}$hr
  ${color 729FCF}Ram${color white}$alignr$mem/$memmax - $memperc%
  ${color 729FCF}Arch${color white}$alignr${fs_used /}/${fs_size /} - ${fs_free_perc /}%
  ${color 729FCF}Xp${color white}$alignr${fs_used /media/Windows}/${fs_size /media/Windows} - ${fs_free_perc /media/Windows}%
  ${color 729FCF}Swap${color white}$alignr$swapperc%
  ${color white}${diskiograph 729fcf 000000}
  ${voffset -25}${alignc}${color BED2E8}Disk I/O:${color white} $diskio

${color 729FCF}Top 5 ${color white}CPU${color black}$hr${color white} 
    ${top name 1}$alignr${top cpu 1}%
    ${top name 2}$alignr${top cpu 2}%
    ${top name 3}$alignr${top cpu 3}%
    ${top name 4}$alignr${top cpu 4}%
    ${top name 5}$alignr${top cpu 5}%

${color 729FCF}Top 5 ${color white}RAM${color black}$hr${color white} 
    ${top_mem name 1}$alignr${top_mem mem 1}%
    ${top_mem name 2}$alignr${top_mem mem 2}%
    ${top_mem name 3}$alignr${top_mem mem 3}%
    ${top_mem name 4}$alignr${top_mem mem 4}%
    ${top_mem name 5}$alignr${top_mem mem 5}%

${color 729FCF}Total${color white}: ${Processes}$alignr${color 729FCF}En cours${color white}: ${running_processes}

${color white}Internet${color black}$hr
    ${color 729FCF}Download:${color white}$alignr${downspeed eth0}ko/s
    ${color 729FCF}Total:${color white}$alignr${totaldown eth0}
    ${color 729FCF}Upload:${color white}$alignr${upspeed eth0}ko/s
    ${color 729FCF}Total:${color white}$alignr${totalup eth0}
    ${color 729FCF}IP${color white}$alignr${addr eth0}

${color white}Tâches à faire${color black}$hr

${color white}${execpi 600 cat ~/todo}

${color white}Mise à Jour${color black}$hr

${color white}${execpi 1800 python /home/ichigo/.notify.py}

${if_running mpd}${color 729FCF}Sonata${color black}$hr${color white} 
$mpd_vol% Volume$alignr::: $mpd_status :::
$alignc${color 729FCF}$mpd_artist${color white}
$alignc}$mpd_title
${color 729FCF}$alignc}$mpd_album${endif}
$font${color black}$hr

Offline

Board footer

Powered by FluxBB