Author |
Message |
01micko

Joined: 11 Oct 2008 Posts: 8670 Location: qld
|
Posted: Thu 25 Dec 2008, 04:31 Post subject:
|
|
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......
_________________ Puppy Linux Blog - contact me for access
|
Back to top
|
|
 |
zigbert

Joined: 29 Mar 2006 Posts: 6541 Location: Valåmoen, Norway
|
Posted: Thu 25 Dec 2008, 05:08 Post subject:
|
|
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 ?
_________________ Stardust resources
|
Back to top
|
|
 |
wow
Joined: 29 Jun 2006 Posts: 1036 Location: Peru
|
Posted: Thu 25 Dec 2008, 22:29 Post subject:
|
|
This is how I added pmusic's info to conky in my puplet(lines from my conkyrc file):
Code: | ${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: | 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.
_________________

|
Back to top
|
|
 |
wosifat
Joined: 29 Jun 2008 Posts: 104 Location: Madison Heights, VA
|
Posted: Fri 26 Dec 2008, 10:51 Post subject:
|
|
Groovy, but haven't really grown to like Pmusic much yet. Would it be too much to ask for one for VLC?
|
Back to top
|
|
 |
DaveS

Joined: 09 Oct 2008 Posts: 3726 Location: UK
|
Posted: Sun 28 Dec 2008, 06:41 Post subject:
|
|
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!
|
Back to top
|
|
 |
trapster

Joined: 28 Nov 2005 Posts: 2106 Location: Maine, USA
|
Posted: Sun 28 Dec 2008, 11:13 Post subject:
|
|
Try adding the path to your mail. ie:
Code: | ${new_mails /yourpathto/Mail/INBOX} |
or for pop3 mail:
Code: | ${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
|
Back to top
|
|
 |
DaveS

Joined: 09 Oct 2008 Posts: 3726 Location: UK
|
Posted: Sun 28 Dec 2008, 14:09 Post subject:
|
|
Thanks Trapster, that did it. Here is a screenshot of the conky display I am currently using
and here is the relevant part of my conkyrc
Code: | 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!
|
Back to top
|
|
 |
DaveS

Joined: 09 Oct 2008 Posts: 3726 Location: UK
|
Posted: Sun 28 Dec 2008, 14:37 Post subject:
|
|
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!
|
Back to top
|
|
 |
Gorilla no baka

Joined: 26 Oct 2008 Posts: 234 Location: UK
|
Posted: Thu 05 Mar 2009, 04:46 Post subject:
Re: Conky 1.6.1 Subject description: System Monitor |
|
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!!
_________________
I'M IN MY OWN WORLD. IT'S OK, THEY KNOW ME HERE..!!!
|
Back to top
|
|
 |
01micko

Joined: 11 Oct 2008 Posts: 8670 Location: qld
|
Posted: Thu 05 Mar 2009, 04:57 Post subject:
|
|
@Gorilla no baka
user=puppy password=linux
We'll teach the Gorilla to bark!
_________________ Puppy Linux Blog - contact me for access
|
Back to top
|
|
 |
Gorilla no baka

Joined: 26 Oct 2008 Posts: 234 Location: UK
|
Posted: Thu 05 Mar 2009, 11:19 Post subject:
|
|
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
_________________
I'M IN MY OWN WORLD. IT'S OK, THEY KNOW ME HERE..!!!
|
Back to top
|
|
 |
Wolf Pup
Joined: 27 Apr 2006 Posts: 637
|
Posted: Sat 30 May 2009, 13:06 Post subject:
|
|
Conky updated to 1.7.0.
_________________
Visit The Repository - Helpful and hard-to-find treats for Puppy 3.
Click Here for Puppy Support Chat, + Helpful Links.
|
Back to top
|
|
 |
Wolf Pup
Joined: 27 Apr 2006 Posts: 637
|
Posted: Fri 12 Jun 2009, 14:13 Post subject:
|
|
Conky updated to 1.7.1.1
_________________
Visit The Repository - Helpful and hard-to-find treats for Puppy 3.
Click Here for Puppy Support Chat, + Helpful Links.
|
Back to top
|
|
 |
DC

Joined: 30 Apr 2006 Posts: 361 Location: Maidenhead, England
|
Posted: Sun 14 Jun 2009, 12:12 Post subject:
|
|
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 )
DC
|
Back to top
|
|
 |
cklammer

Joined: 26 Apr 2008 Posts: 28 Location: Abu Dhabi, United Arab Emirates
|
Posted: Thu 31 Dec 2009, 01:46 Post subject:
1.7.11 overwrites existing .conkyrc |
|
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 )
DC |
It happened to me, too ....
Can one of the administrators or the OP be troubled to add a warning about this to the OP, please?
|
Back to top
|
|
 |
|