Conky 1.7.1.1
@HairyWill
First, that's not Puppy. It's Arch 2008.6 i686 running on my HP Kayak XU-800. Arch has supported SMP for quite some time.
The RAM and swap bar graphs are for memory in use. The Kayak sports 1G of RAM. As for the 235MB figure, that's with a crapload of things running, including Firefox 3 with well over a dozen tabs open. And I have yet to use swap space since using Arch. On the same box running Puppy, swap usage, though not frequent, was often enough for me to question the manner in which the kernel was compiled.
The weather, uh ... "thingie" (to coin a Kaulerism) is an experiment, XSL lesson, and frivolous little extra which adds insignificant CPU load.
Matt's Draft House is nestled in the little village of Inlet, NY, near where I camp every September.
Sleep? What's sleep? I only nap.
First, that's not Puppy. It's Arch 2008.6 i686 running on my HP Kayak XU-800. Arch has supported SMP for quite some time.
The RAM and swap bar graphs are for memory in use. The Kayak sports 1G of RAM. As for the 235MB figure, that's with a crapload of things running, including Firefox 3 with well over a dozen tabs open. And I have yet to use swap space since using Arch. On the same box running Puppy, swap usage, though not frequent, was often enough for me to question the manner in which the kernel was compiled.
The weather, uh ... "thingie" (to coin a Kaulerism) is an experiment, XSL lesson, and frivolous little extra which adds insignificant CPU load.
Matt's Draft House is nestled in the little village of Inlet, NY, near where I camp every September.
Sleep? What's sleep? I only nap.
[size=84][i]hangout:[/i] ##b0rked on irc.freenode.net
[i]diversion:[/i] [url]http://alienjeff.net[/url] - visit The Fringe
[i]quote:[/i] "The foundation of authority is based upon the consent of the people." - Thomas Hooker[/size]
[i]diversion:[/i] [url]http://alienjeff.net[/url] - visit The Fringe
[i]quote:[/i] "The foundation of authority is based upon the consent of the people." - Thomas Hooker[/size]
re: Conky transparency
Hi, this is a follow-up to aussierod's great posts regarding transparency for Conky. This post shows another way I have found to deal with the transparency issue, and works well when you change the wallpaper/background a lot. Sorry in advance for the length, I have to talk it out or I doubt it would make sense, as I am not by any stretch a real programmer.
Back in the 3.x versions of puppy, I had read on this forum that the following lines in .xinitrc loaded Conky at startup and allowed transparency:
It worked just fine.
When I changed to puppy 4.0, I noticed this no longer worked to achieve transparency. As WolfPup noted in an earlier post on the first page of this topic, qiv is not pre-installed on Puppy 4.x, but can be added via a .pet file.
I then found that there was a new program in Puppy 4.x for changing the wallpaper/background under Menu>Desktop>Wallpaper setter. After some research I found that changing the wallpaper/background using this program does not affect /root/Choices/ROX-background.jpg as the previous wallpaper/background program had done. Further research found that the Wallpaper setter program writes the current wallpaper/background choice to the file /root/.config/tmp/bg_img.
Using this information, I changed the additional lines in .xinitrc to the following:
After adding the two lines to .xinitrc and restarting X (Menu>Shutdown>Restart X server), I had transparency, finally.
The -z in the qiv line above stretches the image on the background. Qiv has the nice -F option that allows it to read file names from text in a file, thereby allowing it to read the current wallpaper/background image choice from the /root/.config/tmp/bg_img file. I was not able to find an equivalent for xli, which meant qiv was necessary to get this solution to work. So I kept the qiv line instead of using xli as is currently suggested towards the beginning of this topic.
If anyone knows how to have xli read text from the file /root/.config/tmp/bg_img, or if I am just totally confusing this, please let me know.
For those who don't know, to add the new lines to .xinitrc, open the program Geany (Menu>Document>Geany text editor), then use Geany to open the file /root/.xinitrc, and add the new lines above the line "#exec $CURRENTWM". Save the changed file as /root/.xinitrc, then restart X. You will have to add the qiv .pet if you have not already done so, this will need to be done before you restart X for the new lines to work properly. Keep in mind that restarting X will close any windows you may have open, so make sure you have saved anything important.
**************************
OK, so I had transparency. But I like to switch between backgrounds a lot, being a shutterbug with lots of pictures and what must be a mild form of background-viewing ADHD. I began to wonder if there was a better way to change the background and keep Conky in step than having to restart X each time. I did some more research on the Wallpaper setter program in Puppy 4.x, and came up with this solution.
The main work for the Wallpaper setter program appears to occur through the file /usr/local/apps/System/Wallpaper/AppRun. In the AppRun file I added three action lines to the "Apply" button for the Wallpaper setter program. The lines basically 1) stop any Conkys currently running, 2) start qiv with the newly chosen wallpaper/background and then 3) restart Conky. The three lines are similar to those posted earlier in this topic for another use under Puppy 3.x, as follows:
The addition of these lines in the AppRun file goes under the actions for the Apply button in the Wallpaper setter program. The place is towards the bottom of the AppRun file directly after the program writes the wallpaper/background selection to /root/.config/tmp/bg_img, as follows:
Before you add these lines, it would be good to backup the file /usr/local apps/System/Wallpaper/Apprun to something like ApprunOriginal just in case anything goes wrong. To add the new lines, open the program Geany (Menu>Document>Geany text editor), then use Geany to open the file /usr/local apps/System/Wallpaper/Apprun. Add the three new lines as shown above, then restart X (Menu>Shutdown>Restart X server).
Once you have restarted X, you should be able to go in to the Wallpaper setter program and change your wallpaper/background as often as desired, and Conky will re-load with the appropriate wallpaper/background in transparent mode each time. Or it should. I hope it does. Let me know if it doesn't. And remember, this should not be necessary unless you are using Puppy 4.x. Oh, and I haven't tried it on anything but 4.0, so bear that in mind. Yeah, backing up your files might not be a bad idea at all.
For all those I have confused terribly, or bored silly, my sincere apologies.
Back in the 3.x versions of puppy, I had read on this forum that the following lines in .xinitrc loaded Conky at startup and allowed transparency:
Code: Select all
qiv -z /root/Choices/ROX-background.jpg
conky -d &
When I changed to puppy 4.0, I noticed this no longer worked to achieve transparency. As WolfPup noted in an earlier post on the first page of this topic, qiv is not pre-installed on Puppy 4.x, but can be added via a .pet file.
I added qiv, but still didn't get transparency.
I then found that there was a new program in Puppy 4.x for changing the wallpaper/background under Menu>Desktop>Wallpaper setter. After some research I found that changing the wallpaper/background using this program does not affect /root/Choices/ROX-background.jpg as the previous wallpaper/background program had done. Further research found that the Wallpaper setter program writes the current wallpaper/background choice to the file /root/.config/tmp/bg_img.
Using this information, I changed the additional lines in .xinitrc to the following:
Code: Select all
qiv -z -F /root/.config/tmp/bg_img
conky -d &
The -z in the qiv line above stretches the image on the background. Qiv has the nice -F option that allows it to read file names from text in a file, thereby allowing it to read the current wallpaper/background image choice from the /root/.config/tmp/bg_img file. I was not able to find an equivalent for xli, which meant qiv was necessary to get this solution to work. So I kept the qiv line instead of using xli as is currently suggested towards the beginning of this topic.
If anyone knows how to have xli read text from the file /root/.config/tmp/bg_img, or if I am just totally confusing this, please let me know.
For those who don't know, to add the new lines to .xinitrc, open the program Geany (Menu>Document>Geany text editor), then use Geany to open the file /root/.xinitrc, and add the new lines above the line "#exec $CURRENTWM". Save the changed file as /root/.xinitrc, then restart X. You will have to add the qiv .pet if you have not already done so, this will need to be done before you restart X for the new lines to work properly. Keep in mind that restarting X will close any windows you may have open, so make sure you have saved anything important.
**************************
OK, so I had transparency. But I like to switch between backgrounds a lot, being a shutterbug with lots of pictures and what must be a mild form of background-viewing ADHD. I began to wonder if there was a better way to change the background and keep Conky in step than having to restart X each time. I did some more research on the Wallpaper setter program in Puppy 4.x, and came up with this solution.
The main work for the Wallpaper setter program appears to occur through the file /usr/local/apps/System/Wallpaper/AppRun. In the AppRun file I added three action lines to the "Apply" button for the Wallpaper setter program. The lines basically 1) stop any Conkys currently running, 2) start qiv with the newly chosen wallpaper/background and then 3) restart Conky. The three lines are similar to those posted earlier in this topic for another use under Puppy 3.x, as follows:
Code: Select all
<action>killall conky</action>
<action>qiv -z -F /root/.config/tmp/bg_img</action>
<action>conky</action>
Code: Select all
<button>
<label>Apply</label>
<input file stock=\"gtk-apply\"></input>
<action>$APPDIR/set_bg \"\$IMAGE\"</action>
<action>echo \"\$IMAGE\" > \$HOME/.config/tmp/bg_img</action>
<action>killall conky</action>
<action>qiv -z -F /root/.config/tmp/bg_img</action>
<action>conky</action>
<action type=\"refresh\">TEXT</action>
</button>
Once you have restarted X, you should be able to go in to the Wallpaper setter program and change your wallpaper/background as often as desired, and Conky will re-load with the appropriate wallpaper/background in transparent mode each time. Or it should. I hope it does. Let me know if it doesn't. And remember, this should not be necessary unless you are using Puppy 4.x. Oh, and I haven't tried it on anything but 4.0, so bear that in mind. Yeah, backing up your files might not be a bad idea at all.
For all those I have confused terribly, or bored silly, my sincere apologies.
Nvidia GPU temperature
for those of you who have a Nvidia graphic card and have the Nvidia drivers installed
drivers - http://www.murga-linux.com/puppy/viewtopic.php?t=34001
here's the code for conky .conkyrc (borrowed from Fedora forum)
It works for me in
Puppy 4.1 - 2.6.25.16 with a GeForce 6600 GT card. Don't know if it works with all cards or not.
DC
P.S. please don't ask me to explain the code, I can't
for those of you who have a Nvidia graphic card and have the Nvidia drivers installed
drivers - http://www.murga-linux.com/puppy/viewtopic.php?t=34001
here's the code for conky .conkyrc (borrowed from Fedora forum)
Code: Select all
${color orange} GPU Temp: $color ${execi 30 nvidia-settings -q gpucoretemp | grep '):' | awk '{print $4}' | cut -c -2} degC
Puppy 4.1 - 2.6.25.16 with a GeForce 6600 GT card. Don't know if it works with all cards or not.
DC
P.S. please don't ask me to explain the code, I can't
Hi,
The Conky site faq says you can have more than one instance of Conky running.
It works from the command line ok
# conky -c config1 or conky -c -config2
Can somebody tell me how to get both running at the same time and both to auto start at the same time.
thanks
DC
Why two ? - top right of screen - CPU,MoBo, GPU, HDD temperatures
bottom right of screen - weather forecast
The Conky site faq says you can have more than one instance of Conky running.
It works from the command line ok
# conky -c config1 or conky -c -config2
Can somebody tell me how to get both running at the same time and both to auto start at the same time.
thanks
DC
Why two ? - top right of screen - CPU,MoBo, GPU, HDD temperatures
bottom right of screen - weather forecast
You don't need two instances of conky running to accomplish what you've just described. FYI, I run mine from ~/.xinitrc just before starting my window manager. YMMV.DC wrote:Why two ? - top right of screen - CPU,MoBo, GPU, HDD temperatures bottom right of screen - weather forecast
In your .conkyrc file and below the "TEXT" portion, when editing just stick the necessary number of "carriage returns" between the HW configuration code and the weather forecast code.
Here's an example:
Code: Select all
TEXT
${color4}F1 - ${color9}email | ${color4}F2 - ${color9}browse | ${color4}F3 - ${color9}edit | ${color4}F4 - ${color9}term | ${color4}F5 - ${color9}IRC | ${color4}F6 - ${color9}rox | ${color4}F12 - ${color9}gxine
${color4}user/node: ${color8}${exec whoami}@$nodename
${color4}load: ${color8}$loadavg
${color4}uptime: ${color8}$uptime
${cpugraph cpu1 21,128 ff0000 33ff00}
${offset 10}CPU 1 - ${cpu cpu1}%
${cpugraph cpu2 21,128 ff0000 33ff00}
${offset 10}CPU 2 - ${cpu cpu2}%
${downspeedgraph eth0 21,128 ff0000 33ff00}
${offset 10}eth0 down: ${downspeed eth0} k/s
${upspeedgraph eth0 21,128 ff0000 33ff00}
${offset 10}eth0 up: ${upspeed eth0} k/s
${membar 6,128}
${offset 10}RAM: $mem
${swapbar 6,128}
${offset 10}swap: $swap
${execi 300 /home/jeff/weather/06098.sh}
${execi 300 /home/jeff/weather/13360.sh}
Code: Select all
# Text alignment
alignment top_left
# Gap between borders of screen and text
gap_x 1
gap_y 1
Last edited by alienjeff on Sat 18 Oct 2008, 18:42, edited 1 time in total.
Hi alienjeff,
and I was thinking of other things in the other two corners - conky -c config3 works as well
DC
does'nt that make the space between the two displays not usable?In your .conkyrc file and below the "TEXT" portion, when editing just stick the necessary number of "carriage returns" between the HW configuration code and the weather forecast code.
and I was thinking of other things in the other two corners - conky -c config3 works as well
DC
two conkys
Hi Jeff, DC. You know Jeff, "carriage returns" - that's a lot more intelligent than what I was going through.
Well, just for fun, this worked for me. My main config file is .conkyrc (set in the upper left) and I made a copy called .conkyrca (set in the bottom left). I then put the following lines in to .xinitrc:
I restarted x and both Conkys came up.
By the way, everyone should ignore my post from 10/13, I loaded a fresh frugal Puppy 4.10 on my system and found my instructions/assumptions/understanding to have been flawed. Back to the drawing board...
Well, just for fun, this worked for me. My main config file is .conkyrc (set in the upper left) and I made a copy called .conkyrca (set in the bottom left). I then put the following lines in to .xinitrc:
Code: Select all
conky -d
conky -d -c .conkyrca
By the way, everyone should ignore my post from 10/13, I loaded a fresh frugal Puppy 4.10 on my system and found my instructions/assumptions/understanding to have been flawed. Back to the drawing board...
Only if you're using Conky with "own_window yes" - otherwise, no.DC wrote: does'nt that make the space between the two displays not usable?
You didn't mention that before, though you could accomplish that without having two instances of Conky running, though it would be tricky to set up.and I was thinking of other things in the other two corners - conky -c config3 works as well
[size=84][i]hangout:[/i] ##b0rked on irc.freenode.net
[i]diversion:[/i] [url]http://alienjeff.net[/url] - visit The Fringe
[i]quote:[/i] "The foundation of authority is based upon the consent of the people." - Thomas Hooker[/size]
[i]diversion:[/i] [url]http://alienjeff.net[/url] - visit The Fringe
[i]quote:[/i] "The foundation of authority is based upon the consent of the people." - Thomas Hooker[/size]
Astute observation and excellent point! Thanks.DC wrote:One advantage of seperate conky windows is they are different sizes and are only as big as required.
[size=84][i]hangout:[/i] ##b0rked on irc.freenode.net
[i]diversion:[/i] [url]http://alienjeff.net[/url] - visit The Fringe
[i]quote:[/i] "The foundation of authority is based upon the consent of the people." - Thomas Hooker[/size]
[i]diversion:[/i] [url]http://alienjeff.net[/url] - visit The Fringe
[i]quote:[/i] "The foundation of authority is based upon the consent of the people." - Thomas Hooker[/size]
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?
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......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?
Puppy Linux Blog - contact me for access
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}
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
[url=http://www.puppylinux.com][img]http://i.imgur.com/M4OyHe1.gif[/img][/url]
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?
${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!
Root forever!