Conky With Lua

Themes, icons, wallpapers, etc.
Message
Author
User avatar
battleshooter
Posts: 1378
Joined: Wed 14 May 2008, 05:10
Location: Australia

Conky With Lua

#1 Post by battleshooter »

Conky with Lua

Compiled and tested on Lucid 5.28
ImageImage

For Saluki users, have a look here. Conky's simpler to setup in Saluki because it has real transparency so the instructions below are not needed

Additionally, be aware the instructions below are for people without a composite manager running. If you have XFCE with compositing or Compiz or the like running, you can just install the first 3 pets and all should be well, no need for the .xinitrc hacks.


Pets:
conky-1.8.1.pet
liblua5.1-0_5.1.4-5_i386.pet
libiconv-1.14.pet
feh-1.3.4.pet

The first 3 pets are Conky and its dependencies. Feh is a background setter I use to create an illusion of transparency.

Installation:
After installing pets...
Step 1:
In the file /root/.xinitrc place the line feh --bg-scale /root/.background in the same place as the picture.
Image

Step 2:
In the file /usr/local/apps/Wallpaper/set_bg add these lines to the end of the file:

Code: Select all

feh --bg-scale $IMAGE
cp -f $IMAGE /root/.background
Reset your wallpaper.

Basically what both these steps are doing is creating a fake layer of your background so Conky can pretend it's transparent. Step 1 is to get the fake layer created every time X is restarted, Step 2 is getting the fake layer to be created every time a new wallpaper is selected with Nathan's Wallpaper Setter.

From here you can run a conkyrc file with:

Code: Select all

conky -c /path/to/conkyrc
Conky Theme Switcher

Image

Edit: I feel a bit more confident of the pet now. (No small part due to Jemimah fixing it up and including it in the Saluki repository.) It's quite useful to browse Conky themes and now it comes with quitte a few prepackaged themes ready to go. I think it should work with most Puppies due to it being a simple GTK script.

Old:The following pet is a bit of a joke, I don't know know a thing about gtkdialog, but I managed to hack Puppy's icon switcher into a Conky config switcher. :shock: :lol: Naturally it's experimental due to my skill level :roll:

conkyswitcher-0.03.pet

I'm a bit tired at the moment so let me know if I missed anything or said something absolutely absurd :)

Battleshooter

Change Log to ConkySwitcher
0.01 - Initial
0.02 - Jemimah added "disable conky" button and cleaned code up. Also enabled multi conky start. Included all themes in pet.
0.03 - Updated picture preview to Jemimah's additions. Included fonts used by themes.
Last edited by battleshooter on Tue 10 Jan 2017, 08:24, edited 15 times in total.
[url=http://www.murga-linux.com/puppy/viewtopic.php?t=94580]LMMS 1.0.2[/url], [url=http://www.murga-linux.com/puppy/viewtopic.php?t=94593]Ardour 3.5.389[/url], [url=http://www.murga-linux.com/puppy/viewtopic.php?t=94629]Kdenlive 0.9.8[/url]

User avatar
battleshooter
Posts: 1378
Joined: Wed 14 May 2008, 05:10
Location: Australia

#2 Post by battleshooter »

Questions I've Invented To Answer Myself:

My icons have all disappeared!
Conky is fighting for supremacy with the ROX pinboard. The icons won't show up where Conky is, but will show up around the Conky parameters. Apparently there's a workaround, but I'm still working on it. Reference: Question 5

Wbar has disappeared!
Restart Wbar by typing killall wbar and then /root/Startup/wstart to start Wbar again.

How do I tweak Conky to fit my resolution?
Start by changing these variables in /root/.conky/themename/conkyrc:

Code: Select all

minimum_size <width goes here> <height goes here>
maximum_width <width goes here> <height goes here>
Minimum size should be your screen resolution to start off with, then you can experiment and cut the values down to see how small you can make the Conky without chopping parts of it up (if you still care about seeing your icons) Maximum should be your screen resolution.

After that, look for the TEXT section. "voffset" is the vertical position of the variables that follow after it and goto is the horizontal position of the variables that follow after it. Play around with the values to get a feel for it.

How can I add my own themes to Conky Switcher?
Conky themes are kept in /root/.conky/themename. The Conky configuration file should be named "conkyrc" and kept in its theme folder. There should also be a picture of width 400 called "preview.jpg". This obviously is the preview picture you see on the left.

I downloaded a Conky file and it doesn't work!
First thing I usually do is look for all paths in all files and set them correctly. Most of the time they are set to the theme's author's home directory :? so change them to the correct locations. Besides path and screen resolution related errors, sometimes there are calls to programs you don't have. Try running Conky manually with:

Code: Select all

conky -c /path/to/conkyrc
And look at the errors. Either install the program missing or delete the line out of the TEXT section in conkyrc.

Sample themes included in ConkySwitcher

Conky Lua Rings
The famous Conky lua rings. Unfortunately the creator never gave them a name so I guess "Conky Lua Rings" is the official name? 3 colors, blue, green and orange. I've disabled the Fedora, Mint and Ubuntu logos, but if you uncomment the line you can set it to display a Puppy logo instead.

Image

Bionic
I've disabled the wireless monitor because it doesn't work on my setup, but if you want to try it, you can enable it again. An organic looking Conky? In case you couldn't tell- Conky is on the right of the screen ;)
Image

Analog Clock
A simple analog clock added by Jemimah. If you care to look into its folder and adjust the config file there are a host of different clock faces included.
Image
Last edited by battleshooter on Thu 23 Feb 2017, 23:45, edited 6 times in total.
[url=http://www.murga-linux.com/puppy/viewtopic.php?t=94580]LMMS 1.0.2[/url], [url=http://www.murga-linux.com/puppy/viewtopic.php?t=94593]Ardour 3.5.389[/url], [url=http://www.murga-linux.com/puppy/viewtopic.php?t=94629]Kdenlive 0.9.8[/url]

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#3 Post by Lobster »

Are you using wbar too or just conky?
Have you tried this with Puppy 5.3?
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
battleshooter
Posts: 1378
Joined: Wed 14 May 2008, 05:10
Location: Australia

#4 Post by battleshooter »

Hey Lobster,

Yeah, I've been using Wbar with Conky. They compliment each other well :) I haven't tried this on 5.3 yet. Only on 5.28.
[url=http://www.murga-linux.com/puppy/viewtopic.php?t=94580]LMMS 1.0.2[/url], [url=http://www.murga-linux.com/puppy/viewtopic.php?t=94593]Ardour 3.5.389[/url], [url=http://www.murga-linux.com/puppy/viewtopic.php?t=94629]Kdenlive 0.9.8[/url]

User avatar
battleshooter
Posts: 1378
Joined: Wed 14 May 2008, 05:10
Location: Australia

#5 Post by battleshooter »

Added 2 new themes that can be used with or without Conky switcher. They will install to /root/.conky
[url=http://www.murga-linux.com/puppy/viewtopic.php?t=94580]LMMS 1.0.2[/url], [url=http://www.murga-linux.com/puppy/viewtopic.php?t=94593]Ardour 3.5.389[/url], [url=http://www.murga-linux.com/puppy/viewtopic.php?t=94629]Kdenlive 0.9.8[/url]

konaexpress
Posts: 75
Joined: Fri 14 Oct 2011, 02:17

#6 Post by konaexpress »

Stupid question for you guys. Conky is cool but a pain to use for a mouse guy, how hard would it be to make a program in Python, Gambas or Bacon to import/export/inventory and replace pre made Conky files?

stu90

#7 Post by stu90 »

konaexpress wrote:Stupid question for you guys. Conky is cool but a pain to use for a mouse guy, how hard would it be to make a program in Python, Gambas or Bacon to import/export/inventory and replace pre made Conky files?
Not sure about Python, Gambas or Bacon - but for a simple conky theme switcher say with a drop down menu of available themes not hard at all using Yad for the GUI.

konaexpress
Posts: 75
Joined: Fri 14 Oct 2011, 02:17

#8 Post by konaexpress »

stu90 wrote:
konaexpress wrote:Stupid question for you guys. Conky is cool but a pain to use for a mouse guy, how hard would it be to make a program in Python, Gambas or Bacon to import/export/inventory and replace pre made Conky files?
Not sure about Python, Gambas or Bacon - but for a simple conky theme switcher say with a drop down menu of available themes not hard at all using Yad for the GUI.
:shock: :?:

stu90

#9 Post by stu90 »

konaexpress wrote:
stu90 wrote:
konaexpress wrote:Stupid question for you guys. Conky is cool but a pain to use for a mouse guy, how hard would it be to make a program in Python, Gambas or Bacon to import/export/inventory and replace pre made Conky files?
Not sure about Python, Gambas or Bacon - but for a simple conky theme switcher say with a drop down menu of available themes not hard at all using Yad for the GUI.
:shock: :?:
Yad is a GUI for bash scripts - i think it comes already installed in most of the new pups now - just type yad in terminal to find out.
http://www.murga-linux.com/puppy/viewtopic.php?t=58306

Here is a simple Yad conky theme changer and theme adder. Not sure if it works with battleshooter's Lua or not but does work with standard conky.
Image

remove the fake .gz from then end of the script file name - and make it executable and click on it to run.
Attachments
conkyt.gz
remove the fake .gz from then end of the script file name - and make it executable.
(2.05 KiB) Downloaded 1830 times

User avatar
battleshooter
Posts: 1378
Joined: Wed 14 May 2008, 05:10
Location: Australia

#10 Post by battleshooter »

konaexpress wrote:Stupid question for you guys. Conky is cool but a pain to use for a mouse guy, how hard would it be to make a program in Python, Gambas or Bacon to import/export/inventory and replace pre made Conky files?
Hey konaexpress, that's what I was trying to do with Conky switcher:
Image

Basically clicking on the Conky theme you want, will set it up to run.

To install new themes, click on a theme pet, like these ones:
Bionic
Conky Lua Rings
stu90 wrote: Not sure if it works with battleshooter's Lua or not but does work with standard conky.
Interesting, I'll test it out. I think it should work with Lua if all it is doing is just pointing to a conkyrc file to use.
[url=http://www.murga-linux.com/puppy/viewtopic.php?t=94580]LMMS 1.0.2[/url], [url=http://www.murga-linux.com/puppy/viewtopic.php?t=94593]Ardour 3.5.389[/url], [url=http://www.murga-linux.com/puppy/viewtopic.php?t=94629]Kdenlive 0.9.8[/url]

einar
Posts: 161
Joined: Fri 12 Nov 2010, 12:22

WoW

#11 Post by einar »

can i use this in the upcoming Saluki ? or LH64 ?

User avatar
battleshooter
Posts: 1378
Joined: Wed 14 May 2008, 05:10
Location: Australia

Re: WoW

#12 Post by battleshooter »

I'm not sure about the Conky pet and the Conky Switcher, but the themes will certainly work because they are just text files and images designed to work with Conky.
[url=http://www.murga-linux.com/puppy/viewtopic.php?t=94580]LMMS 1.0.2[/url], [url=http://www.murga-linux.com/puppy/viewtopic.php?t=94593]Ardour 3.5.389[/url], [url=http://www.murga-linux.com/puppy/viewtopic.php?t=94629]Kdenlive 0.9.8[/url]

xfirebg
Posts: 2
Joined: Thu 25 Aug 2011, 18:51

#13 Post by xfirebg »

battleshooter , man you are awesome! Thanks for the tutorial!

XBlackChaosX
Posts: 55
Joined: Sun 16 Oct 2011, 16:52

Re: Conky With Lua

#14 Post by XBlackChaosX »

battleshooter wrote:
Step 1:
In the file /root/.xinitrc after the line: rox -p /root/Choices/ROX-Filer/PuppyPin add the line feh --bg-scale /root/.background so it looks like this:

Step 2:
In the file /usr/local/apps/Wallpaper/set_bg add these lines to the end of the file:

Code: Select all

feh --bg-scale $IMAGE
cp -f $IMAGE /root/.background

From here you can run a conkyrc file with:

Code: Select all

conky -c /path/to/conkyrc

I'm kinda new to puppy or linux for that matter so i honestly didn't understand the instructions, i think these themes look sick but i don't have the slightest clue as to how to install it since i didn't get what you were saying. Can someone please explain this to me in a way that a linux noob like myself can understand?

User avatar
battleshooter
Posts: 1378
Joined: Wed 14 May 2008, 05:10
Location: Australia

#15 Post by battleshooter »

@xfirebg
Thanks man :)

@XBlackChaosX
No worries we were all inexperienced once. :)

First off what Puppy version are you using? These instructions were written for Puppy 528 without real transparencies enabled.
[url=http://www.murga-linux.com/puppy/viewtopic.php?t=94580]LMMS 1.0.2[/url], [url=http://www.murga-linux.com/puppy/viewtopic.php?t=94593]Ardour 3.5.389[/url], [url=http://www.murga-linux.com/puppy/viewtopic.php?t=94629]Kdenlive 0.9.8[/url]

XBlackChaosX
Posts: 55
Joined: Sun 16 Oct 2011, 16:52

#16 Post by XBlackChaosX »

@battleshooter
I'm running Lucid Puppy 5.2.8.005.

User avatar
battleshooter
Posts: 1378
Joined: Wed 14 May 2008, 05:10
Location: Australia

#17 Post by battleshooter »

XBlackChaosX wrote:@battleshooter
I'm running Lucid Puppy 5.2.8.005.
Okey, that's great. Have you downloaded and installed the pets in the first post?
That's technically all the files Conky needs to run.

However, if there is a black screen around where Conky is, let me know, and I'll help you tweak your system settings to get rid of the black.

Finally, to actually get Conky running you can create a script, called "conkystart" or something and put it in your /root/Startup folder.

Put this in the file:

Code: Select all

conky -c /path/to/conkyrc
"conky" is basically the program. "-c" is saying use this theme. And "/path/to/conkyrc" is the location where your Conky theme file is.

Alternatively, you could try using the Conky theme switcher,
Which will basically setup what I said above and give you a nice GUI to pick Conky setups. If you have any questions, fire away.
[url=http://www.murga-linux.com/puppy/viewtopic.php?t=94580]LMMS 1.0.2[/url], [url=http://www.murga-linux.com/puppy/viewtopic.php?t=94593]Ardour 3.5.389[/url], [url=http://www.murga-linux.com/puppy/viewtopic.php?t=94629]Kdenlive 0.9.8[/url]

User avatar
jemimah
Posts: 4307
Joined: Wed 26 Aug 2009, 19:56
Location: Tampa, FL
Contact:

#18 Post by jemimah »

I've updated the conky switcher a little and made some more themes for it.

http://smokey01.com/jemimah/misc/conkys ... x-0.02.pet

There are some additional fonts you'll need.
http://smokey01.com/saluki/pet_packages ... nt-001.pet
http://smokey01.com/saluki/pet_packages ... 1.07.2.pet
http://smokey01.com/saluki/pet_packages ... ts-1.0.pet

Screen shots are here:
http://murga-linux.com/puppy/viewtopic. ... 702#619702

This should work with rox/jwm but I haven't tested it (I only tested on Saluki, but if you run Saluki, use the pet in the saluki repo - it's not the same). The new themes might need some tweaks for ROX if I didn't get them quite right.

XBlackChaosX
Posts: 55
Joined: Sun 16 Oct 2011, 16:52

#19 Post by XBlackChaosX »

@battleshooter
I created the conkystart script, and i opened it with abiword to place the line that you gave me in it but there was already something in it "#!/bin/sh" What is this and should i delete it and add what you gave me or place it along side it?

r4m0n3
Posts: 10
Joined: Tue 06 Jan 2009, 22:57

size?

#20 Post by r4m0n3 »

This is great! Thanks battleshooter.
I'm pretty close here.. only problem is that I can't see the actual background in any theme. Only the widgets on the right are visible.

I also tried looking root/.conky/orangelua/conkyrc where does the background come from.. but I couldn't see any path there..


*lupu 528.003 "pendrive", Xorg@1280x800, openbox, no wbar, Asus a6u laptop*

is it the lack of wbar, running from pendrive or just a tricky laptop :) ?


edit
:D I guess the cool backgrounds don't come with the package..
Last edited by r4m0n3 on Tue 17 Apr 2012, 12:03, edited 1 time in total.

Post Reply