Conky 1.7.1.1

Core libraries and systems
Message
Author
User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#76 Post by 01micko »

wosifat wrote:Looking at http://conky.sourceforge.net, I see that it's possible to show info on what song is currently playing in the media player, but when I tried all I can get is "MPD: 0:00 ".
I notice that it says, "must be enabled at compile." Is it, and if not, how can I, and how hard would it be?
Interesting idea for a widget. Maybe could get Pmusic shrunken and integrated into Pwidgets, Hmmmmmmmm...... :wink:
Puppy Linux Blog - contact me for access

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#77 Post by zigbert »

Pmusic keeps info about:
- Songname in /root/.pmusic/pmusic-ffmpeg_NOW_PLAYING
- Time in /root/.pmusic/pmusic-OLD_TIME

OLD_TIME is not really old. Most often 1 second behind. I could send the actual time to another file, but does it really matter ?

wow
Posts: 1052
Joined: Fri 30 Jun 2006, 00:18
Location: Peru

#78 Post by wow »

Image

This is how I added pmusic's info to conky in my puplet(lines from my conkyrc file):

Code: Select all

${if_existing /usr/bin/pmusic_conky.sh}
Pmusic ${execi 10 pmusic_conky.sh version} $alignr${execi 2 pmusic_conky.sh progress}%
${scroll 33 ${execi 3 pmusic_conky.sh info}}
${execibar 2 pmusic_conky.sh progress}
It takes info from an script. Copy and paste the whole code to a terminal window to create it:

Code: Select all

cat > /usr/bin/pmusic_conky.sh << "EOF" 
#!/bin/sh
WORKDIR="$HOME/.pmusic/tmp"
SONG="add music to playlist..."
TIME="..."
BITRATE="..."
PERCENT="0"
VERSION="...waiting..."

if [ -d $WORKDIR ];then
   if [  -f $HOME/.pmusic/pmusicrc ];then
      VERSION=`cat $HOME/.pmusic/pmusicrc | grep VERSION | sed 's/export VERSION=//g'`
   fi
   if [ "`cat $WORKDIR/pmusic-stop`" = "true" ];then
      SONG="press the play button"
   else
      if [ -f $WORKDIR/pmusic-ffmpeg_NOW_PLAYING ];then
         SONG=`cat $WORKDIR/pmusic-ffmpeg_NOW_PLAYING | head -n 1`
      fi
      if [ -f $WORKDIR/pmusic-ffmpeg_output ];then
         cat $WORKDIR/pmusic-ffmpeg_output | grep bitrate | head -n 1| sed -e 's/: /=/g' | sed -e 's/, /\n/g' | sed -e 's/ //g' | sed -e 's/00://g'> $WORKDIR/my_conky_info.txt
         . $WORKDIR/my_conky_info.txt
         BITRATE=$bitrate
         TIME=$Duration
      fi
      if [  -f $WORKDIR/pmusic-PERCENT_BAR ];then
         PERCENT=`cat $HOME/.pmusic/tmp/pmusic-PERCENT_BAR | head -n 1`
      fi
   fi
fi

case "$1" in
    info)
        echo "$SONG  $TIME  $BITRATE   "
        ;;
    progress)
	echo $PERCENT
        ;;
    version)
	echo $VERSION
        ;;
    *)
        echo $"Usage: $0 {info|progress|version}"
        ;;
esac
EOF
chmod +x /usr/bin/pmusic_conky.sh

Don't use it if you have an old computer, feel free to improve it.
[url=http://www.puppylinux.com][img]http://i.imgur.com/M4OyHe1.gif[/img][/url]

wosifat
Posts: 104
Joined: Sun 29 Jun 2008, 22:15
Location: Madison Heights, VA
Contact:

#79 Post by wosifat »

Groovy, but haven't really grown to like Pmusic much yet. Would it be too much to ask for one for VLC?

User avatar
DaveS
Posts: 3685
Joined: Thu 09 Oct 2008, 16:01
Location: UK

#80 Post by DaveS »

I have been following and using the info on this thread thanks, and a special thanks to those who take the trouble to post their config files. This is a huge help. But I am stuck now. Apparently, Conky can display the presence of unread emails using the 'new_mails' option, but I just cant figure out how to syntax it.
${colour grey}New Emails: $colour $new_mails
Stops conky from running, so I guess I am miles out. I guess a variable might be needed to tell conky where to look. I am using 4.1.1 Frugal. Can anyone help please?
Spup Frugal HD and USB
Root forever!

User avatar
trapster
Posts: 2117
Joined: Mon 28 Nov 2005, 23:14
Location: Maine, USA
Contact:

#81 Post by trapster »

Try adding the path to your mail. ie:

Code: Select all

${new_mails /yourpathto/Mail/INBOX}
or for pop3 mail:

Code: Select all

${color green}NewMail: $color${pop3_unseen host user pass}
of course, replace "host", "user" and "pass" with your own.

imap mail can be used by replacing "pop3_unseen" with "imap_unseen"
trapster
Maine, USA

Asus eeepc 1005HA PU1X-BK
Frugal install: Slacko
Currently using full install: DebianDog

User avatar
DaveS
Posts: 3685
Joined: Thu 09 Oct 2008, 16:01
Location: UK

#82 Post by DaveS »

Thanks Trapster, that did it. Here is a screenshot of the conky display I am currently using
Image

and here is the relevant part of my conkyrc

Code: Select all

TEXT
${color grey}Networking:
${color grey}IP: ${color} ${addr wlan0} ${color grey}wifi signal: ${color red} ${wireless_link_qual_perc wlan0} 
${color grey}Down:$color ${downspeed eth0} k/s - ${color grey}Up:$color ${upspeed eth0} k/s
${color #888888}${downspeedgraph wlan0 25,100 ff0000 0000ff} ${color #888888}${upspeedgraph wlan0 25,100 0000ff ff0000}
${color grey}Host: $color ${execi 180 ~/.conky_ip}
${color blue}$hr
${color grey}Processes:$color $processes
${color grey}CPU Usage:$color $cpu%
         ${color grey}${cpubar 3}
${color grey}RAM Usage:$color $mem/$memmax - $memperc% 
         ${color grey}${membar 3}
${color grey}Swap Used:$color $swap/$swapmax - $swapperc% 
         ${color grey}${swapbar 3}
${color grey}File systems:
/          $color${fs_free /}/${fs_size /}   
         ${color grey}${fs_bar 3 /}
${color red}$hr
${color grey}Uptime:   $color $uptime
${color #ddd}Battery:  $color ${battery}
${color green}$hr$color
$sysname $kernel on $machine
${color grey}New Mail:${color red} ${new_mails /root/.mozilla/default/r3y1skkw.slt/Mail/pop.freeuk.com/Inbox}
${color yellow}$hr 
Spup Frugal HD and USB
Root forever!

User avatar
DaveS
Posts: 3685
Joined: Thu 09 Oct 2008, 16:01
Location: UK

#83 Post by DaveS »

This solves a long term irritation I have with Seamonkey. I leave my email prog running minimised all the time, and have it set to periodically check for new mail. I have it set to play a sound when a new mail arrives, but that can be a bit sketchy on the reliability front, and of course, if I leave the area I miss it. I now have a visual indicator thanks to conky (and Trapster). I should change conkyrc so that the email indicator shows where my current wifi signal strength displays as this area of my screen is rarely obscured. This is great because it actually aids useability, and is not just eyecandy.........
Spup Frugal HD and USB
Root forever!

User avatar
Gorilla no baka
Posts: 234
Joined: Sun 26 Oct 2008, 05:27
Location: UK
Contact:

Re: Conky 1.6.1

#84 Post by Gorilla no baka »

Wolf Pup wrote:Note: Compiled without xdamage support.
Also, move xlock icon down, to above pupzip or conky will cover xlock icon.

For puppy3 nothing else is needed. For puppy 4 (dingo) libxcb and libidn are needed.

conky-1.6.1.pet
md5sum

-----------------------------

libxcb-1.0.pet
md5sum

libidn-0.6.10.pet
md5sum


Sorry for raising an old thread but everytime i click on one of those links it ask me for the password for

http://puppylinux.asia/

So how can i try the conky.pet please?? Do i have to register with someone or what???

Cheers!!
[img]http://i44.tinypic.com/29zdifo.jpg[/img]
[b]
[color=red]I'M IN MY OWN WORLD[/color].[/b] [color=darkred]IT'S OK, THEY KNOW ME HERE..!!![/color]

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#85 Post by 01micko »

@Gorilla no baka

user=puppy password=linux

We'll teach the Gorilla to bark!
Puppy Linux Blog - contact me for access

User avatar
Gorilla no baka
Posts: 234
Joined: Sun 26 Oct 2008, 05:27
Location: UK
Contact:

#86 Post by Gorilla no baka »

01micko wrote:@Gorilla no baka

user=puppy password=linux

We'll teach the Gorilla to bark!

here..

THere you go


http://www.youtube.com/watch?v=He82NBjJqf8
[img]http://i44.tinypic.com/29zdifo.jpg[/img]
[b]
[color=red]I'M IN MY OWN WORLD[/color].[/b] [color=darkred]IT'S OK, THEY KNOW ME HERE..!!![/color]

Wolf Pup
Posts: 637
Joined: Fri 28 Apr 2006, 01:37

#87 Post by Wolf Pup »

Conky updated to 1.7.0.
[img]http://img230.imageshack.us/img230/8595/ubd6467dp2.png[/img]
[url=http://www.tinyurl.com/54tu74]Visit The Repository[/url] - Helpful and hard-to-find treats for Puppy 3.
[url=http://www.tinyurl.com/c5a68f]Click Here for Puppy Support Chat, + Helpful Links.[/url]

Wolf Pup
Posts: 637
Joined: Fri 28 Apr 2006, 01:37

#88 Post by Wolf Pup »

Conky updated to 1.7.1.1
[img]http://img230.imageshack.us/img230/8595/ubd6467dp2.png[/img]
[url=http://www.tinyurl.com/54tu74]Visit The Repository[/url] - Helpful and hard-to-find treats for Puppy 3.
[url=http://www.tinyurl.com/c5a68f]Click Here for Puppy Support Chat, + Helpful Links.[/url]

User avatar
DC
Posts: 360
Joined: Sun 30 Apr 2006, 15:07
Location: Maidenhead, England

#89 Post by DC »

Hi,

** a friendly warning **

the conky1.7.1.1.pet will overwrite a exsisting .conkyrc file

so back up if upgrading from a previous version
( I did not :shock: )

DC

User avatar
cklammer
Posts: 28
Joined: Sat 26 Apr 2008, 14:12
Location: Abu Dhabi, United Arab Emirates

1.7.11 overwrites existing .conkyrc

#90 Post by cklammer »

DC wrote:Hi,

** a friendly warning **

the conky1.7.1.1.pet will overwrite a exsisting .conkyrc file

so back up if upgrading from a previous version
( I did not :shock: )

DC
It happened to me, too .... :roll:

Can one of the administrators or the OP be troubled to add a warning about this to the OP, please?

User avatar
UberNoob
Posts: 33
Joined: Sun 24 Jan 2010, 02:17
Location: Potsdam NY USA

update_interval

#91 Post by UberNoob »

Out of curiosity:

Is there a general guideline as to how system resource consumption changes in proportion to changes in update_interval? For example would changing the update_interval from 1.0 to 4.0 see a reduction in conky resource consumption of A: 75% B: 50% C: that depends... or D: why do you care?
Follow the misadventures of "Timmy and his new puppy"
[url]http://puppylinuxnoob.blogspot.com/[/url]
About My Puppy: 4.3.1 FULL on a DELL INSPIRON B130

linuxcbon
Posts: 1312
Joined: Thu 09 Aug 2007, 22:54

#92 Post by linuxcbon »

I like this one based on trapster's and dave's configs :

Code: Select all

background no
use_xft no
update_interval 5
total_run_times 0
own_window yes
own_window_type normal
own_window_transparent no
own_window_colour blue
double_buffer yes
minimum_size 125 5
draw_shades yes
draw_outline no
draw_graph_borders yes
default_color white
default_shade_color black
default_outline_color white
alignment top_right
gap_x 10
gap_y 60 
no_buffers yes
uppercase no
cpu_avg_samples 20
net_avg_samples 20

TEXT
$stippled_hr
$nodename - $sysname $kernel on $machine
$stippled_hr
${color lightgrey}Uptime:$color $uptime ${color lightgrey}
${color lightgrey}Load:$color $loadavg
${color lightgrey}CPU Usage:${color #cc2222} $cpu% ${cpubar}
${color lightgrey}RAM Usage:$color $mem/$memmax - $memperc% ${membar}
${color lightgrey}Swap Usage:$color $swap/$swapmax - $swapperc% ${swapbar}
${color lightgrey}Processes:$color $processes  ${color grey}Running:$color $running_processes
$stippled_hr
${color #ddd}Battery:  $color $battery
${color #ddd}CPU Temp: $color $acpitemp
${color #ddd}Fan Status:$color $acpifan
$color$stippled_hr
${color lightgrey}Networking:
${color grey}Wlan IP: ${color} ${addr wlan0} ${color grey}wifi signal: ${color red} ${wireless_link_qual_perc wlan0}
${color grey}Wired IP: ${color} ${addr eth0} ${color grey}
 Down:${color #8844ee} ${downspeed wlan0} k/s${color lightgrey} ${offset 80}Up:${color #22ccff} ${upspeed wlan0} k/s
${color #ddaa00}Port(s)${alignr}#Connections   
$color Inbound: ${tcp_portmon 1 32767 count}
 Outbound: ${tcp_portmon 32768 61000 count}
 ALL: ${tcp_portmon 1 65535 count}
${color #ddaa00}Inbound Connection ${alignr} Local Service/Port$color
 ${tcp_portmon 1 32767 rhost 0} ${alignr} ${tcp_portmon 1 32767 lservice 0}
 ${tcp_portmon 1 32767 rhost 1} ${alignr} ${tcp_portmon 1 32767 lservice 1}
 $color$stippled_hr
${color lightgrey}File systems:
 /         $color${fs_free /}/${fs_size /} ${fs_bar /}
${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}
$stippled_hr
 ${color light grey}Current Headlines:
$color ${execi 300 /root/my-applications/conky-personal/conky-rss.sh http://rss.cnn.com/rss/cnn_topstories.rss 4 2}
But it doesnt show internet addresses and ports ?
and cnn top stories ?

Pelo

Conky Puppy precise 5.4.3 (2014)

#93 Post by Pelo »

Conky 1.7.1.1 the only one running in Puppy precise 5.4.3 (2014)
Newer failed :lol:
The problem : located above my icons. Can we change that ?
Last edited by Pelo on Sat 10 May 2014, 06:04, edited 1 time in total.

Pelo

conky.conf aligment top_right is ok

#94 Post by Pelo »

alignment top_right in conky.conf :)

User avatar
666philb
Posts: 3615
Joined: Sun 07 Feb 2010, 12:27
Location: wales ... by the sea

#95 Post by 666philb »

hi pelo,

you might be intrested in this conky 1.8.1.pet for precise ... includes conky switcher http://content.wuala.com/contents/666ph ... -1.8.1.pet
Bionicpup64 built with bionic beaver packages http://murga-linux.com/puppy/viewtopic.php?t=114311
Xenialpup64, built with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331

Post Reply