SEARCH

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

You are not logged in.

#1 Re: Off Topic / General Chat » Where are we? (GoogleEarth Quiz) » 2013-06-08 04:22:05

i promise to be less obscure in the future! lol

how about this to re-launch this topic
Screenshot_at_2013_06_07_23_20_54.jpg

#2 Re: Off Topic / General Chat » Choosing a new phone » 2013-06-03 00:38:08

Ive got the HTC one x from at&t, conneting it to my computer (running linix mint) via usb doesn't work 9 times out of 10.  I use airdroid for all my file transfer stuff.

(assuming your computer is part of a wireless network)

#3 Re: Tips, Tricks & Scripts » The New Monster Conky Thread » 2013-05-29 15:13:05

@ragamatrix - it is strange that you get nothing when launching your conky through the terminal... how do you launch it?

#4 Re: Tips, Tricks & Scripts » The New Monster Conky Thread » 2013-05-29 15:11:23

ragamatrix wrote:
mr peachy wrote:

for the disappearing problem launch the conky from a terminal and then watch the output when you launch the second conky

for the memory leak problem, that can be tricky to track down
unfortunately i write my scripts quite differently to your doublerings.lua script (whispers *i hate setting tables*) lol

I did but nothing appears in the terminal of the first conky launched... Mysterious conky  glasses
I've got another ring lua may be you'll prefer  this one ?
It's making xorg ram and cpu goes up and I don't know why too. The script descibes that it was modified for leaks problems.
I just show you for an expert eye.
rings.lua:

require 'cairo'

function conky_main_rings()
-- START PARAMETERS HERE
local rings_settings={
	--line1
	{
	name="cpu",
	arg="%S",
	max=100,
	xc=530,
	yc=45,
	thickness=4,
	radius=18,
	sectors=100,
 	gap_sectors=0,
	bg_colour1={{0,0xFFFFFF,0.1},{0.5,0xFFFFFF,0.4},{1,0xFFFFFF,0.1}},
	fg_colour1={{0,0x00FF00,0.1},{0.5,0x00FF00,1.0},{1,0x00FF00,0.1}},
	fg_colour2={{0,0xFF0000,0.1},{0.5,0xFF0000,1.0},{1,0xFF0000,0.1}},
	},	
}
--END OF PARAMETERS HERE

--main function

	--if conky_window==nil then return end
if conky_window==nil then return 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)
	local cr=cairo_create(cs)

	if tonumber(conky_parse('${updates}'))>3 then
		for i in pairs(rings_settings) do
			draw_ring(cr,rings_settings[i])
		end
	end

	cairo_destroy(cr)

end

oops sorry there are settings tables  cry  lol

wlourf writes good scripts, he has put the settings tables inside the main function which makes things much more versatile
this line is important

cairo_destroy(cr)

i have these 2 lines at the bottom of all my main functions

cairo_surface_destroy(cs)
cairo_destroy(cr)

which are there to prevent memory leaks

i couldnt tell you, without testing, where to put those lines in the first circles script.

#5 Re: Artwork & Screenshots » CrunchBang poster as imagined by ad men? » 2013-05-29 04:58:15

picture via google, slogan via this site http://thesurrealist.co.uk/slogan.cgi?word=Crunchbang,
crappy resize making the font look like crap, me ... together i think we have a winner!
crunchbang.jpg

#6 Re: Tips, Tricks & Scripts » The New Monster Conky Thread » 2013-05-29 01:37:39

ragamatrix wrote:

No problémo !
I just have 2 problems with this one; a leak of ram and when you launch another conky this one disapears... I can't find how to fix it.
I've seen before that leak of ram was "heal" with tis kind of sentence in lua scripts:

tolua.takeownership(matrix1)

or

tolua.takeownership(te)

But I don't know where I can put it in the lua script...

for the disappearing problem launch the conky from a terminal and then watch the output when you launch the second conky

for the memory leak problem, that can be tricky to track down
unfortunately i write my scripts quite differently to your doublerings.lua script (whispers *i hate setting tables*) lol

#7 Re: Off Topic / General Chat » Where are we? (GoogleEarth Quiz) » 2013-05-27 18:59:05

PackRat wrote:
mrpeachy wrote:

the river is the Mississippi, and i live in the crime capital of the US, St Louis Missouri  lol

At least you have a good baseball team.

So is that Jefferson Barracks National Cemetery in the photo? I didn't realize it was that old.

that is correct, and fitting given that it is memorial day here in the US

#8 Re: Off Topic / General Chat » Where are we? (GoogleEarth Quiz) » 2013-05-26 20:55:46

the river is the Mississippi, and i live in the crime capital of the US, St Louis Missouri  lol

#9 Re: Off Topic / General Chat » Where are we? (GoogleEarth Quiz) » 2013-05-26 19:37:29

not Arlington Cemetery
but it is a national cemetery (well national to the US that is), one of the oldest in fact dating back to 1827

#10 Re: Off Topic / General Chat » Where are we? (GoogleEarth Quiz) » 2013-05-26 15:05:04

this should help
Screenshot_at_2013_05_26_10_00_29.jpg
you can use the name of the river for counting or spelling smile

#11 Re: Off Topic / General Chat » Where are we? (GoogleEarth Quiz) » 2013-05-26 01:39:43

@ pvsage, I havnt been there myself (although seen it from a distance), and the more zoomed in map must have been taken at a different time than this one as it shows earthworks in that location

@wuxmedia, it is all those things ... but not a national "park" as such
and it is a hospital for a specific kind of person

#12 Re: Off Topic / General Chat » Where are we? (GoogleEarth Quiz) » 2013-05-25 21:42:47

here is a view of the whole thing, i put the closer view first as you cant see an important detail at this level of magnification
Screenshot_at_2013_05_25_16_40_03.jpg

#13 Re: Off Topic / General Chat » Where are we? (GoogleEarth Quiz) » 2013-05-25 21:21:21

pvsage wrote:

^ Ponyville?  Fillydelphia? tongue

alas, those are not correct  cry

#14 Re: Off Topic / General Chat » Where are we? (GoogleEarth Quiz) » 2013-05-25 21:15:00

ok this one is close to home (my home at least)
Screenshot_at_2013_05_25_16_12_39.jpg

#15 Re: Off Topic / General Chat » Where are we? (GoogleEarth Quiz) » 2013-05-24 17:07:05

then it must be Machu Picchu (but i think pacrat already knew that lol )

#17 Re: Tips, Tricks & Scripts » The New Monster Conky Thread » 2013-05-22 01:33:18

^gradients are too hard big_smile
see here http://cairographics.org/samples/gradient/

as with the curves the annoying part is getting the coordinates for the function
i wrote some code to make gradients easier, also movable and easily transformed with respect to an input number

i would have to dig around for that

i wrote this drawing function: http://crunchbang.org/forums/viewtopic. … 39#p251239

if i remember right it is a little limited (2 colors per gradient i think), but there are potentially so many variables involved it can get really complicated

i think i have a newer version that allows unlimited colors per gradient...

anyway.... now that school is out i was wondering what all the cool kids are doing with conky these days? lol

#18 Re: Tips, Tricks & Scripts » The New Monster Conky Thread » 2013-05-20 20:01:04

@dreadkopp
nice work
but... if you are interested in getting fancy stuff onto the conky window, might I suggest you look at lua (well of course I would)

shadows are particularly easy as you are dealing with placing text directly at a specific pixel instead of trying to work through the conkyrc using font goto voffset etc

lua is pretty easy to pick up, just my 2 cents lol

#19 Re: Tips, Tricks & Scripts » The New Monster Conky Thread » 2013-05-19 05:35:38

dreadkopp wrote:

so i download them with a script an then use the image... could have thought of that roll

using other icons would be nice, because the ones from wunderground.com are not the nicest, but since i don't know all the attributes for different weathers it uses (like sunny, partly_cloudy, etc) i am not able to script something.

so i thought it would be the easy way to use the ones the website is using.

thanks a lot again!

i did pretty much this when writing v9000
i had the intellicast icons (which i didnt like) in one folder and the conkyforecast icons (which i wanted to use) in another
looked at the intellicats icon and matched it to the one it looked like most in conkyforecast

there are only so many weather icons:

wx_65="32",  -- Clear
wx_66="30",  -- Partly Cloudy
wx_67="26",  -- Cloudy
wx_68="32",  -- Clear
wx_69="28",  -- Mostly Cloudy
wx_70="20",  -- Fog
wx_71="32",  -- Clear
wx_72="21",  -- Haze
wx_73="36",  -- Hot
wx_74="14",  -- Light Snow Showers
wx_75="28",  -- Mostly Cloudy
wx_76="18",  -- Sleet
wx_77="14",  -- Light Snow Showers
wx_78="23",  -- Blustery
wx_79="05",  -- Mixed Rain and Snow
wx_80="15",  -- Drifting Snow
wx_81="15",  -- Drifting Snow
wx_82="11",  -- Light Rain
wx_83="16",  -- Snow
wx_84="00",  -- Tornado
wx_85="32",  -- Clear
wx_86="25",  -- N/A
wx_87="09",  -- Drizzle
wx_88="05",  -- Mixed Rain and Snow
wx_89="18",  -- Sleet
wx_90="18",  -- Sleet
wx_91="39",  -- Scattered Showers
wx_92="39",  -- Scattered Showers
wx_93="39",  -- Scattered Showers
wx_94="39",  -- Scattered Showers
wx_95="37",  -- Isolated Thunderstorms
wx_96="37",  -- Isolated Thunderstorms
wx_97="31",  -- Clear
wx_98="29",  -- Partly Cloudy
wx_99="27",  -- Mostly Cloudy
wx_100="47",  -- Isolated Thunderstorms
wx_101="47",  -- Isolated Thunderstorms
wx_102="33",  -- Fair
wx_103="26",  -- Cloudy
wx_104="20",  -- Fog
wx_105="45",  -- Scattered Showers
wx_106="45",  -- Scattered Showers
wx_107="11",  -- Light Rain
wx_108="46",  -- Snow Showers
wx_109="46",  -- Snow Showers
wx_110="06",  -- Mixed Rain and Sleet
wx_111="18",  -- Sleet
wx_112="06",  -- Mixed Rain and Sleet
wx_113="46",  -- Snow Showers
wx_114="46",  -- Snow Showers
wx_115="31",  -- Clear
wx_116="47",  -- Isolated Thunderstorms

the wx are the intellicast, the 2 digit numbers represent the conkyforecast icons

in fact, if you get hold of the wunderground icons you can use them in v9000 instead of the conkyforecast icons, just need to number them to match.

#20 Re: Tips, Tricks & Scripts » The New Monster Conky Thread » 2013-05-19 05:31:28

@sector 11, I commend you for your excellent work in this thread!
hopefully i can be a bit more active now that school is out for the summer smile

#21 Re: Tips, Tricks & Scripts » The New Monster Conky Thread » 2013-05-18 04:24:25

^ try removing this line from both conkies:

lua_draw_hook_pre draw_bg

because you have this line after TEXT

TEXT
${lua conky_draw_bg}

which is running the bg script also... so its being run twice per conky

or try removing the lua line after text instead and see if that makes any difference

EDIT:
in fact, looking at the conky again, the first one has multiple calls to the lua script in it
drawing the background multiple times which might account for the darkness

- adjust the setting in the script and make sure it is being called only once per script, either once above TEXT or once below

#22 Re: Tips, Tricks & Scripts » The New Monster Conky Thread » 2013-05-15 02:33:44

@damiohh
im not a big user of bash scripts and i havnt used execigauge either... if you are wanting graphical stuff based on script generated data then a quick lua script is probably the way to go to draws straight onto the conky window with cairo.... but then again not the easiest approach f you havnt used lua before

#23 Re: Tips, Tricks & Scripts » The New Monster Conky Thread » 2013-05-15 02:00:03

lionhead wrote:

i can not show the status of vnstat (month). this my code:

function os_capture(cmd, raw) -- parse shell in lua
	local f = assert(io.popen(cmd, 'r'))
	local s = assert(f:read('*a'))
	f:close()
	if raw then return s end
	s = string.gsub(s, '^%s+', '')
	s = string.gsub(s, '%s+$', '')
	s = string.gsub(s, '[\n\r]+', ' ')
	return s
end

function command(value,device,del,se)
	local ms=nil
	
if value=="cpu" then
	cmd=[[cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'| uniq]]
	ms=os_capture(cmd, raw) -- excecute function (see above)
elseif value=="today" then
	cmd=[[vnstat -i ]]..device..[[ | grep "today" | awk '{print $2 $3}']]
	todayVnstat=os_capture(cmd, raw)
	ms=conky_parse("${if_up "..device.."}"..parse(todayVnstat,del,se).."${else}n/a${endif}")
elseif value=="week" then
	cmd=[[vnstat -i ]]..device..[[ -w | grep "current week" | awk '{print $3 $4}']]
	weekVnstat=os_capture(cmd, raw)
	ms=conky_parse("${if_up "..device.."}"..parse(weekVnstat,del,se).."${else}n/a${endif}")
elseif value=="month" then
	cmd=[[vnstat -i ]]..device..[[ -m | mawk '$0 ~ "'`date +"%b.+%y"`'" {print $3, $4}']]
	monthVnstat = os_capture(cmd, raw)
	ms=conky_parse("${if_up "..device.."}"..parse(monthVnstat,del,se).."${else}n/a${endif}")
end

return ms
end

i hope that it's 'only' a write error. do u see what's wrong?

i dont know why your month settings arent working, althoug i can tell you it wouldnt work on my computer because i changed the way that vnstat formats dates in the vnstat config.

If i was going to do something with vnstat i would take a v9000 appraoch... one of the vnstat ouputs gives you all the info  -dumpdb  then format it all into tables that can be accessed... actually now i come to think of it I may have done something like that in the past smile  have to look through my files at some point soon

#24 Re: Tips, Tricks & Scripts » The New Monster Conky Thread » 2013-05-15 01:53:23

damionhh wrote:

i modified a bash script to return transmission torrent details.  instead of running the script for every variable i wanted to reduce the overhead a little bit and just run it once.  right now it runs a line like :

transmission-remote elvis:9091 --auth=user:password -l | sed -n -e '$b' -e '2,$p' | sort -n --key=2

which returns a list of torrent stats.  then they get parsed and the script uses the ECHO command to dump the formatted contents.

echo -e ${progress[$i]}%'\t'${name[$i]}

all i want to know how to do is embed color codes in the ECHO line.  i have tried what they mention here:
https://bbs.archlinux.org/viewtopic.php … 5#p1152435

but it doesnt work.  how can i embed color codes in the echo line of the bash script so conky formats it correctly?

put the color commands into the echo as you would in conky ${color red} then use execpi to call the script in conky the p means parse so that conky reads conky formatted variables and runs them as such

#25 Re: Tips, Tricks & Scripts » The New Monster Conky Thread » 2013-05-11 01:57:26

^ i think sector11 is using a different version of the draw_bg script from packrat
packrat is using the VD version, while sector11 is using the version i modified with help from DK75

might make a difference, but might not smile

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