Conky With Lua
- battleshooter
- Posts: 1378
- Joined: Wed 14 May 2008, 05:10
- Location: Australia
Yup, ok, that's good, now I know where you're at.
Have a look at this image, I've put the line feh --bg-scale /root/.background in a different place just in case it is bothering your OpenBox setup. Place the line feh --bg-scale /root/.background in the same place as the picture and you should be fine, no crashing of window managers.
Then just edit /usr/local/apps/Wallpaper/set_bg and run Nathan's wallpaper again as stated before and your Conky should be fixed up.
Have a look at this image, I've put the line feh --bg-scale /root/.background in a different place just in case it is bothering your OpenBox setup. Place the line feh --bg-scale /root/.background in the same place as the picture and you should be fine, no crashing of window managers.
Then just edit /usr/local/apps/Wallpaper/set_bg and run Nathan's wallpaper again as stated before and your Conky should be fixed up.
- Attachments
-
- example.jpg
- (44.46 KiB) Downloaded 2114 times
[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]
-
- Posts: 62
- Joined: Tue 28 Feb 2012, 04:16
- battleshooter
- Posts: 1378
- Joined: Wed 14 May 2008, 05:10
- Location: Australia
Great! Glad that worked. If some themes are still displaying black around them, it would be because they are set up for real transparencies rather than the pseudo transparency we are using. Jemimah's themes for Saluki are set up like that and so are many other themes found around the internet. It can be easily tweaked to work correctly though, by editing the conkyrc file.
[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]
glad to see aa's(and i suspect others) issue with transparency in openbox was resolved, thanks to battleshooter.
First off, im on lupu 528 ver. 005 with openbox as wm. i had set up conky working , then i uninstalled/moved/edited something and the transparency started acting up. As i was testing the settings, i got to the point where i had uninstalled feh, running only
conky-1.8.1.pet
liblua5.1-0_5.1.4-5_i386.deb
libiconv-1.14.pet
and relying on the rule in the conkyrc file for transparency effect. with that setup i observed the following:
when x server initiated (either on normal startup or when restarting x ) the black background on the window was present for a time (maybe about 2-5 mins) , then transparency set in. Weirdly, transparency would be applied near instantly if and when i opened the conkyrc file in geany.
Transparency would also be applied if , while conky was running, i opened nathan's background setter and changed backgrounds.
Now, the first case baffles me, but in the case of the background change, i suspect that when x redraws the background ,the own_window_transparent rule in conkyrc is triggered and applied.
If that is in fact the case, getting conky to load on x startup before the background is set , could we achieve transparency in conky lua without the services of feh? Does that make any sense?
Now, i 'd rather give a working fix that an assumption, but i don't have the first idea on how x loads and initiates the relevant scripts, so any insight would be appreciated.
We obviously already have a working fix for conky-lua-feh, as documented in this thread, so this is probably nitpicking. it just seems that with some fiddling, openbox can probably do "real" transparency, at least for conky purposes.
that's it. I apologize for the length of the post.
Thanks in advance for any feedback.
First off, im on lupu 528 ver. 005 with openbox as wm. i had set up conky working , then i uninstalled/moved/edited something and the transparency started acting up. As i was testing the settings, i got to the point where i had uninstalled feh, running only
conky-1.8.1.pet
liblua5.1-0_5.1.4-5_i386.deb
libiconv-1.14.pet
and relying on the
Code: Select all
own_window_transparent yes
when x server initiated (either on normal startup or when restarting x ) the black background on the window was present for a time (maybe about 2-5 mins) , then transparency set in. Weirdly, transparency would be applied near instantly if and when i opened the conkyrc file in geany.
Transparency would also be applied if , while conky was running, i opened nathan's background setter and changed backgrounds.
Now, the first case baffles me, but in the case of the background change, i suspect that when x redraws the background ,the own_window_transparent rule in conkyrc is triggered and applied.
If that is in fact the case, getting conky to load on x startup before the background is set , could we achieve transparency in conky lua without the services of feh? Does that make any sense?
Now, i 'd rather give a working fix that an assumption, but i don't have the first idea on how x loads and initiates the relevant scripts, so any insight would be appreciated.
We obviously already have a working fix for conky-lua-feh, as documented in this thread, so this is probably nitpicking. it just seems that with some fiddling, openbox can probably do "real" transparency, at least for conky purposes.
that's it. I apologize for the length of the post.
Thanks in advance for any feedback.
- battleshooter
- Posts: 1378
- Joined: Wed 14 May 2008, 05:10
- Location: Australia
Interesting post jaydee. No need to apologize for its length. Detailed feedback is nice
I don't use OpenBox so I'm not as familiar with it as Fluxbox, but a quick Google around seems to indicate OpenBox may have some kind of composite manager to draw it's own transparencies.
What OpenBox package are you using? Just the one from the repo? I might just fire up OpenBox and see if I can work it out, and maybe stick up some different steps for OpenBox users. I'm not really fond of the feh method, it seems, messy.
I don't use OpenBox so I'm not as familiar with it as Fluxbox, but a quick Google around seems to indicate OpenBox may have some kind of composite manager to draw it's own transparencies.
I don't think that will work. An alternative solution would be to find out what command is triggering the transparency, and then to place it in .xinitrc to start each time X is called.jaydee wrote: If that is in fact the case, getting conky to load on x startup before the background is set ,
What OpenBox package are you using? Just the one from the repo? I might just fire up OpenBox and see if I can work it out, and maybe stick up some different steps for OpenBox users. I'm not really fond of the feh method, it seems, messy.
[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]
battleshooter, appreciate the feedback.
its the openbox that comes as the default wm in lupu, specs say
openbox 3.4.11 , repo has it as openbox_3.4.10-1 .
the xdgmenu that also shows up in repo composes the start menu so it shouldnt (probably?) be necessary.
Tracking down the transparency command sounds like a tall order for my skillset, but i ll certainly give it a go. Also attached my conkyrc file, in case any specific setting in it contributes to the effect (also added a preview pic, to keep the punters passing through happy).
like yourself, i have nothing against feh, i just looked through its files, and it seems feh was designed for a completely different reason and function; it seems a bit too much for what we want it for (although still a great working fix).
thanks again for the effort.
its the openbox that comes as the default wm in lupu, specs say
openbox 3.4.11 , repo has it as openbox_3.4.10-1 .
the xdgmenu that also shows up in repo composes the start menu so it shouldnt (probably?) be necessary.
Tracking down the transparency command sounds like a tall order for my skillset, but i ll certainly give it a go. Also attached my conkyrc file, in case any specific setting in it contributes to the effect (also added a preview pic, to keep the punters passing through happy).
like yourself, i have nothing against feh, i just looked through its files, and it seems feh was designed for a completely different reason and function; it seems a bit too much for what we want it for (although still a great working fix).
thanks again for the effort.
- Attachments
-
- compactlua.tar.gz
- stripped-down, compact version of conky lua rings
- (27.78 KiB) Downloaded 1216 times
-
- preview.jpg
- (23.6 KiB) Downloaded 5223 times
- battleshooter
- Posts: 1378
- Joined: Wed 14 May 2008, 05:10
- Location: Australia
Well that's got to be the weirdest thing ever. I tried fiddling around with the conkyrc file for the "Cherries" theme in OpenBox but wasn't able to achieve any transparency. Then I tried your compact lua theme (it's a nice take on the original by the way ) and true enough it was black and then eventually went transparent. I'll have to look more into this tomorrow, maybe copy the settings from the compact lua conkyrc and try to work them with another theme.
[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]
its weird, right ?!
I was going back and forth on all the startup scripts and got lost, so i went back to the conkyrc file, commenting out rules and it seems that the rule that allows this is(none of the other options exhibits this).
According to the conky configuration page, Override windows are not under the control of the window manager, meaning no wm decorations or rules apply.
So we might not be getting transparency per se (none of the argb/opacity values work), but just that the base window (border, label,) isn't drawn;why the background lags is right now beyond me. To get variable transparency in openbox, i think we probably need a compositor like xcompmgr, as per urukrama's guide.
This could very well be a weird glitch/coincidence that made me jump into a convenient conclusion.
I was going back and forth on all the startup scripts and got lost, so i went back to the conkyrc file, commenting out rules and it seems that the rule that allows this is
Code: Select all
own_window_type override
According to the conky configuration page, Override windows are not under the control of the window manager, meaning no wm decorations or rules apply.
So we might not be getting transparency per se (none of the argb/opacity values work), but just that the base window (border, label,) isn't drawn;why the background lags is right now beyond me. To get variable transparency in openbox, i think we probably need a compositor like xcompmgr, as per urukrama's guide.
This could very well be a weird glitch/coincidence that made me jump into a convenient conclusion.
-
- Posts: 62
- Joined: Tue 28 Feb 2012, 04:16
Code: Select all
own_window_type override
in greenlua conky rc file i put that line and it begin to give transparency :
- battleshooter
- Posts: 1378
- Joined: Wed 14 May 2008, 05:10
- Location: Australia
I haven't had time to really process your post jaydee, I'll be busy most this week, but just thought to post to let you know I haven't forgotten about OpenBox and Conky.
Haha, that made me laughalwaysalonee wrote:this is a magic code for transparency
[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]
..enable wand gestures (pesky brooms with pails
This may be ot for this particular conky (use the old 161 myself since 181 gave me multiple pids in htop), but pseudotrans needs always a bg set before conky starts - however you set it. Sometimes the wm does it like enlightenment, afterstep, startfluxbox or if flux/blackbox/? does it in the style when changing that; other wms I do the bg-set as the first line for each wm, then wbar, then conky (with sleep-delay as desired) in a ~/Startup/script. As noted conky 'catches up' after awhile (sooner or later, depending). If a rox pinboard is used, that can be yet another background (if roxpin has been set up as an on-demand item) or the initial method
On some of my pups, openbox likes a normal or desktop rather than override - otherwise windows may open under the layer conky is on. Enlightenment has different needs as well (akin to xfce as I recall, but with a few differences of course)
Depending on your 'clutter' preferences, more control can be exerted (like iconizing to the task/client list or..) with the 'skip' parameters - wms and pagers allowing. Funny, I used to use this to hide desktop icons under conky
This may be ot for this particular conky (use the old 161 myself since 181 gave me multiple pids in htop), but pseudotrans needs always a bg set before conky starts - however you set it. Sometimes the wm does it like enlightenment, afterstep, startfluxbox or if flux/blackbox/? does it in the style when changing that; other wms I do the bg-set as the first line for each wm, then wbar, then conky (with sleep-delay as desired) in a ~/Startup/script. As noted conky 'catches up' after awhile (sooner or later, depending). If a rox pinboard is used, that can be yet another background (if roxpin has been set up as an on-demand item) or the initial method
On some of my pups, openbox likes a normal or desktop rather than override - otherwise windows may open under the layer conky is on. Enlightenment has different needs as well (akin to xfce as I recall, but with a few differences of course)
Depending on your 'clutter' preferences, more control can be exerted (like iconizing to the task/client list or..) with the 'skip' parameters - wms and pagers allowing. Funny, I used to use this to hide desktop icons under conky
-
- Posts: 62
- Joined: Tue 28 Feb 2012, 04:16
here's a trick for noobs by a noob
create a script name it yoconky and paste code
you will need to change paths to files tho
additionally i put this script in bin folder and in tint2 in clock setting on right click i give it as command so i just have to right click on clock to get some things done easily
create a script name it yoconky and paste code
Code: Select all
conky -c /root/.conky/greenlua/conkyrc
set_wallpaper /root/imgs/cool.jpg
additionally i put this script in bin folder and in tint2 in clock setting on right click i give it as command so i just have to right click on clock to get some things done easily
- Colonel Panic
- Posts: 2171
- Joined: Sat 16 Sep 2006, 11:09
This looks good. I might give it a try next weekend when hopefully I'll have some spare time. Thanks for the thread and info.
Cheers,
CP .
Cheers,
CP .
Last edited by Colonel Panic on Sat 08 Jun 2013, 15:34, edited 1 time in total.
Gigabyte M68MT-52P motherboard, AMD Athlon II X4 630, 5.8 GB of DDR3 RAM and a 250 GB Hitachi hard drive running Ubuntu 16.04.6, MX-19.2, Peppermint 10, PCLinuxOS 20.02, LXLE 18.04.3, Pardus 19.2, exGENT 200119, Bionic Pup 8.0 and Xenial CE 7.5 XL.
OB Transparency
Hi Guys
This is a great thread and I got conky in and working no bother.
I'm having trouble with my lua rings tho -
Also, my /usr/local/apps/Wallpaper directory doesn't exist. Instead I have an executable there of the same name that is nathan's wallpaper switcher.
No hidden files either. So I can't put my transparency setting in there as you describe.
Thanks for any help here.
*Intel something-or-other, 1GB, Openbox, wbar, slacko.*
Tom
This is a great thread and I got conky in and working no bother.
I'm having trouble with my lua rings tho -
Code: Select all
conky: llua_do_call: function conky_clock_rings execution failed:attempt to call a nil value
No hidden files either. So I can't put my transparency setting in there as you describe.
Thanks for any help here.
*Intel something-or-other, 1GB, Openbox, wbar, slacko.*
Tom
- battleshooter
- Posts: 1378
- Joined: Wed 14 May 2008, 05:10
- Location: Australia
Re: OB Transparency
That's weird, I thought I edited the code to remove that error. It basically comes up if you don't have the things installed that are being displayed in the rings.scott2907 wrote:Hi Guys
This is a great thread and I got conky in and working no bother.
I'm having trouble with my lua rings tho -
Code: Select all
conky: llua_do_call: function conky_clock_rings execution failed:attempt to call a nil value
Stick this I suppose at the top of the clock_rings.lua file after all the red comments and I think it should fix your problem.
Code: Select all
if value == nil then value = 0 end
pct = value/pt['max']
Haha, actually that executable is the folder. If you click on the folder while holding shift, it should open normally as a folder.scott2907 wrote: Also, my /usr/local/apps/Wallpaper directory doesn't exist. Instead I have an executable there of the same name that is nathan's wallpaper switcher.
No hidden files either. So I can't put my transparency setting in there as you describe.
Do the pets I uploaded in this thread work on Slacko? Or are you using a Conky pet for Slacko?scott2907 wrote: slacko
[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]
Re: OB Transparency
Thanks for the answer I'll give it a go.
and regarding the wallpaper icon- That's just weird!!!
yup they seem to! At least your Conky pet did, I still don't have LUA working, but I'm sure that's user error.battleshooter wrote: Do the pets I uploaded in this thread work on Slacko? Or are you using a Conky pet for Slacko?
and regarding the wallpaper icon- That's just weird!!!
- koulaxizis
- Posts: 452
- Joined: Sun 17 Jul 2011, 18:43
- Location: Greece
- Contact:
conky troubles
Hi! I'm fooling around with conky this morning. I have done step 1 and step 2. I seem to be missing something. Here's my screeny. Thank for any help.
Cheers!
Haut_Dawg
Cheers!
Haut_Dawg
- Attachments
-
- not quite there.png
- (170.89 KiB) Downloaded 3935 times
2x Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz//4138MB (304MB used)//GeForce 8600 GT/PCIe/SSE2//Creative X-Fi//Puppy Precise 5.4.2.2
One of my current Conky configs......
- Attachments
-
- Conky Exprimo.png
- (160.95 KiB) Downloaded 3850 times
- nilsonmorales
- Posts: 972
- Joined: Fri 15 Apr 2011, 14:39
- Location: El Salvador