Conky With Lua

Themes, icons, wallpapers, etc.
Message
Author
User avatar
Moat
Posts: 955
Joined: Tue 16 Jul 2013, 06:04
Location: Mid-mitten

#91 Post by Moat »

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... :(
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". 8)

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! :shock:

Bob
Attachments
image-11.jpg
Pwidgets running two "conventional" conkies...
(68.95 KiB) Downloaded 1792 times
Last edited by Moat on Thu 19 Feb 2015, 09:53, edited 1 time in total.

User avatar
Moat
Posts: 955
Joined: Tue 16 Jul 2013, 06:04
Location: Mid-mitten

#92 Post by Moat »

Doh... dumb mistake...

User avatar
Moat
Posts: 955
Joined: Tue 16 Jul 2013, 06:04
Location: Mid-mitten

#93 Post by Moat »

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
Attachments
feh_code_placement.jpg
revised feh command placement in .xinitrc
(33.77 KiB) Downloaded 1667 times

User avatar
Moat
Posts: 955
Joined: Tue 16 Jul 2013, 06:04
Location: Mid-mitten

#94 Post by Moat »

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... :oops: :) ). 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
Attachments
pixel_ruler1.jpg
Pixel ruler in action...
(56.39 KiB) Downloaded 1641 times
PixelRuler-1.0.pet
Pixel ruler - requires feh to be installed
(8.28 KiB) Downloaded 520 times

User avatar
drunkjedi
Posts: 882
Joined: Mon 25 May 2015, 02:50

Conky on Tahrpup64.

#95 Post by drunkjedi »

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?

User avatar
solo
Posts: 389
Joined: Thu 14 Nov 2013, 20:33

#96 Post by solo »

Perhaps this link may be of some help:

http://conky.pitstop.free.fr/wiki/index ... y_%28en%29

User avatar
drunkjedi
Posts: 882
Joined: Mon 25 May 2015, 02:50

#97 Post by drunkjedi »

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.

User avatar
solo
Posts: 389
Joined: Thu 14 Nov 2013, 20:33

#98 Post by solo »

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.

User avatar
drunkjedi
Posts: 882
Joined: Mon 25 May 2015, 02:50

#99 Post by drunkjedi »

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
Image
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.

User avatar
solo
Posts: 389
Joined: Thu 14 Nov 2013, 20:33

#100 Post by solo »

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.

User avatar
drunkjedi
Posts: 882
Joined: Mon 25 May 2015, 02:50

#101 Post by drunkjedi »

Ahh thanks mate.

I just used Ken conky theme in conky switcher provided in OP.
Just changed colors of clock circles.

User avatar
Moat
Posts: 955
Joined: Tue 16 Jul 2013, 06:04
Location: Mid-mitten

#102 Post by Moat »

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

Code: Select all

${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 :( ). Some glassy background images, with a bit of drop-shadow added to the clock .png -
Attachments
_2016-02-16.jpg
Glassy background .pngs...
(24.63 KiB) Downloaded 1229 times

User avatar
nilsonmorales
Posts: 972
Joined: Fri 15 Apr 2011, 14:39
Location: El Salvador

#103 Post by nilsonmorales »

Puppy works fine with bargraphs here a little example
Documentation here http://n00by4ever.deviantart.com/art/co ... -401252985
need sao ui fonts http://fontmeme.com/freefonts/34787/sao_ui.font
conkyrc
#------------------------- 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.
Image
[b][url=http://nilsonmorales.blogspot.com/]My blog |[/url][/b][b][url=https://github.com/woofshahenzup]| Github[/url][/b]
[img]https://i.postimg.cc/5tz5vrrX/imag018la6.gif[/img]
[img]http://s5.postimg.org/7h2fid8pz/botones_logos3.png[/img]

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

#104 Post by Subito Piano »

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?

User avatar
smokey01
Posts: 2813
Joined: Sat 30 Dec 2006, 23:15
Location: South Australia :-(
Contact:

#105 Post by smokey01 »

Is anyone else having problems with Conky?

Mine has stopped working because:

Code: Select all

Connecting to ip.tupeux.com|212.129.25.14|:80...
seems to be down.

User avatar
spiritwild
Posts: 181
Joined: Mon 03 Oct 2016, 10:06

#106 Post by spiritwild »

I use to have a script with

wget http://ipinfo.io/ip -qO -


and ad to /.conkyrc file;
IP: ${exec sh ip.sh}

This use to work also

${exec curl -s http://ipinfo.io/ip -qO -}


I dont know if that still works, still displays IP in terminal though

Post Reply