Conky 1.7.1.1

Core libraries and systems
Message
Author
Wolf Pup
Posts: 637
Joined: Fri 28 Apr 2006, 01:37

#46 Post by Wolf Pup »

Updated conky to work in puppy 4 (Dingo).
[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

#47 Post by Wolf Pup »

Conky updated to 1.6.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
Béèm
Posts: 11763
Joined: Wed 22 Nov 2006, 00:47
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

#48 Post by Béèm »

Is there a possibility to position conky elsewhere?
I use gnome with a top bar and it covers conky. (1.61)
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
[url=http://puppylinux.org/wikka/HomePage]Consult Wikka[/url]
Use peppyy's [url=http://wellminded.com/puppy/pupsearch.html]puppysearch[/url]

User avatar
Pizzasgood
Posts: 6183
Joined: Wed 04 May 2005, 20:28
Location: Knoxville, TN, USA

#49 Post by Pizzasgood »

Yep. You can tell it which corner to use. Additionally, you can give it x and y offsets, to account for taskbars and what-not.

The file to edit is /root/.conkyrc.

With this particular package, the lines you're interested in are #70 - #78, which look like this:

Code: Select all

# 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
gap_x 12
gap_y 12
Lots of other stuff in there that you can play with.
[size=75]Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib[/size]
[img]http://www.browserloadofcoolness.com/sig.png[/img]

User avatar
Béèm
Posts: 11763
Joined: Wed 22 Nov 2006, 00:47
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

#50 Post by Béèm »

Thank you Pizzasgood.
Changing the gap values did the trick.
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
[url=http://puppylinux.org/wikka/HomePage]Consult Wikka[/url]
Use peppyy's [url=http://wellminded.com/puppy/pupsearch.html]puppysearch[/url]

aoiyamoto
Posts: 29
Joined: Sun 17 Aug 2008, 01:05

#51 Post by aoiyamoto »

This is an awesome program. One thing is that when I'm in compiz-fusion it disapears if I click on the wallpaper desktop area. Also, it disapears if I type emerald --replace into the terminal.

aussierod
Posts: 2
Joined: Wed 08 Oct 2008, 09:48

#52 Post by aussierod »

Hi all, first post here, hopefully with some helpful tips for those that want to use transparency with Conky 1.6.1 in Puppy 4.0

I have a fresh Puppy 4.0 running on my small born again IBM 600E laptop with Conky 1.6.1 (My big 'puter runs Fedora 9)

I followed the instruction in post one, adding the two extra pets "libxcb and libidn" (I have qiv-2.0 in as well and haven't tried this below without it)

When installing Conky 1.6.1 an instruction file opens telling us to add two lines into /root/.xinitrc
xli -fillscreen -onroot /root/Choices/ROX-background.jpg
conky -d
The trouble is, there is no "ROX-background.jpg" installed into that location while installing Conky 1.6.1

So I grabbed a second copy of my background pic and renamed it from nwosucks.jpg to "ROX-background.jpg", then adding it into the..

/root/Choices/

Reboot, then hey presto, zero blinking and clear transparency.

Below is my conky config geared towards wifi use (WG511 v2 card)
:P

- - - - - - -

# torsmo configuration
# set to yes if you want tormo to be forked in the background
background yes
# X font used, you can pick one with program xfontsel
# font 5x7
# font 6x10
font 7x13
# font 8x13
# font 9x15
# font fixed
# font *mintsmild.se*
# font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
# mail spool
# mail_spool $MAIL
# Create own window instead of using desktop (required in nautilus)
own_window yes
# If own_window is yes, you may use type normal, desktop or override
own_window_type desktop
# If own_window is yes, these window manager hints may be used
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 hotpink
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0
# Update interval in seconds
update_interval 1.0
# Minimum size of text area
minimum_size 160 5
# Draw shades?
draw_shades no
# Draw outlines?
draw_outline no
# Draw borders around text
draw_borders no
# Stippled borders?
stippled_borders 1
# border margins
border_margin 4
# border width
border_width 1
# Default colors and also border colors
default_color white
default_shade_color blue
default_outline_color red
# 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
gap_x 12
gap_y 12
# Subtract file system buffers from used memory?
no_buffers yes
# set to yes if you want all text to be in uppercase
uppercase no
# Add spaces to keep things from moving about? This only affects certain objects.
use_spacer yes
# stuff after 'TEXT' will be formatted on screen

TEXT
${color white}[${color #00ff00}PuppyLinux 4.0${color white}][${color red}$nodename${color white}] -
${color #888888}$sysname $kernel ${color #CCCCCC}on ${color #888888}$machine
${color #888888}Uptime: $uptime
${color #888888}${time %b/%a/%d} ${color #00ff00}${time %k:%M:%S}
${color white}${hr 2}
${color #ffccaa}Monitors:
${color #888888}cpu: ${color #CCCCCC}${cpu}%
${color #888888}${cpugraph 25 ff0000 ff00ff}
${color #888888}ram : ${color #CCCCCC}$mem${color #888888}/${color #CCCCCC}$memmax ${color #888888}- ${color #CCCCCC}$memperc%
${color #888888}swap: ${color #CCCCCC}$swap${color #888888}/${color #CCCCCC}$swapmax ${color #888888} - ${color #CCCCCC}$swapperc%
${color #888888}load: ( ${color #CCCCCC}$loadavg ${color #888888})
${color #888888}procesos: ${color #CCCCCC}$processes ${color #888888}running: ${color #CCCCCC}$running_processes

${color #ffccaa}Network:${color #BBBBBB} wlan0
${color #888888}IP: ${color #CCCCCC} ${addr wlan0} ${color #888888}wifi signal: ${color #CCCCCC} ${wireless_link_qual_perc wlan0}
${color #888888}DOWN: ${color #CCCCCC}${downspeed wlan0} k/s ${color #888888}UP: ${color #CCCCCC}${upspeed wlan0} k/s
${color #888888}${downspeedgraph wlan0 25,100 ff0000 0000ff} ${color #888888}${upspeedgraph wlan0 25,100 0000ff ff0000}
${color #888888}TOTAL: ${color #CCCCCC}${totaldown wlan0} ${color #888888}TOTAL: ${color #CCCCCC}${totalup wlan0}

${color #ffccaa}Free Space:
${color #888888}root : ${color #CCCCCC}${fs_used /}${color #888888}/${color #CCCCCC}${fs_size /} ${color #888888}(${color #CCCCCC}${fs_free /} ${fs_free_perc /}% ${color #888888} free)
${fs_bar /}
${color #888888}hda3 : ${color #CCCCCC}${fs_used /mnt/hda3}${color #888888}/${color #CCCCCC}${fs_size /mnt/hda3} ${color #888888}(${color #CCCCCC}${fs_free /mnt/hda3} ${fs_free_perc /mnt/hda3}% ${color #888888} free)
${fs_bar /mnt/hda3}

${color #ffccaa}Running Processes:
${color #CCCCCC}Name PID CPU% MEM%
${color #ddaa00} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color #888888} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color #888888} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color #888888} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
${color #888888} ${top name 5} ${top pid 5} ${top cpu 5} ${top mem 5}
${color #888888} ${top name 6} ${top pid 6} ${top cpu 6} ${top mem 6}
${color #888888} ${top name 7} ${top pid 7} ${top cpu 7} ${top mem 7}

User avatar
Subito Piano
Posts: 731
Joined: Mon 28 May 2007, 03:12
Location: UPSTATE New York
Contact:

#53 Post by Subito Piano »

So I grabbed a second copy of my background pic and renamed it from nwosucks.jpg to "ROX-background.jpg", then adding it into the..

/root/Choices/

Reboot, then hey presto, zero blinking and clear transparency.

aussierod - superior!! :D I just wish i saw that two hours ago when i first started trying to install Conky... :?

aussierod
Posts: 2
Joined: Wed 08 Oct 2008, 09:48

#54 Post by aussierod »

Good stuff, Subito Piano

Update, I removed qiv-2.0 and it still works fine.

Thanks to Barry and all those for making PuppyLinux..

woofwoof :wink:

User avatar
gambero
Posts: 2
Joined: Mon 11 Aug 2008, 14:57
Location: Bologna, Italy

thanks

#55 Post by gambero »

aussierod, thanks

I'm writing from a Puppy 4.1, full installation.
I followed your suggestions in these steps:

installed a clean Puppy 4.1, after Conky 1.6.1 and for last applied your trick about /root/Choices/ROX-background.jpg.
/root/.conkyrc leaved as the default

Now conky works well as expected.

Below you see my desktop attached.

Thanks again
gambero

sideburns
Posts: 56
Joined: Thu 28 Aug 2008, 01:32
Location: Freedonia
Contact:

#56 Post by sideburns »

I would think that you could substitute any path and any acceptable image and it would work. I haven't tried it yet, but currently I'm using the .bmp that I'd used under Win98. If it has to be a .png, well, I can always use The Gimp on my Fedora desktop to change the format.
Registered Linux user #470359

User avatar
Subito Piano
Posts: 731
Joined: Mon 28 May 2007, 03:12
Location: UPSTATE New York
Contact:

#57 Post by Subito Piano »

I would think so. I tried using a wildcard (*.jpg) -- unfortunately, no go.

sideburns
Posts: 56
Joined: Thu 28 Aug 2008, 01:32
Location: Freedonia
Contact:

#58 Post by sideburns »

I was right. The location and filename used are just an example; you can use anything you want. (It makes sense, BTW; if it had to be a specific name and location, you wouldn't have to put it on the command line.)

However, there's one, small detail left: my background image is a B&W drawing, and Conky doesn't show up too well. Does anybody know where there's a listing of the names of the colors Linux uses, preferably with examples?
Registered Linux user #470359

User avatar
alienjeff
Posts: 2265
Joined: Sat 08 Jul 2006, 20:19
Location: Winsted, CT - USA

#59 Post by alienjeff »

sideburns wrote:However, there's one, small detail left: my background image is a B&W drawing, and Conky doesn't show up too well.
Another reason to forego the eye candy.
Does anybody know where there's a listing of the names of the colors Linux uses, preferably with examples?
Short answer: yes.

Longer answers:

Click Menu > Graphic > gcolor2

Google (or your search engine of choice) is your friend, fgs. To wit, http://www.google.com/search?q=linux+color+codes.
[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]

User avatar
HairyWill
Posts: 2928
Joined: Fri 26 May 2006, 23:29
Location: Southampton, UK

#60 Post by HairyWill »

alienjeff wrote:Another reason to forego the eye candy.
dual core
only 235MB available ram
no swap

What a strange beast, did you compile the kernel yourself? How can you sleep wasting all those cpu cycles on reporting the weather in rob's backyard?
Will
contribute: [url=http://www.puppylinux.org]community website[/url], [url=http://tinyurl.com/6c3nm6]screenshots[/url], [url=http://tinyurl.com/6j2gbz]puplets[/url], [url=http://tinyurl.com/57gykn]wiki[/url], [url=http://tinyurl.com/5dgr83]rss[/url]

User avatar
alienjeff
Posts: 2265
Joined: Sat 08 Jul 2006, 20:19
Location: Winsted, CT - USA

#61 Post by alienjeff »

@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.
[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]

wilson
Posts: 10
Joined: Thu 21 Aug 2008, 01:08

re: Conky transparency

#62 Post by wilson »

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. :wink:

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 & 
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 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 & 
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:

Code: Select all

<action>killall conky</action>
<action>qiv -z -F /root/.config/tmp/bg_img</action>
<action>conky</action>
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:

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>
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. :lol:

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

#63 Post by DC »

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)

Code: Select all

${color orange}   GPU Temp: $color ${execi 30 nvidia-settings -q gpucoretemp | grep '):' | awk '{print $4}' | cut -c -2} degC
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 :?

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

#64 Post by DC »

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

User avatar
alienjeff
Posts: 2265
Joined: Sat 08 Jul 2006, 20:19
Location: Winsted, CT - USA

#65 Post by alienjeff »

DC wrote: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.

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}
Then fiddle with text alignment and gap (and possibly font size) for your particular monitor screen and conky display.

Code: Select all

# Text alignment
alignment top_left

# Gap between borders of screen and text
gap_x 1
gap_y 1
Be patient as it's a bit of trial and error. You can open a console/terminal and use the commands "killall conky" and "conky &" to avoid having to reboot each time you want to test a new/tweaked configuration.
Last edited by alienjeff on Sat 18 Oct 2008, 18:42, edited 1 time in total.

Post Reply