Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sun 22 Oct 2017, 21:06
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Eye Candy
Conky With Lua
Post new topic   Reply to topic View previous topic :: View next topic
Page 7 of 8 [106 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7, 8 Next
Author Message
Moat


Joined: 16 Jul 2013
Posts: 756
Location: Mid-mitten, USA

PostPosted: Thu 19 Feb 2015, 05:25    Post subject:  

battleshooter wrote:
Wow, I haven't seen this thread in a long time.


Another one of those great threads that gets lost in the shuffle... Sad

battleshooter wrote:
I hope to one day come back to this and get a more modular system going.


In tinkering and thinking about this...

Turns out Pwidgets works quite well as a conky "manager" - for invoking/placing and saving conkies around the desktop. As far as I understand, the Pwidgets' devs have had to modify it's included conky, so as to allow "pseudo"-transparent conky backgrounds on the rox desktop.

With your approach (using feh) - that's no longer necessary. In fact, by including the Lua script I stumbled across - we can now have true transparency, opacity, and everything in between (semi-transparency)! I imagine not having to modify conky may make Pwidgets easier to maintain as Puppy evolves...?

I envision (ha! the easy part...) a complete .pet package that combines all of those elements into one - your four packages, the semi-transparent Lua script above, and Pwidgets (with it's included widget configs tweaked for these feh and Lua mods). Throw in some cool, complete conkies... sort of a "Pwidgets Pro". Cool

Ideally, an included script to automagically modify .xinitrc and set_bg would be wonderous... but I know just enough to realize that may be difficult/impossible, or likely dangerous.

It'd probably be fairly large, too (like between 1-2Mb?). But, ooooh... so cool! Shocked

Bob
image-11.jpg
 Description   Pwidgets running two "conventional" conkies...
 Filesize   68.95 KB
 Viewed   1347 Time(s)

image-11.jpg


Last edited by Moat on Thu 19 Feb 2015, 05:53; edited 1 time in total
Back to top
View user's profile Send private message 
Moat


Joined: 16 Jul 2013
Posts: 756
Location: Mid-mitten, USA

PostPosted: Thu 19 Feb 2015, 05:49    Post subject:  

Doh... dumb mistake...
Back to top
View user's profile Send private message 
Moat


Joined: 16 Jul 2013
Posts: 756
Location: Mid-mitten, USA

PostPosted: Mon 09 Mar 2015, 08:07    Post subject:  

Moat wrote:
Downsides... now that there's so much "stuff" being loaded at boot time - it seems they may occasionally clash as the desktop "builds", and won't completely load. I.E. - one missing conky window here, maybe have to click on the desktop once to bring up the taskbar another time, etc.


Resolved this ^^ issue by moving the feh command 'feh --bg-scale /root/.background' to an earlier spot in .xinitrc - from about line 130 to 113 (as per pic attached). Now the desktop loads perfectly, 100% of the time.

Bob
feh_code_placement.jpg
 Description   revised feh command placement in .xinitrc
 Filesize   33.77 KB
 Viewed   1237 Time(s)

feh_code_placement.jpg

Back to top
View user's profile Send private message 
Moat


Joined: 16 Jul 2013
Posts: 756
Location: Mid-mitten, USA

PostPosted: Mon 09 Mar 2015, 08:20    Post subject:  

Also been searching a while for - and not finding - a simple screen pixel ruler, that wouldn't pull in a ton of dependencies. But with 'feh' now installed it was very easy to make my own - simply using feh to display a border-less ruler image.

Pet attached (my first... please go easy on me... Embarassed Smile ). Alt+left-click to drag it around the screen, right-click pops up a wee feh menu with options to rotate to vertical, exit and a few other things...

Bob
pixel_ruler1.jpg
 Description   Pixel ruler in action...
 Filesize   56.39 KB
 Viewed   1212 Time(s)

pixel_ruler1.jpg

PixelRuler-1.0.pet
Description  Pixel ruler - requires feh to be installed
pet

 Download 
Filename  PixelRuler-1.0.pet 
Filesize  8.28 KB 
Downloaded  274 Time(s) 
Back to top
View user's profile Send private message 
drunkjedi


Joined: 24 May 2015
Posts: 684

PostPosted: Wed 28 Oct 2015, 00:30    Post subject: Conky on Tahrpup64.  

So I installed Conky, liblua, libiconv, and feh from PPM and conky switcher pet from here.
I also made changes in both files you showed in op.

Well conky runs and switches themes nicely.
What I am not getting is transparent Background.

Any hint what I could do.

Thanks.

Edit: Conky "appears" transparent after I switch wallpaper.
I say "appears" because it mismatches with background. It's slightly off.
It seems due to my dual monitor setup.

Edit2: The slight mismatch is gone after changing "own_window_type desktop" to "own_window_type override" in conkyrc.
But it has a delay.


Any way to have true Transparency?
Back to top
View user's profile Send private message 
solo


Joined: 14 Nov 2013
Posts: 390

PostPosted: Wed 28 Oct 2015, 07:44    Post subject:  

Perhaps this link may be of some help:

http://conky.pitstop.free.fr/wiki/index.php5?title=Transparency_in_conky_%28en%29
Back to top
View user's profile Send private message 
drunkjedi


Joined: 24 May 2015
Posts: 684

PostPosted: Thu 29 Oct 2015, 23:57    Post subject:  

Thanks for the link.
I tried making sense of it.
But I am quit new to Linux.

What I came up is,
It uses composite Managers like xcompmgr or compton or compiz.
I don't know if they work with JWM I have and even if I install them how to make them work.

On other note, on very third line it says "it's good as long as you don't use LUA or IMLIB".
But all my conky use lua.
So I am not sure.

But I am just a novice.
Back to top
View user's profile Send private message 
solo


Joined: 14 Nov 2013
Posts: 390

PostPosted: Fri 30 Oct 2015, 04:48    Post subject:  

No I think you've summed it up pretty well.

What I think you can distill out of it is that either you ditch JWM as a window manager and run OpenBox instead, so you can then run one of those composite managers,....orrr, you use the normal transparancy calls in Conky, but then you have to NOT run Lua.

The only other option for transparancy is the one you already have and do not want.

So I suppose you'll have to decide where to go from here. What do you use Lua for in Conky? Might there be a way to achieve the same effect in Conky without it? How important is JWM for you as a window manager? Questions.
Back to top
View user's profile Send private message 
drunkjedi


Joined: 24 May 2015
Posts: 684

PostPosted: Sat 31 Oct 2015, 01:29    Post subject:  

solo wrote:
The only other option for transparancy is the one you already have and do not want.
Nah I can live with this. The only thing that was hindering me was my own ignorance and impatience.
After I used "own_window_type override" in conkyrc the thing is nicely transparent, also the slight delay is only at conky start and when changing wallpaper.
Thanks for your help.

solo wrote:
What do you use Lua for in Conky? Might there be a way to achieve the same effect in Conky without it?
The Lua is used for the rings of clock and other things. I will look if any other way is there to do that.
here is how my desktop looks


solo wrote:
How important is JWM for you as a window manager?
Actually it's not that important, but I have Fatdog so I won't change my wm here but will do experiments in Fatdog.

Thanks friend.
Back to top
View user's profile Send private message 
solo


Joined: 14 Nov 2013
Posts: 390

PostPosted: Sat 31 Oct 2015, 04:48    Post subject:  

Yeah I think those rings are very much a Lua thing.

You have one slick looking desktop though I tell ya.

I would agree that a slight delay in appearance at startup should not be the reason to turn your whole config on its head.

In Conky, sometimes stuff like that may be caused by the loading order of elements in the conkyrc. I don't know how much room there is to experiment with that, but it's something to keep in mind.
Back to top
View user's profile Send private message 
drunkjedi


Joined: 24 May 2015
Posts: 684

PostPosted: Sun 01 Nov 2015, 01:23    Post subject:  

Ahh thanks mate.

I just used Ken conky theme in conky switcher provided in OP.
Just changed colors of clock circles.
Back to top
View user's profile Send private message 
Moat


Joined: 16 Jul 2013
Posts: 756
Location: Mid-mitten, USA

PostPosted: Tue 16 Feb 2016, 11:40    Post subject:  

Semi-transparent .png images can be added to the Pwidgets' conkies, using for example...

Code:
${image /usr/local/pwidgets/widgets/drawButton.png -p -1,0 -s 190x374}


... placed at the very end of the config file. Takes a bit of fiddling with the image and conky position offset and size variables for everything to align properly, but can look awfully "classy", IMHO (unfortunately, it does seem to add about 2% CPU use @ idle, though, on this old Pentium D desktop Sad ). Some glassy background images, with a bit of drop-shadow added to the clock .png -
_2016-02-16.jpg
 Description   Glassy background .pngs...
 Filesize   24.63 KB
 Viewed   799 Time(s)

_2016-02-16.jpg

Back to top
View user's profile Send private message 
nilsonmorales


Joined: 15 Apr 2011
Posts: 920
Location: El Salvador

PostPosted: Mon 28 Mar 2016, 02:28    Post subject:  

Puppy works fine with bargraphs here a little example
Documentation here http://n00by4ever.deviantart.com/art/conky-Bargraph-Widget-2-2-edit-by-Nooby4Ever-401252985
need sao ui fonts http://fontmeme.com/freefonts/34787/sao_ui.font
conkyrc
Quote:
#------------------------- Windows Settings
# Create own window instead of using desktop (required in nautilus)
alignment top_right
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,sticky,below,skip_taskbar,skip_pager
own_window_colour black
own_window_class Conky
own_window_title TEST
own_window_argb_visual yes
own_window_argb_value 0

double_buffer yes

#------------------------- Location
minimum_size 340 200
#gap_x 310
#gap_y 310

#------------------------- FONT
use_xft yes
xftfont SAO UI:bold:size=13
xftalpha 0.8 # Alpha of Xft font. Must be a value at or between 1 and 0 ###
override_utf8_locale yes
draw_shades no
default_shade_color black
draw_outline no
uppercase no

#------------------------- BORDER
draw_borders no
draw_outline no
stippled_borders 0
border_inner_margin 0
border_outer_margin 0
border_width 0

#------------------------- OTHER
background no
update_interval 1

lua_load /root/.config/conky/puppybars.lua
lua_draw_hook_post main_bars


draw_graph_borders no

TEXT
${font SAO UI:size=22}${alignc}${execi 300 date +"%A, %B %d"}
${alignc}$nodename
${font SAO UI:size=55}${voffset 12} ${offset 197}${font}CPU >>> ${cpu cpu0}%
${voffset 20} ${offset 90}MEM >>> ${memperc}%
${voffset 28} ${offset 170}ROOT >>> ${fs_used_perc /root}%


puppybars.lua file
http://paste.debian.net/419713/ just 90 days.

_________________
My blog | | Github


Back to top
View user's profile Send private message 
Subito Piano


Joined: 27 May 2007
Posts: 603
Location: UPSTATE New York

PostPosted: Mon 28 Mar 2016, 20:34    Post subject:  

Like Jedi, i have Lua on JWM. Transparency falters until i open up conkyswitcher, switch to a different conky, wait a second, then switch back to Lua. Then, voila! -- transparency ensues. In my conkyrc file, "own_window_type override" is NOT commented out. Any ideas?
Back to top
View user's profile Send private message Visit poster's website 
smokey01


Joined: 30 Dec 2006
Posts: 2651
Location: South Australia

PostPosted: Fri 27 May 2016, 17:57    Post subject:  

Is anyone else having problems with Conky?

Mine has stopped working because:
Code:
Connecting to ip.tupeux.com|212.129.25.14|:80...

seems to be down.

_________________
Software <-> Distros <-> Tips <-> Newsletters
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 7 of 8 [106 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7, 8 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Eye Candy
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0922s ][ Queries: 12 (0.0075s) ][ GZIP on ]