SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#2376 2011-06-14 03:39:05

mrpeachy
20% cooler
From: The Everfree Forest
Registered: 2009-11-08
Posts: 3,460

Re: My Conky Config

im just playing around, got interested in interactive conky

how about a moc info display with interactive buttons to control moc?
again in early stages and things still to work out!
but all the buttons do what they say
works with playlist, so need one set up first

2011_06_13_223551_1440x900_scrot.jpg

does that defeat the purpose of a console player? big_smile

Last edited by mrpeachy (2011-06-14 03:40:23)

Offline

Help fund CrunchBang, donate to the project!

#2377 2011-06-14 09:17:36

dogmatictea
Member
From: South Korea
Registered: 2011-03-04
Posts: 12

Re: My Conky Config

mrpeachy wrote:

im just playing around, got interested in interactive conky

how about a moc info display with interactive buttons to control moc?
again in early stages and things still to work out!
but all the buttons do what they say
works with playlist, so need one set up first

2011_06_13_223551_1440x900_scrot.jpg

does that defeat the purpose of a console player? big_smile

This will be juicy for fluxbox indefinitely! (even though I'm on a netbook and use the multimedia keys[maybe i'll set the multimedia keys to VLC now] I'm going to analyze everything you do so I can do this on rhythmbox and set the pause/play next and prev buttons underneath my current setup.) Keep it up! I'm morphing your work into something making my netbook feel exactly like me. smile

Wait...does this mean clickable RSS? (I don't remember if it's been done.. I'd love my facebook feed so I'm not always needing to be on chromium.)

Current setup: th_screenshot-5.png


--Doesn't matter how you comment
##Just make it count.

Offline

#2378 2011-06-14 16:48:59

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 13,408
Website

Re: My Conky Config

mrpeachy wrote:

does that defeat the purpose of a console player? big_smile

I've tried a few "consol players" and to be honest I like the screen clean, a space for conky is always an exception, so the terminal with MOC running is just fine, minimized when now wanted and opened when needed.

But I'll watch this with interest.

Offline

#2379 2011-06-14 18:19:48

anonymous
The Mystery Member
From: Arch Linux Forums
Registered: 2008-11-29
Posts: 9,418

Re: My Conky Config

mrpeachy wrote:

im just playing around, got interested in interactive conky

how about a moc info display with interactive buttons to control moc?
again in early stages and things still to work out!
but all the buttons do what they say
works with playlist, so need one set up first

2011_06_13_223551_1440x900_scrot.jpg

does that defeat the purpose of a console player? big_smile

If you could make it work for different players like MPD, that would be cool! big_smile

Offline

#2380 2011-06-14 18:55:17

mrpeachy
20% cooler
From: The Everfree Forest
Registered: 2009-11-08
Posts: 3,460

Re: My Conky Config

anonymous wrote:

If you could make it work for different players like MPD, that would be cool! big_smile

as long as you can control the player with console commands then it would be easy to switch from player to player

its actually a pretty simple mechanism, each button overwrites a different number to a text file, then the lua script reads the text file and executes the appropriate command and adjusts the text file as needed

i'm gonna try out my hand at gimp to make some nice buttons and eliminate the need for labels which will shrink the control panel down considerably.
Then it could be easily integrated into a conky config, rather than be used as a standalone display

edit ... maybe it would be easier to have the buttons send the commands directly, and then just have the lua script detect the state of moc for the display part
but then i would need to write other scripts if i wanted a button to be able to perform more than 1 action based on player status...

Last edited by mrpeachy (2011-06-14 19:18:47)

Offline

#2381 2011-06-14 20:55:49

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 13,408
Website

Re: My Conky Config

mrpeachy wrote:
anonymous wrote:

If you could make it work for different players like MPD, that would be cool! big_smile

as long as you can control the player with console commands then it would be easy to switch from player to player

its actually a pretty simple mechanism, each button overwrites a different number to a text file, then the lua script reads the text file and executes the appropriate command and adjusts the text file as needed

i'm gonna try out my hand at gimp to make some nice buttons and eliminate the need for labels which will shrink the control panel down considerably.
Then it could be easily integrated into a conky config, rather than be used as a standalone display

edit ... maybe it would be easier to have the buttons send the commands directly, and then just have the lua script detect the state of moc for the display part
but then i would need to write other scripts if i wanted a button to be able to perform more than 1 action based on player status...

Why not use icons that are already done?

Exclusive Free Multimedia Icon Set – 14 Icons in PNG and AI Formats

Your time working on and creating great LUA scripts should not be wasted on something that is already done for you.  smile

thmb_icons.png

Offline

#2382 2011-06-14 21:05:01

mrpeachy
20% cooler
From: The Everfree Forest
Registered: 2009-11-08
Posts: 3,460

Re: My Conky Config

Sector11 wrote:

Why not use icons that are already done?

Exclusive Free Multimedia Icon Set – 14 Icons in PNG and AI Formats

Your time working on and creating great LUA scripts should not be wasted on something that is already done for you.  smile

yes... i came to the same conclusion big_smile
ive been looking for icons to use.  I don't want anything too fancy, just flat b/w i found this set
http://www.gentleface.com/free_icon_set.html
which should fit

also re mpd... after a little persuasion I have it (and mpc) up and running
i have to think about how i want the buttons to behave and some design now smile

Last edited by mrpeachy (2011-06-14 21:06:41)

Offline

#2383 2011-06-14 22:22:52

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 13,408
Website

Re: My Conky Config

mrpeachy wrote:
Sector11 wrote:

Why not use icons that are already done?

Exclusive Free Multimedia Icon Set – 14 Icons in PNG and AI Formats

Your time working on and creating great LUA scripts should not be wasted on something that is already done for you.  smile

yes... i came to the same conclusion big_smile
ive been looking for icons to use.  I don't want anything too fancy, just flat b/w i found this set
http://www.gentleface.com/free_icon_set.html
which should fit

also re mpd... after a little persuasion I have it (and mpc) up and running
i have to think about how i want the buttons to behave and some design now smile


OH!!!  I like those too .. got 'em!  Thanks...
{sippin' my coffee waiting}

Offline

#2384 2011-06-15 00:10:48

hobbes
New Member
Registered: 2011-06-04
Posts: 8

Re: My Conky Config

Sector11 asked me on the June Screenshot thread to post my conky, so here it is.

http://crunchbanglinux.org/pastebin/1077

I adapted it (basically changed colors and width) from a iggykoopa and arpinux post somewhere on this thread.

I call it with this:

lua_load ~/scripts/.lua/vert_bars.lua
lua_draw_hook_pre bar_stats

smile

If you want to see how it looks like...
tOTJobw

Offline

#2385 2011-06-15 02:50:25

mrpeachy
20% cooler
From: The Everfree Forest
Registered: 2009-11-08
Posts: 3,460

Re: My Conky Config

here's a mpd player
the buttons simply send the appropriate commands directly to mdc
the only lua script is to draw the background
the info is generated in the conkyrc

2011_06_14_214557_1440x900_scrot.jpg

unzip in ~/
run using the launch script if you want to try smile
http://ompldr.org/vOTJpaw

needs some tweaks in terms of spacing...and i think i'll reduce the icon size
the icon size and position are determined in the files in the adesk folder

mpc has the command to play a song at a given position in the playlist, so play 200 plays the 200th song...
i have in idea to put a track number selector function using a lua script

possibly add more controls... lets just say a work in progress!

just realised the bg script isn't in the tar.gz

this is is (i have it called as backgroundtest.lua in the conkyrc)

--[[Background originally by londonali1010 (2009)
    ability to set any size for background mrpeachy 2011
    ability to set variables for bg in conkyrc dk75
]]

require 'cairo'
local    cs, cr = nil
function rgb_to_r_g_b(colour,alpha)
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end
function conky_draw_bg(r,x,y,w,h,color,alpha)
if conky_window == nil then return end
if cs == nil then cairo_surface_destroy(cs) end
if cr == nil then cairo_destroy(cr) end
local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
local cr = cairo_create(cs)
cairo_set_source_rgba (cr,rgb_to_r_g_b(color,alpha))
--top left mid circle
local xtl=x+r
local ytl=y+r
--top right mid circle
local xtr=(x+r)+((w)-(2*r))
local ytr=y+r
--bottom right mid circle
local xbr=(x+r)+((w)-(2*r))
local ybr=(y+r)+((h)-(2*r))
--bottom right mid circle
local xbl=(x+r)
local ybl=(y+r)+((h)-(2*r))
-----------------------------
cairo_move_to (cr,xtl,ytl-r)
cairo_line_to (cr,xtr,ytr-r)
cairo_arc(cr,xtr,ytr,r,((2*math.pi/4)*3),((2*math.pi/4)*4))
cairo_line_to (cr,xbr+r,ybr)
cairo_arc(cr,xbr,ybr,r,((2*math.pi/4)*4),((2*math.pi/4)*1))
cairo_line_to (cr,xbl,ybl+r)
cairo_arc(cr,xbl,ybl,r,((2*math.pi/4)*1),((2*math.pi/4)*2))
cairo_line_to (cr,xtl-r,ytl)
cairo_arc(cr,xtl,ytl,r,((2*math.pi/4)*2),((2*math.pi/4)*3))
cairo_close_path(cr)
cairo_fill (cr)
------------------------------------------------------------
cairo_surface_destroy(cs)
cairo_destroy(cr)
return ""
end

edit
2011_06_14_235959_1440x900_scrot.jpg
added some buttons
random on/off, repeat on/off, remove track from playlist

also made the info scroll in conkyrc and added a curved corner background behind the controls
will update archive at some point

Last edited by mrpeachy (2011-06-15 05:25:32)

Offline

#2386 2011-06-15 11:44:00

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 13,408
Website

Re: My Conky Config

hobbes wrote:

Sector11 asked me on the June Screenshot thread to post my conky, so here it is.

http://crunchbanglinux.org/pastebin/1077

I adapted it (basically changed colors and width) from a iggykoopa and arpinux post somewhere on this thread.

I call it with this:

lua_load ~/scripts/.lua/vert_bars.lua
lua_draw_hook_pre bar_stats

smile

If you want to see how it looks like...
tOTJobw

Thank hobbs....  I must have missed iggykoopa & arpinux's posts.
Shame on me.  Sorry guys!

Offline

#2387 2011-06-15 20:22:37

mrpeachy
20% cooler
From: The Everfree Forest
Registered: 2009-11-08
Posts: 3,460

Re: My Conky Config

i think im happy with my mpd player for now
perhaps the icons are a little thick...

2011_06_15_152008_1440x900_scrot.jpg

here are all the files you need
http://ompldr.org/vOTJ5Yw

unzip to home directory

a couple of changes to conky mpd player

i wasnt happy with those icons some i made some myself, they are thinner and fit better in the boxes
also added some color change options and backgrounds

2011_06_16_150749_1440x900_scrot.jpg

if anyone wants the new files then i can upload them

Last edited by mrpeachy (2011-06-16 20:11:32)

Offline

#2388 2011-06-17 16:02:28

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 13,408
Website

Re: My Conky Config

Got thinking today about ...

How minimal can a conky be?

TEXT
This is a test - a very minimal conky!
There is NOTHING above TEXT.
It updates every 3 seconds.
Time to play.

  Time: ${time %R:%S}
  Date: ${time %a, %d %b. %y}
Uptime: ${uptime}
   CPU: ${cpu} %

thmb_minimal.png

That pretty minimal...
I wonder if it works in Xfce, GNOME KDE and other DE / WM environments other than OpenBox.

Offline

#2389 2011-06-17 16:16:16

machinebacon
#! unstable
From: China
Registered: 2009-07-02
Posts: 6,825
Website

Re: My Conky Config

Sector11, I have just tried it in XFCE.
http://www.zimagez.com/zimage/screensho … 1444am.php
screenshot-06182011-121444am.php

Such a sad little conky. hmm

Last edited by machinebacon (2011-06-17 16:16:31)


Sweaty lads picking up the soap | I love the new "Ignore user" button

Offline

#2390 2011-06-17 17:23:53

mrpeachy
20% cooler
From: The Everfree Forest
Registered: 2009-11-08
Posts: 3,460

Re: My Conky Config

radar conky showing the nasty weather currently occurring!

2011_06_17_122105_1440x900_scrot.jpg

Offline

#2391 2011-06-17 17:43:53

VastOne
#! Ranger
From: V-Ger
Registered: 2011-04-26
Posts: 10,165
Website

Re: My Conky Config

mrpeachy wrote:

radar conky showing the nasty weather currently occurring!

2011_06_17_122105_1440x900_scrot.jpg

Impressive... 

Nice work mrpeachy and, BTW, find some shelter....


VSIDO | Words That Build Or Destroy

We do not run from challenges, they become new innovations within VSIDO!

Offline

#2392 2011-06-17 17:48:20

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 13,282

Re: My Conky Config

mrpeachy wrote:

radar conky showing the nasty weather currently occurring!

2011_06_17_122105_1440x900_scrot.jpg

Damn, that's one hell of a hook echo!

After that storm passes, could you post the rc file?

Offline

#2393 2011-06-17 17:58:54

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 13,408
Website

Re: My Conky Config

machinebacon wrote:

Sector11, I have just tried it in XFCE.

Such a sad little conky. hmm

Yea, but it was just a test to see what happens with nothing above TEXT ...
... playing a bit more I ran into problems  big_smile

Offline

#2394 2011-06-17 18:01:15

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 13,408
Website

Re: My Conky Config

mrpeachy wrote:

radar conky showing the nasty weather currently occurring!

2011_06_17_122105_1440x900_scrot.jpg

Wow nice LUA call ...

I agree with VO - find shelter ... like, yesterday.
What's a hook?
Regardless, that doesn't look good at all!

Offline

#2395 2011-06-17 18:04:58

mrpeachy
20% cooler
From: The Everfree Forest
Registered: 2009-11-08
Posts: 3,460

Re: My Conky Config

pvsage wrote:
mrpeachy wrote:

radar conky showing the nasty weather currently occurring!

2011_06_17_122105_1440x900_scrot.jpg

Damn, that's one hell of a hook echo!

After that storm passes, could you post the rc file?

I just started working on this one

its all based off of the info found on this page
http://forecast.weather.gov/jetstream/d … wnload.htm

im using a lua file to do the wget and image displaying, but you could do it in the conkyrc with execi

i downloaded all the background images and overlays and have them saved as they don't change

for me

http://radar.weather.gov/ridge/RadarImg/N0R/LSX_N0R_0.gif
http://radar.weather.gov/ridge/Legend/N0R/LSX_N0R_Legend_0.gif
http://radar.weather.gov/ridge/Warnings/Short/LSX_Warnings_0.gif

gets the the radar image, the legend and text and the warnings respectively

LSX is my location, you can get the location to use at the bottom of the link

i'll post everything once its all done, i hope to get a little animated progression of the past few radar images

Question
how do i get wget to overwrite files each time?

just wget without options downloads the new images but renames them, so they dont get displayed
using the -N option to turn on timestamping doesn't work in this particular case

what i am having to do right now is remove the files before wget activates

Last edited by mrpeachy (2011-06-17 18:11:04)

Offline

#2396 2011-06-17 18:42:01

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 13,282

Re: My Conky Config

Sector11 wrote:

What's a hook?

A hook echo is caused by a rear flank downdraft.  It means if you have a storm cellar, you should get in it.

Offline

#2397 2011-06-17 19:30:13

Philémon Labulle
New Member
Registered: 2011-06-17
Posts: 1
Website

Re: My Conky Config

Hello,
I have "make" my first conkyrc about "the myth of Cthulhu". Don't be scared ! smile
I used fonts : Cthulhu Glyphs , King & QueenManyweatz and Hylian Symbols.
1308248676.png

background yes
    use_xft yes
    xftfont HandelGotD:size=8
    xftalpha 0.5
    update_interval 1.0
    total_run_times 0
    own_window yes
    own_window_type normal
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    double_buffer yes
    minimum_size 270 5
    maximum_width 190
    draw_shades no
    draw_outline no
    draw_borders no
    draw_graph_borders yes
    default_color ffffff
    default_shade_color red
    default_outline_color green
    alignment top_right
    gap_x 5
    gap_y 5
    no_buffers yes
    uppercase no
    cpu_avg_samples 2
    override_utf8_locale yes


TEXT
${alignc 39}${font ManyWeatz:size=20}Cthulhu fhtagn !${font}


${alignc 20}${font Hylian Symbols:size=50}f${font}
${font Cthulhu Glyphs:size=25}W${font} ${voffset -18}${font the King & Queen font:size=10}Cthulhu ${font} ${hr 2}

${font Arial:style=Bold:size=12}#!${font}CrunchBang Linux ${alignr}08.10.01
${font Cthulhu Glyphs:size=20}f${font}${alignr}Kernel:  ${alignr}${kernel}
${font Cthulhu Glyphs:size=20}W${font}${alignr}CPU: ${cpu cpu0}% ${alignr}${cpubar cpu0 8,60}
${font Cthulhu Glyphs:size=20}x${font}${alignr}RAM: $memperc% ${alignr}${membar 8,60}
${font Cthulhu Glyphs:size=20}7${font}${alignr}SWAP: $swapperc% ${alignr}${swapbar 8,60}
${font Cthulhu Glyphs:size=20}V${font}${alignr}Uptime: ${uptime}


${font Cthulhu Glyphs:size=20}N${font} ${voffset -18}${font the King & Queen font:size=10}Shub-Niggurath${font} ${hr 2}

NAME $alignr PID    CPU
${top name 1} $alignr ${top pid 1} ${top cpu 1}
${top name 2} $alignr ${top pid 2} ${top cpu 2}
${top name 3} $alignr ${top pid 3} ${top cpu 3}
 
    
${font Cthulhu Glyphs:size=25}9${font} ${voffset -20}${font the King & Queen font:size=10}Necronomicon${font} ${hr 2}

${voffset 4} ${font Cthulhu Glyphs:size=20}i${font}   ${voffset -5}Root: ${alignr}${fs_bar 8,60 /}

${font Cthulhu Glyphs:size=20}a${font}   ${voffset -5}Home: ${alignr}${fs_bar 8,60 /home}


${font Cthulhu Glyphs:size=25}2${font} ${voffset -18}${font the King & Queen font:size=10}Yog-Sothoth${font} ${hr 2}


${voffset -6}${font Cthulhu Glyphs:size=20}C${font} Up: ${upspeed wlan0} kb/s ${alignr}${upspeedgraph wlan0 8,60 F57900 FCAF3E}
${voffset 4} ${font Cthulhu Glyphs:size=20}z${font} Down: ${downspeed wlan0} kb/s ${alignr}${downspeedgraph wlan0 8,60 F57900 FCAF3E}

${voffset 8}${font Cthulhu Glyphs:size=25}m${font}${voffset -18}${font the King & Queen font:size=10}Nyarlathotep ${hr}${font}

Carte Mère:${alignr} ${exec sensors | grep temp1 | awk '{ print $2}'}
Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn

Offline

#2398 2011-06-18 18:27:54

Dodge ram
#! CrunchBanger
Registered: 2011-04-26
Posts: 140

Re: My Conky Config

Mrpeachy, How are you coming along with the conky radar? I am really interested in it.

Offline

#2399 2011-06-18 22:04:47

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 13,408
Website

Re: My Conky Config

Philémon Labulle wrote:

Hello,
I have "make" my first conkyrc about "the myth of Cthulhu". Don't be scared ! smile

Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn

Great stuff I love H. P. Lovecraft!  And a very nice first conky as well!  A lot better than my first.

I see you have a problem:
P_Labulle.png
with the ending:

Cartre Mere:   +54.0À°C
not:
Cartre Mère:   +54.0°C

Maybe your font?  I cannot find "HandelGotD" - HandelGotDLit and HandelGotDBol I have but not without.

===

Also why not turn your conky into Cthulhu's house where he waits dreaming?

TEXT
${alignc 39}${font ManyWeatz:size=20}Cthulhu fhtagn !${font}


${goto 47}Ph'nglui mglw'nafh Cthulhu
${goto 47}R'lyeh wgah'nagl fhtagn.
${voffset -40}${font Hylian Symbols:size=50}f${font}

${font Cthulhu Glyphs:size=25}W${font} ${voffset -18}${font the King & Queen font:size=10}Cthulhu ${font} ${hr 2}

P_Labulle_2.png

Just thinking out loud.

Offline

Be excellent to each other!

#2400 2011-06-18 22:34:33

mrpeachy
20% cooler
From: The Everfree Forest
Registered: 2009-11-08
Posts: 3,460

Re: My Conky Config

Dodge ram wrote:

Mrpeachy, How are you coming along with the conky radar? I am really interested in it.

well, i dare say that an activity spurt within the next few days may well produce some postable code
once there is a chance that it will work on someone elses computer.  Its based on the national (ie American) weather service website so will probably only work with US locations

the basic display the current radar pic shoulds be pretty easy to finish up

the make a animated view of the previous scans could be more difficult
for some reason, the site tells you how to go get the past radar images, but when you get there It says they dont exist, and i dont know where else to find them

also @Philémon Labulle
i like your conky, i like that it has an overall unifying theme that works and makes it standout

Last edited by mrpeachy (2011-06-18 22:35:48)

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo