Conky Showoff thread

Forum rules
Before you post please read how to get help
User avatar
Sector11
Level 3
Level 3
Posts: 175
Joined: Mon Nov 22, 2010 10:33 am

Re: Conky Showoff thread

Post by Sector11 » Sat Feb 06, 2016 2:46 pm

mzsade wrote:You have always been my inspiration when it comes to all things Conky, this tilt towards minimalism is something i've acquired from @HOAS of Crunchbang forums fame, and even though i have none of his grasp of Linux i've had a fair amount of success in aping him. :lol:
A sed related site i recently exploited for my conky; http://www.folkstalk.com/2013/03/sed-re ... mples.html
Thank you for the kind words. Do yourself a favour and at least check out Teo's scripts; No matter how much info they grab with one wget call --- you can pick and choose what information you want to show. ie: a little - a lot and by a lot when it come to the Wunderground script - a lot is a LOT.

I agree about HoaS - wish I had half the knowledge he has. He's at BunsenLabs now, the continuation of #! :)

Minimum huh ... check out "inxi" :twisted:
-w for "local" weather - your ISP
-W for weather in another location

Code: Select all

 06 Feb 16 @ 15:04:16 ~
  $ inxi -w
Weather:   Conditions: 84 F (29 C) - Partly Cloudy Time: February 6, 3:25 PM ART
 
 06 Feb 16 @ 15:25:13 ~
  $ inxi -W Mumbai,India
Weather:   Conditions: 75 F (24 C) - haze Time: February 6, 11:55 PM IST
 
 06 Feb 16 @ 15:25:36 ~
  $ 
And then there is the -x options (only showing how it applies to weather here):

Code: Select all

-w     Local weather data/time. To check an alternate location, see: -W <location>. For extra weather data
       options see -x, -xx, and -xxx.
-W     <location> Supported options for <location>: postal code; city, state/country; latitude/longitude. Only
       use if you want the weather somewhere other than the machine running inxi. Use only ascii characters,
       replace spaces in city/state/country names with '+'. Example: inxi -W new+york,ny
-x     Adds the following extra data (only works with verbose or line output, not short form):
      -w -W  Wind speed and time zone (-w only).
-xx    Show extra, extra data (only works with verbose or line output, not short form):
      -w -W  Humidity, barometric pressure.
-xxx   Show extra, extra, extra data (only works with verbose or line output, not short form):
      -w -W  Location (uses -z/irc filter), weather observation time, wind chill, heat index, dew point (shows
             extra lines for data where relevant).
as in:

Code: Select all

 06 Feb 16 @ 15:29:36 ~
  $ inxi -xxxw
Weather:   Conditions: 84 F (29 C) - Partly Cloudy Wind: From the SE at 17 MPH Humidity: 66%
           Pressure: 29.98 in (1015 mb) Heat Index: 90 F (32 C)
           Location: Buenos Aires 07 (ARG) Altitude: 6 ft
           Time: February 6, 3:29 PM ART (America/Argentina/Buenos_Aires) Observation Time: February 6, 3:00 PM ART
 
 06 Feb 16 @ 15:29:44 ~
  $ inxi -xxxW Mumbai,India
Weather:   Conditions: 75 F (24 C) - haze Wind: From the WNW at 5 MPH Humidity: 61%
           Pressure: 29.95 in (1014 mb) Location: Mumbai (IN) Altitude: 14 ft
           Time: February 7, 12:00 AM IST Observation Time: February 6, 11:30 PM IST
 
 06 Feb 16 @ 15:30:04 ~
  $ 
But in conky you say ... now this I picked up here in LinuxMint I think - either way, not my idea, I'm just trying to tweak it so it will always work:

Code: Select all

TEXT
${alignc}INXI Current Weather

${color5}Buenos Aires, Argentina${color}${execi 600 inxi -xxxw | sed -n 1,2p | cut -c12- | awk '{gsub(/Conditions:/,"\n&");print}' | awk '{gsub(/ - /,"\n&");print}' | awk '{gsub(/Humidity:/,"\n&");print}' | awk '{gsub(/Wind:/,"\n&");print}' | awk '{gsub(/Gusting/,"\n&");print}' | awk '{gsub(/Wind Chill:/,"\n&");print}'| awk '{gsub(/Heat Index:/,"\n&");print}' | awk '{gsub(/Location:/,"\n&");print}' | awk '{gsub(/Altitude:/,"\n&");print}'}

${color5}Mumbai, India${color}${execi 600 inxi -xxxW Mumbai,India | sed -n 1,2p | cut -c12- | awk '{gsub(/Conditions:/,"\n&");print}' | awk '{gsub(/ - /,"\n&");print}' | awk '{gsub(/Humidity:/,"\n&");print}' | awk '{gsub(/Wind:/,"\n&");print}' | awk '{gsub(/Gusting/,"\n&");print}' | awk '{gsub(/Wind Chill:/,"\n&");print}'| awk '{gsub(/Heat Index:/,"\n&");print}' | awk '{gsub(/Location:/,"\n&");print}' | awk '{gsub(/Altitude:/,"\n&");print}' | awk '{gsub(/Time:/,"\n&");print}' | awk '{gsub(/Observation/,"\n&");print}'}

---- 2x
${color5}Buenos Aires, Argentina${color}${execi 600 inxi -xxw | sed -n 1,2p | cut -c12- | awk '{gsub(/Conditions:/,"\n&");print}' | awk '{gsub(/ - /,"\n&");print}' | awk '{gsub(/Humidity:/,"\n&");print}' | awk '{gsub(/Wind:/,"\n&");print}' | awk '{gsub(/Gusting/,"\n&");print}' | awk '{gsub(/Wind Chill:/,"\n&");print}'| awk '{gsub(/Heat Index:/,"\n&");print}' | awk '{gsub(/Location:/,"\n&");print}' | awk '{gsub(/Altitude:/,"\n&");print}'}

---- 1x
${color5}Buenos Aires, Argentina${color}${execi 600 inxi -xw | sed -n 1,2p | cut -c12- | awk '{gsub(/Conditions:/,"\n&");print}' | awk '{gsub(/ - /,"\n&");print}' | awk '{gsub(/Humidity:/,"\n&");print}' | awk '{gsub(/Wind:/,"\n&");print}' | awk '{gsub(/Gusting/,"\n&");print}' | awk '{gsub(/Wind Chill:/,"\n&");print}'| awk '{gsub(/Heat Index:/,"\n&");print}' | awk '{gsub(/Location:/,"\n&");print}' | awk '{gsub(/Altitude:/,"\n&");print}'}

---- no x
${color5}Buenos Aires, Argentina${color}${execi 600 inxi -w | sed -n 1,2p | cut -c12- | awk '{gsub(/Conditions:/,"\n&");print}' | awk '{gsub(/ - /,"\n&");print}' | awk '{gsub(/Humidity:/,"\n&");print}' | awk '{gsub(/Wind:/,"\n&");print}' | awk '{gsub(/Gusting/,"\n&");print}' | awk '{gsub(/Wind Chill:/,"\n&");print}'| awk '{gsub(/Heat Index:/,"\n&");print}' | awk '{gsub(/Location:/,"\n&");print}' | awk '{gsub(/Altitude:/,"\n&");print}'}
Image

I think that sed related site you just gave me will help in my inxi quest :)
Thank you
Using: BunsenLabs based on Debian Stable.
Conky PitStop

3fRI
Level 4
Level 4
Posts: 229
Joined: Sat Nov 20, 2010 10:25 am
Location: State of Confusion

Re: Conky Showoff thread

Post by 3fRI » Sat Feb 06, 2016 3:17 pm

@ sector11: fancy meeting YOU here!!!

p.s. Ah, you know me as g33zr. :lol:
System 76 Pangolin: 4x Intel(R) Core(TM) i5-3230M CPU @ 2.60GHz, Manjaro 15.12 Capella Xfce/Cinnamon 64-bit
iMac 21.5: Intel Core 2 Duo 3.06 GHz, Mac OS 10.11

[iWhat? Me worry?[/i]

User avatar
Sector11
Level 3
Level 3
Posts: 175
Joined: Mon Nov 22, 2010 10:33 am

Re: Conky Showoff thread

Post by Sector11 » Sat Feb 06, 2016 5:00 pm

3fRI wrote:@ sector11: fancy meeting YOU here!!!

p.s. Ah, you know me as g33zr. :lol:
Well hello there 3Fri aka g33zr, coffee's on want one? Brand new expresso machine - and I promise no additives. :lol:

Of course I'm here - it's a conky thread isn't it.
Been here for a long time, just getting more active now.
Using: BunsenLabs based on Debian Stable.
Conky PitStop

3fRI
Level 4
Level 4
Posts: 229
Joined: Sat Nov 20, 2010 10:25 am
Location: State of Confusion

Re: Conky Showoff thread

Post by 3fRI » Sat Feb 06, 2016 5:11 pm

:lol: The "Conky Guy" strikes again!

So, why am I here? I'm running LM Cinnamon on my aging iMac since the machine was acting up with other distros. Anyway, as I was skimming through the forums, I spotted your alias. Meanwhile thanks for the espresso. Gotta keep the old bones shakin'! :lol:
System 76 Pangolin: 4x Intel(R) Core(TM) i5-3230M CPU @ 2.60GHz, Manjaro 15.12 Capella Xfce/Cinnamon 64-bit
iMac 21.5: Intel Core 2 Duo 3.06 GHz, Mac OS 10.11

[iWhat? Me worry?[/i]

User avatar
Sector11
Level 3
Level 3
Posts: 175
Joined: Mon Nov 22, 2010 10:33 am

Re: Conky Showoff thread

Post by Sector11 » Sat Feb 06, 2016 6:45 pm

3fRI wrote::lol: The "Conky Guy" strikes again!
I never strike, I may tap a shoulder here and there, sneak up behind - but never strike.

Yea, I knew you were a "Minty" you've mentioned it in other places far far away. I'm here 'cuz I need a place to conky. ;)
And this thread need some beefing up :)

Quick (off topic) question: What do you think of 'pluma' ??
Scrap that, that's Mate! Sorry!
Using: BunsenLabs based on Debian Stable.
Conky PitStop

User avatar
mzsade
Level 5
Level 5
Posts: 777
Joined: Sun Jul 19, 2009 4:36 am

Re: Conky Showoff thread

Post by mzsade » Sat Feb 06, 2016 7:56 pm

Those inxi options are so awesome! Why haven't i come across those before, never mind, i am a freakin' dinosaur, that's why. Thank you Sector11, you are a veritable fountain of knowledge. :D
Linux User #481272 Reg: 15th Sept., 2008

User avatar
Sector11
Level 3
Level 3
Posts: 175
Joined: Mon Nov 22, 2010 10:33 am

Re: Conky Showoff thread

Post by Sector11 » Sat Feb 06, 2016 8:35 pm

mzsade wrote:Those inxi options are so awesome! Why haven't i come across those before, never mind, i am a freakin' dinosaur, that's why. Thank you Sector11, you are a veritable fountain of knowledge. :D
hehehehe over 60,000 apps in the repos - you can't be expected to know them all!

Besides, your not a dinosaur until you can join an Over the Hill Gang.
Any Over the Hill Gang, not just that one.

You know you're old when your son asks:
Hey dad, did grampa let you use the family dinosaur to pick up mom on dates?
True story .. I wanted to {cough cough} ... well, never mind.
Using: BunsenLabs based on Debian Stable.
Conky PitStop

User avatar
mzsade
Level 5
Level 5
Posts: 777
Joined: Sun Jul 19, 2009 4:36 am

Re: Conky Showoff thread

Post by mzsade » Sun Feb 07, 2016 11:01 pm

dump.png
I was looking for a way to grab an image from a webpage and display it in conky and after trying out a lot of wget and curl scripts that didn't work i stumbled on cutycapt. This is outrageous but i just couldn't resist! :lol:

Code: Select all

conky.text = [[
${execi 20 cutycapt --url=http://www.timeanddate.com/weather/india/mumbai --out=mweather.png}
${image ~/mweather.png -n -f 60}
]]
This is just for demonstration, of course i am not going to continue using it, i prefer my ugly labor of love.
Linux User #481272 Reg: 15th Sept., 2008

User avatar
Sector11
Level 3
Level 3
Posts: 175
Joined: Mon Nov 22, 2010 10:33 am

Re: Conky Showoff thread

Post by Sector11 » Mon Feb 08, 2016 7:15 am

mzsade wrote:This is just for demonstration, of course i am not going to continue using it, i prefer my ugly labor of love.
There is nothing ugly about a labour of love. Beauty is in the eye of the conky creator. :lol: :lol: :lol:

That's a pretty neat application of "cutycapt" though. :)
Must play with it. Thanks
Using: BunsenLabs based on Debian Stable.
Conky PitStop

User avatar
mzsade
Level 5
Level 5
Posts: 777
Joined: Sun Jul 19, 2009 4:36 am

Re: Conky Showoff thread

Post by mzsade » Mon Feb 08, 2016 9:41 am

Sector11 wrote: Must play with it. Thanks
My pleasure, try it with the imagemagick <convert yourimage.png -crop wxh+someoffset+anotheroffset output.png> option in the cutycapt command line to get it exactly as you want. I gave it up after a few attempts, it was too tedious. :)
Linux User #481272 Reg: 15th Sept., 2008

User avatar
Sector11
Level 3
Level 3
Posts: 175
Joined: Mon Nov 22, 2010 10:33 am

Re: Conky Showoff thread

Post by Sector11 » Mon Feb 08, 2016 10:29 am

mzsade wrote:I gave it up after a few attempts, it was too tedious. :)
I found it "stole" usable desktop space for my right-click OpenBox menu - even after my test conky was killed:

I can centre|right click on all my conkys to:
1. get at OpenBox
2. move them (ALT+left click)
3. resize them (ALT+right click)
Just by using:

Code: Select all

own_window normal
So until I figure out why it's stealing that area of my desktop, it will be just trying things in a terminal.

Yea, definitely resizing to the size desired is a big plus.
Remember our conversation via Habitual about images and sizing vs CPU usage. :wink:
Using: BunsenLabs based on Debian Stable.
Conky PitStop

User avatar
mzsade
Level 5
Level 5
Posts: 777
Joined: Sun Jul 19, 2009 4:36 am

Re: Conky Showoff thread

Post by mzsade » Mon Feb 08, 2016 10:35 am

Oh yes! That's only for the extravagant hobbyist and the artist. But no harm in trying it out just to check it out. :)

Here's my settings, i adjusted the gap_x and the minimum_height, minimum_width variables to get the conky window i posted before using cutycap.

Code: Select all

conky.config = {
    alignment = 'top_right',
    background = false,
    cpu_avg_samples = 4,
    top_cpu_separate = false,
    default_color = '#E2E2E2',
    draw_borders = false,
    border_width = 4,
    border_inner_margin = 3,
    use_xft = true,
    font = 'DejaVu Sans Mono:bold:size=11',
    gap_x = 387,
    gap_y = 10,
    net_avg_samples = 2,
    no_buffers = true,
    double_buffer = true,
    out_to_console = false,
    out_to_stderr = false,
    extra_newline = false,
    minimum_height = 520,
    minimum_width = 800,	
    own_window = true,
    own_window_type = 'normal',
    own_window_hints = 'undecorated,below,sticky,skip_taskbar',
    own_window_class = 'Conky',
    own_window_transparent = true,
    override_utf8_locale = true,
    stippled_borders = 0,
    update_interval = 10,
    uppercase = false,
    use_spacer = 'none',
    hddtemp_host,
    hddtemp_port,
    hddtemp_refresh,
    temperature_unit = celsius,
}
Linux User #481272 Reg: 15th Sept., 2008

User avatar
Sector11
Level 3
Level 3
Posts: 175
Joined: Mon Nov 22, 2010 10:33 am

Re: Conky Showoff thread

Post by Sector11 » Mon Feb 08, 2016 12:02 pm

mzsade wrote:Oh yes! That's only for the extravagant hobbyist and the artist. But no harm in trying it out just to check it out. :)
OH, I agree. Testing is a great bit of fun. It's what I have a permanent test conky
I'm still playing .. :roll:

Regarding these...

Code: Select all

    minimum_height = 520,
    minimum_width = 800,	

    hddtemp_host,
    hddtemp_port,
    hddtemp_refresh,
Two question and a request.

1. Does conky v1.10 really have a "minimum_height" or is it like v1.9 "minimum_size" = height (width)
- - if it does I owe someone an apology.

2. same with hddtemp_refresh, that exists in v1.10?
- - doesn't exist in v1.90

Request:
Not the best method but could you post a text file of the conky v1.10 man page?
Thanks.
Using: BunsenLabs based on Debian Stable.
Conky PitStop

User avatar
mzsade
Level 5
Level 5
Posts: 777
Joined: Sun Jul 19, 2009 4:36 am

Re: Conky Showoff thread

Post by mzsade » Mon Feb 08, 2016 2:35 pm

I tried, the man page is just too big, cannot be accomodated in the forum..i can confirm this, hddtemp just as in the previous version, all you have to do is permit it to run at startup during configuration.
Linux User #481272 Reg: 15th Sept., 2008

User avatar
mzsade
Level 5
Level 5
Posts: 777
Joined: Sun Jul 19, 2009 4:36 am

Re: Conky Showoff thread

Post by mzsade » Mon Feb 08, 2016 2:39 pm

I tried, the man page is just too big, cannot be accomodated in the forum..but i can confirm this, hddtemp works just as in the previous version, all you have to do is permit it to run at startup during initial configuration, administrative privileges for it are not essential.
Edit: System froze while making this post and i see now that i've repeated it, would the moderator (@xenopeek) be so kind as to remove the clutter.. :)
Linux User #481272 Reg: 15th Sept., 2008

User avatar
Sector11
Level 3
Level 3
Posts: 175
Joined: Mon Nov 22, 2010 10:33 am

Re: Conky Showoff thread

Post by Sector11 » Mon Feb 08, 2016 3:02 pm

Thank you for trying ... I was just asking about the "hddtemp_refresh" command in v1.10. It doesn't exist in v1.9

As for setting it up (in case others are reading) I have my little cheatsheet:

Code: Select all

To recongigure hddtemp
sudo dpkg-reconfigure hddtemp
Answers: No, 0, Yes, OK, OK
at least that works with Debian Stable.
Then in conky:

Code: Select all

${hddtemp /dev/sda}°
I'll have to log into one of my other installs ... and install conky v1.10 I guess.
Using: BunsenLabs based on Debian Stable.
Conky PitStop

User avatar
mzsade
Level 5
Level 5
Posts: 777
Joined: Sun Jul 19, 2009 4:36 am

Re: Conky Showoff thread

Post by mzsade » Mon Feb 08, 2016 3:13 pm

When it comes to hddtemp, the same conky with the appropriate changes in notation works for both my LMDE and Debian Sid partitions..i've had problems with other aspects (mentioned in an unanswered previous post) but none with it....
Edit: Nothing like a few well placed Tuxes to make your stark conky cheerful. :D
Last edited by mzsade on Mon Feb 08, 2016 9:29 pm, edited 1 time in total.
Linux User #481272 Reg: 15th Sept., 2008

User avatar
Sector11
Level 3
Level 3
Posts: 175
Joined: Mon Nov 22, 2010 10:33 am

Re: Conky Showoff thread

Post by Sector11 » Mon Feb 08, 2016 4:35 pm

@ mzsade

You need a better Tux than that. :wink:

Check out this neat TUX ... Stycil Tux (by cheese) :arrow: I have the .svg and the two .png's

Then there's: Image
Using: BunsenLabs based on Debian Stable.
Conky PitStop

User avatar
mzsade
Level 5
Level 5
Posts: 777
Joined: Sun Jul 19, 2009 4:36 am

Re: Conky Showoff thread

Post by mzsade » Mon Feb 08, 2016 9:27 pm

Thanks, makes all the difference. :D Mine was from the Tux gallery, looked a bit tacky with that white outline.
scrot.png
How does that stencil work? I mean on a computer, can you fill it out as easily on Gimp or something..?
Linux User #481272 Reg: 15th Sept., 2008

User avatar
Sector11
Level 3
Level 3
Posts: 175
Joined: Mon Nov 22, 2010 10:33 am

Re: Conky Showoff thread

Post by Sector11 » Mon Feb 08, 2016 10:07 pm

mzsade wrote:How does that stencil work? I mean on a computer, can you fill it out as easily on Gimp or something..?
Yup, looks NICE! ...
Do anything you want with them. :)
Image
Using: BunsenLabs based on Debian Stable.
Conky PitStop

Post Reply

Return to “Compiz, Conky, Docks, & Widgets”