Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[TIP] Pimp my Conky.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
likewhoa
l33t
l33t


Joined: 04 Oct 2006
Posts: 743
Location: Brooklyn, New York

PostPosted: Thu Feb 01, 2007 2:06 pm    Post subject: [TIP] Pimp my Conky. Reply with quote

ok, here is my .conkyrc which is tweaked to show some Gentoo related information for better screenshots :)

screenshot image
http://ocidb.com/displayimage.php?album=136&pos=8

configuration file and scripts
http://weboperative.com/scripts/conky.tgz

NOTE:
before running this .conkyrc configuration please review and edit as needed for compatibility with your system paths.

enjoy it,
likewhoa


Last edited by likewhoa on Tue Nov 13, 2007 8:40 am; edited 1 time in total
Back to top
View user's profile Send private message
yoshi314
l33t
l33t


Joined: 30 Dec 2004
Posts: 823
Location: PL

PostPosted: Sun Feb 04, 2007 11:18 am    Post subject: Reply with quote

looks interesting. i'll add some mpd-related stuff to it and check it out.

cheers.
_________________
~amd64
shrink your /usr/portage with squashfs+aufs
Back to top
View user's profile Send private message
tw04l124
Veteran
Veteran


Joined: 03 Oct 2006
Posts: 1656
Location: A t z e l, lower austria

PostPosted: Sun Feb 04, 2007 11:33 am    Post subject: Reply with quote

Thanks, looks cool.
Back to top
View user's profile Send private message
tw04l124
Veteran
Veteran


Joined: 03 Oct 2006
Posts: 1656
Location: A t z e l, lower austria

PostPosted: Sun Feb 04, 2007 12:33 pm    Post subject: Reply with quote

Also see http://www.gentoo.org/doc/en/conky-howto.xml

If i turn it to 0.2 Seconds it eats must of my cpu power, is this correct? It takes much more than gnome system-monitor
update_interval 5.0 => stable value, but it makes no sense, for the system monitor?
Back to top
View user's profile Send private message
Phenax
l33t
l33t


Joined: 10 Mar 2006
Posts: 972

PostPosted: Sun Feb 04, 2007 2:34 pm    Post subject: Reply with quote

tw04l124 wrote:
Also see http://www.gentoo.org/doc/en/conky-howto.xml

If i turn it to 0.2 Seconds it eats must of my cpu power, is this correct? It takes much more than gnome system-monitor
update_interval 5.0 => stable value, but it makes no sense, for the system monitor?


It's more, but to be honest unless you're running a low-battery desktop it shouldn't really take noticeable amounts more. Just change the update value to 5.0 if you think it will be taking too much.
Back to top
View user's profile Send private message
likewhoa
l33t
l33t


Joined: 04 Oct 2006
Posts: 743
Location: Brooklyn, New York

PostPosted: Sun Feb 04, 2007 4:38 pm    Post subject: mis-information from conky manual Reply with quote

somebody pointed out to me that two variables: $cpu, $cpubar & $cpugraph are in correct when monitoring individual cores and since
I was monitoring the overall $cpu usage and my system is at 100% load I didn't catch the incorrect reading from the sensors.
anyways, for those of you that want to monitor individual cores "i.e dual-core procs". you need to make some changes to these
variables.

setting conky to monitor individual cores:

Code:

${color steelblue}CPU0 load: ${color darkred}${cpu cpu1} ${cpubar cpu1 5 15}
${color steelblue}CPU1 load: ${color darkred}${cpu cpu2} ${cpubar cpu2 5 15}
${color steelblue}${alignc}${cpugraph cpu1 20,170 0024ff 2b3364} ${cpugraph cpu2 20,170 0024ff 2b3364}


the conky manual is kind of misleading on these two variables:

Quote:

cpu (cpuN)
CPU usage in percents. For SMP machines, the CPU number can be provided as an argument. ${cpu 0}
is the total usage, and ${cpu X} (X >= 1) are individual CPUs.

cpubar (cpu number) (height),(width)
Bar that shows CPU usage, height is bar's height in pixels. See $cpu for more info on SMP.

cpugraph (cpu number) (height),(width) (gradient colour 1) (gradient colour 2)
CPU usage graph, with optional colours in hex, minus the #. See $cpu for more info on SMP.


as you can see the manual tells you to use ${cpu X} but if you use ${cpu 1} & ${cpu 2} it's just the same as using ${cpu 0} meaning
monitor overall cpu load. same goes for $cpubar & $cpugraph..

the correct way is noted above. hope this clears up any future questions.
Back to top
View user's profile Send private message
skiidoo
n00b
n00b


Joined: 10 Feb 2007
Posts: 35
Location: Paris, France

PostPosted: Sun Nov 18, 2007 5:51 pm    Post subject: Reply with quote

Thanks likewhoa for your config.

Based on your configuration: http://dcc.azatom.info/scrot/conky/20071101_011601-conky_gentoo.png

The configuration files: http://dev.azatom.info/projects/dotfiles/wiki/conky/ConkyStart
I had some minor issues with gentoo.sh.
Back to top
View user's profile Send private message
likewhoa
l33t
l33t


Joined: 04 Oct 2006
Posts: 743
Location: Brooklyn, New York

PostPosted: Mon Nov 19, 2007 9:35 pm    Post subject: Reply with quote

skiidoo wrote:
Thanks likewhoa for your config.

Based on your configuration: http://dcc.azatom.info/scrot/conky/20071101_011601-conky_gentoo.png

The configuration files: http://dev.azatom.info/projects/dotfiles/wiki/conky/ConkyStart
I had some minor issues with gentoo.sh.


gj will merge changes, and you're welcome also :)
Back to top
View user's profile Send private message
sinisterdomestik
l33t
l33t


Joined: 28 Aug 2003
Posts: 683
Location: Texas

PostPosted: Sun Dec 23, 2007 5:14 am    Post subject: Reply with quote

omg im an idiot and cant figure out how to scale the damn thing down and its driving me CRAZY!!!!!!!!

/EDIT

and for us idiots out here..where is the path we are copying those script files to?
_________________
Thou shalt NEVER speak of removing thine Linux
Back to top
View user's profile Send private message
Naib
Advocate
Advocate


Joined: 21 May 2004
Posts: 4200
Location: Removed by Neddy

PostPosted: Sun Dec 23, 2007 12:01 pm    Post subject: Reply with quote

line 235

Code:

{color0}Gentoo ${color3}${execi 43200 ~/.conky/scripts/gentoo.sh version}  ${color0}Profile ${color3}${execi 43200 ls -ld /etc/make.profile | cut -d ' ' -f 11 | xargs basename}  ${color0}Portage ${color3}${execi 43200 ~/.conky/scripts/gentoo.sh portage}  ${color0}GCC ${color3}${execi 43200 gcc -dumpversion}  ${color0}Glibc ${color3}${execi 43200 ~/.conky/scripts/gentoo.sh glibc}


So I guess into ~/.conky/scripts unless you edit the conkyrc to change the directory
_________________
A free press is the unsleeping guardian of every other right that free men prize; it is the most dangerous foe of tyranny. Where men have the habit of liberty, the Press will continue to be the vigilant guardian of the rights of the ordinary citizen.
Back to top
View user's profile Send private message
wolfden
Tux's lil' helper
Tux's lil' helper


Joined: 13 Oct 2004
Posts: 102
Location: Midwest

PostPosted: Sun Dec 23, 2007 1:23 pm    Post subject: Reply with quote

Got to love conky

Mine:
http://i23.photobucket.com/albums/b392/wolfpoint/conky.png

scripts and conkyrc
http://wolf911.us/conky.tar.gz

rename the conkyrc file to .conkyrc of course and you will have to change the paths to your needs. Also requires nvclock to be installed for the GPU info and mpd for the music info
Back to top
View user's profile Send private message
ps
n00b
n00b


Joined: 11 Jan 2008
Posts: 31
Location: /usr/portage

PostPosted: Sun Jan 13, 2008 8:34 am    Post subject: Reply with quote

I like my conky small and simple:
Code:
double_buffer yes
background yes
update_interval 5.0
total_run_times 0
own_window no
maximum_width 323
use_xft yes
override_utf8_locale no
xftfont Bitstream Vera Sans Mono:bold:size=11
draw_shades no
draw_outline no
draw_borders no
uppercase no
use_spacer no
border_margin 0
alignment top_right
gap_x 10
gap_y 40
no_buffers yes
cpu_avg_samples 2
net_avg_samples 2
mail_spool /var/mail/<username>
default_color lavender
color0 chartreuse2
color1 LightBlue3
TEXT
${color1}CPU$color $cpu%   ${color1}RAM$color $memperc%   ${color1}Swap$color $swapperc%  ${color1}${alignr}Entropy $color${entropy_avail}
${color1}CPU${color0} ${exec cat /sys/class/hwmon/hwmon0/device/temp1_input | sed "s/\(..\)\(.\)../\1\.\2/"}C  ${color1}SYS${color0} ${exec cat /sys/class/hwmon/hwmon0/device/temp2_input | sed "s/\(..\)\(.\)../\1\.\2/"}C  ${color1}FAN${color0} ${exec cat /sys/class/hwmon/hwmon0/device/fan1_input}  ${color1}${alignr}Eth0 ${texeci 10 silentping.sh 192.168.2.1 "up" "down"}${if_existing /home/phil/.status/192.168.2.1.up}${color0}+++$else${color red}---$endif
${color1}Audacious $color${audacious_status} - ${audacious_title 17} ${color1}${alignr}Mail$color $mails
${color1}${tcp_portmon 32768 61000 rhost 0} ${alignr} ${tcp_portmon 32768 61000 rservice 0}


The silentping.sh script (I think it's from gentoo-wiki):
Code:
#!/bin/bash
STATUS="$(ping $1 -c 1 -w 2 | grep packets | sed "s/^.*tted, //;s/1/$2/;s/0/$3/;s/ re.*$//")"
if [ ! -d ~/.status ]; then mkdir ~/.status; fi
if [ "$STATUS" == "$2" ]; then
  if [ -f ~/.status/$1.$3 ]; then rm ~/.status/$1.$3; fi
  else
    if [ -f ~/.status/$1.$2 ]; then rm ~/.status/$1.$2; fi
  fi
if [ ! -f ~/.status/$1.$STATUS ]; then touch ~/.status/$1.$STATUS; fi

ps
_________________
ps
Looking forward -->
Back to top
View user's profile Send private message
ElemonGW
n00b
n00b


Joined: 25 Dec 2007
Posts: 3

PostPosted: Fri Jan 18, 2008 11:16 pm    Post subject: Re: [TIP] Pimp my Conky. Reply with quote

likewhoa wrote:
ok, here is my .conkyrc which is tweaked to show some Gentoo related information for better screenshots :)

screenshot image
http://ocidb.com/displayimage.php?album=136&pos=8

configuration file and scripts
http://weboperative.com/scripts/conky.tgz

NOTE:
before running this .conkyrc configuration please review and edit as needed for compatibility with your system paths.

enjoy it,
likewhoa


Where have you found uprecords? It is needed by the uprecord script but I haven't found a program with that name anywhere.
Back to top
View user's profile Send private message
likewhoa
l33t
l33t


Joined: 04 Oct 2006
Posts: 743
Location: Brooklyn, New York

PostPosted: Sat Jan 19, 2008 7:51 am    Post subject: Re: [TIP] Pimp my Conky. Reply with quote

ElemonGW wrote:
likewhoa wrote:
ok, here is my .conkyrc which is tweaked to show some Gentoo related information for better screenshots :)

screenshot image
http://ocidb.com/displayimage.php?album=136&pos=8

configuration file and scripts
http://weboperative.com/scripts/conky.tgz

NOTE:
before running this .conkyrc configuration please review and edit as needed for compatibility with your system paths.

enjoy it,
likewhoa


Where have you found uprecords? It is needed by the uprecord script but I haven't found a program with that name anywhere.


uptimed
Back to top
View user's profile Send private message
Spark25x
n00b
n00b


Joined: 26 Feb 2012
Posts: 23

PostPosted: Mon Mar 05, 2012 7:51 pm    Post subject: Reply with quote

wolfden wrote:
Got to love conky

Mine:
http://i23.photobucket.com/albums/b392/wolfpoint/conky.png

scripts and conkyrc
http://wolf911.us/conky.tar.gz

rename the conkyrc file to .conkyrc of course and you will have to change the paths to your needs. Also requires nvclock to be installed for the GPU info and mpd for the music info

Man your link for download doesnt work :(
Back to top
View user's profile Send private message
paulj
Guru
Guru


Joined: 30 Sep 2004
Posts: 342
Location: Wales, UK

PostPosted: Tue Mar 06, 2012 9:27 pm    Post subject: Reply with quote

spark666 wrote:
wolfden wrote:
Got to love conky

Mine:
http://i23.photobucket.com/albums/b392/wolfpoint/conky.png

scripts and conkyrc
http://wolf911.us/conky.tar.gz

rename the conkyrc file to .conkyrc of course and you will have to change the paths to your needs. Also requires nvclock to be installed for the GPU info and mpd for the music info

Man your link for download doesnt work :(


Did you see the dates on the thread?
Back to top
View user's profile Send private message
Spark25x
n00b
n00b


Joined: 26 Feb 2012
Posts: 23

PostPosted: Tue Mar 06, 2012 9:59 pm    Post subject: Reply with quote

paulj wrote:
Did you see the dates on the thread?

Sorry,now i noticed
Back to top
View user's profile Send private message
FrankRizz0
Guru
Guru


Joined: 29 Nov 2006
Posts: 390

PostPosted: Tue Mar 13, 2012 1:26 am    Post subject: Reply with quote

wolfden, if you're still watching this thread, could you please post a link to download your conky. PLEASE! and thank you of course!
Back to top
View user's profile Send private message
AlphaHeX
n00b
n00b


Joined: 17 Jan 2005
Posts: 60
Location: Warsaw, Poland

PostPosted: Thu Mar 15, 2012 9:25 pm    Post subject: Reply with quote

His new webpage is http://wolf911.us/wgo/
_________________
HP Pavilion HDX9494NR [Intel Core 2 Duo X9000 | 20.1" Wide SXGA+ | 8GB Memory | 120 SSD + 500 HDD 7200rpm | Blu-ray Disc / Super Multi | NVIDIA GeForce 8800M GTS]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum