You are not logged in.
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
does that defeat the purpose of a console player? 
Last edited by mrpeachy (2011-06-14 03:40:23)
Offline
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 firstdoes that defeat the purpose of a console player?
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. 
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.)
--Doesn't matter how you comment
##Just make it count.
Offline
does that defeat the purpose of a console player?
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
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 firstdoes that defeat the purpose of a console player?
If you could make it work for different players like MPD, that would be cool! 
Offline
If you could make it work for different players like MPD, that would be cool!
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
anonymous wrote:If you could make it work for different players like MPD, that would be cool!
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 displayedit ... 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. 
Offline
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.
yes... i came to the same conclusion 
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 
Last edited by mrpeachy (2011-06-14 21:06:41)
Offline
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.
yes... i came to the same conclusion
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 fitalso 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
OH!!! I like those too .. got 'em! Thanks...
{sippin' my coffee waiting}
Offline
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

Offline
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
unzip in ~/
run using the launch script if you want to try 
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 ""
endedit
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
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
Thank hobbs.... I must have missed iggykoopa & arpinux's posts.
Shame on me. Sorry guys!
Offline
i think im happy with my mpd player for now
perhaps the icons are a little thick...
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
if anyone wants the new files then i can upload them
Last edited by mrpeachy (2011-06-16 20:11:32)
Offline
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} %That pretty minimal...
I wonder if it works in Xfce, GNOME KDE and other DE / WM environments other than OpenBox.
Offline
Sector11, I have just tried it in XFCE.
http://www.zimagez.com/zimage/screensho … 1444am.php
Such a sad little conky. 
Last edited by machinebacon (2011-06-17 16:16:31)
Sweaty lads picking up the soap | I love the new "Ignore user" button
Offline
Offline
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
Damn, that's one hell of a hook echo!
After that storm passes, could you post the rc file?
Offline
Sector11, I have just tried it in XFCE.
Such a sad little conky.
Yea, but it was just a test to see what happens with nothing above TEXT ...
... playing a bit more I ran into problems 
Offline
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
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.gifgets 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
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
Hello,
I have "make" my first conkyrc about "the myth of Cthulhu". Don't be scared ! 
I used fonts : Cthulhu Glyphs , King & Queen , Manyweatz and Hylian Symbols.
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}'}Offline
Mrpeachy, How are you coming along with the conky radar? I am really interested in it.
Offline
Hello,
I have "make" my first conkyrc about "the myth of Cthulhu". Don't be scared !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:
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}
Just thinking out loud.
Offline
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
Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.