SEARCH

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

You are not logged in.

#4951 2013-03-15 23:38:24

ansem_of_nexus
#! CrunchBanger
Registered: 2012-09-19
Posts: 234

Re: Conky v1.9 Thread

Offline

Help fund CrunchBang, donate to the project!

#4952 2013-03-17 17:00:08

Naik
#! Die Hard
From: Leipzig
Registered: 2012-11-16
Posts: 595

Re: Conky v1.9 Thread

Last edited by Naik (2013-03-17 17:01:08)


*kaum macht man es richtig, funktioniert es sofort*

Offline

#4953 2013-03-17 17:53:06

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

Offline

#4954 2013-03-18 08:53:02

Naik
#! Die Hard
From: Leipzig
Registered: 2012-11-16
Posts: 595

Re: Conky v1.9 Thread

Last edited by Naik (2013-03-18 10:38:45)


*kaum macht man es richtig, funktioniert es sofort*

Offline

#4955 2013-03-18 13:26:55

lionhead
#! Junkie
From: Dagobah / Germany
Registered: 2011-01-22
Posts: 459

Re: Conky v1.9 Thread

if blurred=="yes" then
	 radi=radius
	 inum=number
	 horiz=x
	 verti=y

	 for i=1,inum do
	 deg=360/inum
	 text_arc=((2*math.pi/inum)*i)
	 txs=0+radi*(math.sin(text_arc))
	 tys=0-radi*(math.cos(text_arc))
	    ----------------------------
	  	if face=="normal" then
		cairo_select_font_face (cr, f, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
	    elseif face=="bold" then
		cairo_select_font_face (cr, f, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD);
	    elseif face=="italic" then
		cairo_select_font_face (cr, f, CAIRO_FONT_SLANT_ITALIC, CAIRO_FONT_WEIGHT_NORMAL);
	    elseif face=="bolditalic" then
		cairo_select_font_face (cr, f, CAIRO_FONT_SLANT_ITALIC, CAIRO_FONT_WEIGHT_BOLD);
	    elseif face=="oblique" then 
		cairo_select_font_face (cr, f, CAIRO_FONT_SLANT_OBLIQUE, CAIRO_FONT_WEIGHT_NORMAL);
	    end
	    ----------------------------
	 cairo_set_font_size (cr, fs);
	 cairo_set_source_rgba (cr, col(c,a));
	 cairo_move_to (cr, txs+horiz, tys+verti);
	 cairo_show_text (cr, txt)
     end
	 
	elseif blurred=="no" then
	 txt=txt
	end

Last edited by lionhead (2013-03-18 17:57:30)

Offline

#4956 2013-03-18 21:57:56

Naik
#! Die Hard
From: Leipzig
Registered: 2012-11-16
Posts: 595

Re: Conky v1.9 Thread


*kaum macht man es richtig, funktioniert es sofort*

Offline

#4957 2013-03-18 22:01:57

arclance
#! Die Hard
Registered: 2012-03-29
Posts: 987

Re: Conky v1.9 Thread

^ I don't think you can make windows without 90 degree corners in X.
I know conky does not support that.
You could shade the background with other angles to the corners to simulate that effect though with a Lua script.

Offline

#4958 2013-03-18 22:37:55

Naik
#! Die Hard
From: Leipzig
Registered: 2012-11-16
Posts: 595

Re: Conky v1.9 Thread


*kaum macht man es richtig, funktioniert es sofort*

Offline

#4959 2013-03-18 23:38:33

arclance
#! Die Hard
Registered: 2012-03-29
Posts: 987

Re: Conky v1.9 Thread

Last edited by arclance (2013-03-19 05:15:07)

Offline

#4960 2013-03-19 01:33:48

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

Re: Conky v1.9 Thread

Howdy
You can't do the kind of transform Naik is looking for i.e. wider one end than the other
you would have to do something along the lines of writing each letter in a different sized font and rotated/positioned to get close to the effect, but it never looks right

sorry to say, but I would start looking into other design ideas

*gone*

Offline

#4961 2013-03-19 11:15:14

dk75
#! Junkie
Registered: 2012-06-14
Posts: 250

Re: Conky v1.9 Thread

We need Conky 2 stable with LUA Cairo Pango support.

Offline

#4962 2013-03-19 11:29:53

Naik
#! Die Hard
From: Leipzig
Registered: 2012-11-16
Posts: 595

Re: Conky v1.9 Thread

hmm... allright! it would be fun to have for so many designs, but sure i`ll only have to wait   wink
for the time beeing, thanks to all of you guys for your time.

greetz -naik


*kaum macht man es richtig, funktioniert es sofort*

Offline

#4963 2013-03-20 10:56:19

lionhead
#! Junkie
From: Dagobah / Germany
Registered: 2011-01-22
Posts: 459

Re: Conky v1.9 Thread

is it possible to find just the numbers within a string, for example:

conky_parse("${fs_size /}")

i only need the numbers. please help me.

edit: this gives me only a part of the number. but not the rest (behind the delimiter)

string.find(ausgang,"(%d*).*")

Last edited by lionhead (2013-03-20 11:10:10)

Offline

#4964 2013-03-20 13:41:04

dk75
#! Junkie
Registered: 2012-06-14
Posts: 250

Re: Conky v1.9 Thread

ausgang=conky_parse("${fs_size /}")
ausgang=string.gsub(ausgang, "(%d*\.*%d+).*", "%1")
print(ausgang)

or

ausgang=conky_parse("${fs_size /}")
for i in string.gmatch(ausgang, "%d*\.*%d+") do ausgang=i end
print(ausgang)

or

ausgang=conky_parse("${fs_size /}")
_s, _e, ausgang = string.find(ausgang, "(%d*\.*%d+).*")
print(ausgang)

Last edited by dk75 (2013-03-20 13:59:46)

Offline

#4965 2013-03-20 16:29:00

Nili
#! Die Hard
From: 127.0.0.1
Registered: 2013-03-20
Posts: 811
Website

Re: Conky v1.9 Thread

${color 33001A}${font StyleBats:size=35}G${font} Lacie${color FFFFFF}
${if_mounted /media/nili/Lacie Disk}
${color 1C1C1C}Size: ${alignr}${fs_size /media/nili/Lacie Disk}
${color 33001A}${fs_bar 3,83 /media/nili/Lacie Disk}${color}
${color 1C1C1C}Free: ${alignc}${fs_free /media/nili/Lacie Disk} ${alignr}${color 33001A}(${fs_free_perc /media/nili/Lacie Disk}%)${color}
${color 1C1C1C}Used: ${alignc}${fs_used /media/nili/Lacie Disk} ${alignr}${color 33001A}(${fs_used_perc /media/nili/Lacie Disk}%)${color}
${else}${color 1C1C1C}Disk: Not mounted${color}
${endif}

Last edited by Nili (2013-03-20 16:30:19)

Offline

#4966 2013-03-20 17:38:55

lionhead
#! Junkie
From: Dagobah / Germany
Registered: 2011-01-22
Posts: 459

Re: Conky v1.9 Thread

-- ##################################################################################
-- ## display conky variables #######################################################
-- ##################################################################################
function display_system(cd)
-----------------------------
local conky_order=nil
local variable=nil
local device=nil
local del=nil
local cs = nil
local ms = nil
-----------------------------
variable=cd.variable
device=(cd.device or '')
del=(cd.del or '.')
-----------------------------
conky_order=conky_parse("${"..variable..' '..device.."}")

local result = conky_order:gsub(" ","") 
local value = chgDel(result,del)
print("value: "..value)
	---- short_units no ------------------------
	if ((string.find(conky_order, "iB") == nil) and (string.find(conky_order, "B") ~= nil)) then
		ms=(value:gsub("B",""))..' byte'	
	elseif string.find(value, 'KiB') ~= nil then
		ms=(value:gsub("KiB",""))..' kb'
	elseif string.find(value, 'MiB') ~= nil then
		ms=(value:gsub("MiB",""))..' mb'
	elseif string.find(value, 'GiB') ~= nil then
		ms=(value:gsub("GiB",""))..' gb'
	elseif string.find(value, "TiB") ~= nil then
		ms=(value:gsub("TiB","")).." tb"	
	elseif ((string.find(variable, "perc") ~= nil) or (string.find(variable, "percent") ~= nil)) then
		ms=chgDel(value,",").." %"
	elseif ((string.find(variable,"freq") ~= nil) and (string.find(variable,"_g") == nil)) then
		ms=value.." Mhz"
	elseif ((string.find(variable,"freq") ~= nil) and (string.find(variable,"_g") ~= nil)) then
		ms=value.." Ghz"
	elseif ((string.find(variable,"downspeedf") ~= nil) or (string.find(variable,"upspeedf") ~= nil)) then
		ms=value:gsub(" ","").." kb/s"
	elseif string.find(variable,"time") ~= nil then
		ms=conky_order:gsub(" ","")
	elseif string.find(variable,"cpu") ~= nil then
		ms=value.." %"
	elseif ((string.find(conky_order, "fs_used") ~= nil) or (string.find(conky_order, "fs_free") ~= nil)) then
		ms=chgDel(value,",").." gb"
		print("ausgabe: "..ms)
		-- fs_used
	---- short_units yes -----------------------
	elseif ((string.find(value, "iB") == nil) and (string.find(value, "B") ~= nil)) then
		ms=(value:gsub("B",""))..' byte'
	elseif string.find(value, "K") ~= nil then
		ms=(value:gsub("K",""))..' kb'
	elseif string.find(value, "M") ~= nil then
		ms=(value:gsub("M",""))..' mb'
	elseif string.find(value, "G") ~= nil then
		ms=(value:gsub("G",""))..' gb'
	elseif string.find(value, "T") ~= nil then
		ms=(value:gsub("T",""))..' tb'
	------------------------------------------------------
	else ms=value:gsub(" ","") end
	------------------------------------------------------
	cs=string.gsub(tostring(ms),"%.",del)
	
	return cs
end -- of function

-- #######################################################################
-- ## change delimiter and thousand separator ############################
-- #######################################################################

function chgDel(value,del)
local ausgang=nil
local ersteZahl=nil
local rest=nil
local outputNumber=nil
-------------------------------------------------
ausgang=string.gsub(value, "(%d*\.*%d+).*", "%1")
ausgang=tonumber(ausgang)

 if ((ausgang >= 10000) and (ausgang <= 99999.99)) then
 ersteZahl=string.sub(ausgang,1,2)
 rest=string.sub(ausgang,3,string.len(ausgang))
       -----------------------------------------------------------------
       if del=="," then
       outputNumber=ersteZahl..'.'..string.gsub(tostring(rest),"%.",",")
	   else
	   outputNumber=ersteZahl..','..string.gsub(tostring(rest),"%,",".")
       end
       -----------------------------------------------------------------
 elseif ((ausgang>=1000) and (ausgang <9999.99)) then
 ersteZahl=string.sub(ausgang,1,1)
 rest=string.sub(ausgang,2,string.len(ausgang))
       -----------------------------------------------------------------
	   if del=="," then
       outputNumber=ersteZahl..'.'..string.gsub(tostring(rest),"%.",del)
	   elseif del=="." then
	   outputNumber=ersteZahl..','..rest
       end
       -----------------------------------------------------------------
 elseif ausgang<999 then
       -----------------------------------------------------------------
	   if del=="," then
       outputNumber=string.gsub(tostring(ausgang),"%.",',')
	   elseif del=="." then
	   outputNumber=ausgang
       end
       -----------------------------------------------------------------
 elseif ausgang >=100000 then
 ersteZahl=string.sub(ausgang,1,3)
 rest=string.sub(ausgang,4,string.len(ausgang))
       -----------------------------------------------------------------
	   if del=="," then
       outputNumber=ersteZahl..'.'..string.gsub(tostring(rest),"%.",del)
	   elseif del=="." then
	   outputNumber=ersteZahl..','..rest
       end
       -----------------------------------------------------------------
 end

return outputNumber

end

Last edited by lionhead (2013-03-21 10:02:40)

Offline

#4967 2013-03-21 10:22:31

dk75
#! Junkie
Registered: 2012-06-14
Posts: 250

Re: Conky v1.9 Thread

--[[
lionhead displaysystem test
--]]

function conky_lionhead(table)
	if conky_window == nil then return "" end
	local updates=tonumber(conky_parse('${updates}'))
	if updates<=5 then return "" end
	local table=loadstring("return "..table)()
	display_system(table)
	return ""
end

--#####################################################################

-- ##################################################################################
-- ## display conky variables #######################################################
-- ##################################################################################
function display_system(cd)
-----------------------------
local conky_order=nil
local variable=nil
local device=nil
local del=nil
local cs = nil
local ms = nil
-----------------------------
variable=cd.variable
device=(cd.device or '')
del=(cd.del or '.')
-----------------------------
conky_order=conky_parse("${"..variable..' '..device.."}")

local result = conky_order:gsub(" ","") 
local value = chgDel(result,del)
print("value: "..value)
	---- short_units no ------------------------
	if ((string.find(conky_order, "iB") == nil) and (string.find(conky_order, "B") ~= nil)) then
		ms=(value:gsub("B",""))..' byte'	
	elseif string.find(value, 'KiB') ~= nil then
		ms=(value:gsub("KiB",""))..' kb'
	elseif string.find(value, 'MiB') ~= nil then
		ms=(value:gsub("MiB",""))..' mb'
	elseif string.find(value, 'GiB') ~= nil then
		ms=(value:gsub("GiB",""))..' gb'
	elseif string.find(value, "TiB") ~= nil then
		ms=(value:gsub("TiB","")).." tb"	
	elseif ((string.find(variable, "perc") ~= nil) or (string.find(variable, "percent") ~= nil)) then
		ms=chgDel(value,",").." %"
	elseif ((string.find(variable,"freq") ~= nil) and (string.find(variable,"_g") == nil)) then
		ms=value.." Mhz"
	elseif ((string.find(variable,"freq") ~= nil) and (string.find(variable,"_g") ~= nil)) then
		ms=value.." Ghz"
	elseif ((string.find(variable,"downspeedf") ~= nil) or (string.find(variable,"upspeedf") ~= nil)) then
		ms=value:gsub(" ","").." kb/s"
	elseif string.find(variable,"time") ~= nil then
		ms=conky_order:gsub(" ","")
	elseif string.find(variable,"cpu") ~= nil then
		ms=value.." %"
	elseif ((string.find(conky_order, "fs_used") ~= nil) or (string.find(conky_order, "fs_free") ~= nil)) then
		ms=chgDel(value,",").." gb"
		print("ausgabe: "..ms)
		-- fs_used
	---- short_units yes -----------------------
	elseif ((string.find(value, "iB") == nil) and (string.find(value, "B") ~= nil)) then
		ms=(value:gsub("B",""))..' byte'
	elseif string.find(value, "K") ~= nil then
		ms=(value:gsub("K",""))..' kb'
	elseif string.find(value, "M") ~= nil then
		ms=(value:gsub("M",""))..' mb'
	elseif string.find(value, "G") ~= nil then
		ms=(value:gsub("G",""))..' gb'
	elseif string.find(value, "T") ~= nil then
		ms=(value:gsub("T",""))..' tb'
	------------------------------------------------------
	else ms=value:gsub(" ","") end
	------------------------------------------------------
	cs=string.gsub(tostring(ms),"%.",del)
	
	return cs
end -- of function

-- #######################################################################
-- ## change delimiter and thousand separator ############################
-- #######################################################################

function chgDel(value,del)
local ausgang=nil
local ersteZahl=nil
local rest=nil
local outputNumber=nil
-------------------------------------------------
ausgang=string.gsub(value, "(%d*\.*%d+).*", "%1")
ausgang=tonumber(ausgang)

 if ((ausgang >= 10000) and (ausgang <= 99999.99)) then
 ersteZahl=string.sub(ausgang,1,2)
 rest=string.sub(ausgang,3,string.len(ausgang))
       -----------------------------------------------------------------
       if del=="," then
       outputNumber=ersteZahl..'.'..string.gsub(tostring(rest),"%.",",")
	   else
	   outputNumber=ersteZahl..','..string.gsub(tostring(rest),"%,",".")
       end
       -----------------------------------------------------------------
 elseif ((ausgang>=1000) and (ausgang <9999.99)) then
 ersteZahl=string.sub(ausgang,1,1)
 rest=string.sub(ausgang,2,string.len(ausgang))
       -----------------------------------------------------------------
	   if del=="," then
       outputNumber=ersteZahl..'.'..string.gsub(tostring(rest),"%.",del)
	   elseif del=="." then
	   outputNumber=ersteZahl..','..rest
       end
       -----------------------------------------------------------------
 elseif ausgang<999 then
       -----------------------------------------------------------------
	   if del=="," then
       outputNumber=string.gsub(tostring(ausgang),"%.",',')
	   elseif del=="." then
	   outputNumber=ausgang
       end
       -----------------------------------------------------------------
 elseif ausgang >=100000 then
 ersteZahl=string.sub(ausgang,1,3)
 rest=string.sub(ausgang,4,string.len(ausgang))
       -----------------------------------------------------------------
	   if del=="," then
       outputNumber=ersteZahl..'.'..string.gsub(tostring(rest),"%.",del)
	   elseif del=="." then
	   outputNumber=ersteZahl..','..rest
       end
       -----------------------------------------------------------------
 end

return tostring(outputNumber)

end

Offline

#4968 2013-03-22 06:33:37

lwfitz
#! Die Hard
From: Monrovia, CA
Registered: 2012-01-19
Posts: 886
Website

Re: Conky v1.9 Thread

max_specials 10000
max_user_text 15000
background no
use_xft yes
xftfont sans:size=9
xftalpha 1
total_run_times 0
own_window yes
own_window_argb_visual no
own_window_transparent yes
own_window_type desktop
own_window_title conky
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 275 1000
maximum_width 275
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color white
default_shade_color black
default_outline_color white
alignment tl
gap_x 15
gap_y 45
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale yes
text_buffer_size 100000
top_name_width 5
update_interval 1
default_color FFFFFF
temperature_unit fahrenheit
short_units yes

### LUA Load ###
lua_load /home/luke/Conky/allcombined_2.lua

## lua funcions
## background ##################################################################
#${lua draw_bg {corner_radius,x_position,y_position,width,height,color,alpha,draw_type,line_width,outline_color,outline_alpha}}
#note for background: set width=0 - width will be conky window width, set height=0 - height will be conky window height
# draw_type: 1=fill, 2=outline(must specify line_width), 3=outline and fill (must specify line_width, outline_color and outline_alpha)
## gradient bars ###############################################################
#${lua gradbar {x_position,y_position,"conky_object",object_max_value,number_of_divisions,division_width,division_height,division_gap,bg_color,bg_alpha,start_color,start_alpha,mid_color,mid_alpha,end_color,end_alpha}}
## calendar ###############################################################
#${lua luacal {x_position,y_position,"title_font",title_fontsize,title_color,title_alpha,"dates_font",dates_fontsize,dates_color,dates_alpha,"highlight_font",highlight_fontsize,highlight_color,highlight_alpha,"spacer",colum_gap,title_gap,row_gap,start_day}
#note for calendar: start day... 0=sunday, 1=monday ... "spacer" can help align calendar with non fix width fonts
## textured background ###############################################################
#${lua tex_bg {corner_radius,x_position,y_position,width,height,"/path/to/texture.png"}}
## lua draw images ###############################################################
#${lua luaimage {x_position,y_position,width,height,"/path/to/image"}}
#note for images: set width=0 - width will be image width, set height=0 - height will be image height
## lua draw text ###############################################################
#${lua luatext {x_position,y_position,color,alpha,"font",fontsize,"justify"}}
#note for text: justify can be "r" = right, "c" = center, "l" = left
#${lua draw_bg {10,0,0,0,0,0x000000,0.3}}

TEXT
${image /home/luke/Conky/CPU.png -s 150x75 -p 65,5}${lua draw_bg {25,0,0,0,0,0x000000,0.3}}




${goto 5}${font Pseudo APL:Bold:size=14} Core1${goto 90}${cpu cpu1}${font SansMono:Bold:size=11}%${goto 150}Core2${goto 235}${cpu cpu2}${font SansMono:Bold:size=11}%
${goto 5}${font Pseudo APL:Bold:size=14} Core3${goto 90}${cpu cpu3}${font SansMono:Bold:size=11}%${goto 150}Core4${goto 235}${cpu cpu4}${font SansMono:Bold:size=11}%
${goto 5}${font Pseudo APL:Bold:size=14} Core5${goto 90}${cpu cpu5}${font SansMono:Bold:size=11}%${goto 150}Core6${goto 235}${cpu cpu6}${font SansMono:Bold:size=11}%
#${goto 15}${cpubar cpu0 30,245}
${lua gradbar {15,143,"${cpu cpu0}",100,63,2,30,2,0x666666,.25,0x666666,1,0x000099,.75,0x000033,1}}


${goto 20}${font Pseudo APL:Bold:size=12}${top name 1} ${goto 115}${top pid 1} ${goto 185}${top cpu 1}${font SansMono:Bold:size=11}%
${goto 20}${font Pseudo APL:Bold:size=12}${top name 2} ${goto 115}${top pid 2} ${goto 185}${top cpu 2}${font SansMono:Bold:size=11}%
${goto 20}${font Pseudo APL:Bold:size=12}${top name 3} ${goto 115}${top pid 3} ${goto 185}${top cpu 3}${font SansMono:Bold:size=11}%

${image /home/luke/Conky/memory.png -s 225x90 -p 30,215}


${goto 5}${font Pseudo APL:Bold:size=14} RAM ${goto 110}${mem}${goto 190}/${memmax}
#${goto 15}${membar 30,245}
${lua gradbar {15,321,"${memperc}",100,63,2,30,2,0x666666,.25,0x666666,1,0x000099,.75,0x000033,1}}

${goto 5}${font Pseudo APL:Bold:size=14} SWAP ${goto 110}${swap}${goto 190}/${swapmax}
#${goto 15}${swapbar 30,245}
${lua gradbar {15,381,"${swapperc}",100,63,2,30,2,0x666666,.25,0x666666,1,0x000099,.75,0x000033,1}}

${goto 20}${font Pseudo APL:Bold:size=12}${top_mem name 1} ${goto 115}${top_mem pid 1} ${goto 185}${top_mem mem 1}${font SansMono:Bold:size=11}%
${goto 20}${font Pseudo APL:Bold:size=12}${top_mem name 2} ${goto 115}${top_mem pid 2} ${goto 185}${top_mem mem 2}${font SansMono:Bold:size=11}%
${goto 20}${font Pseudo APL:Bold:size=12}${top_mem name 3} ${goto 115}${top_mem pid 3} ${goto 185}${top_mem mem 3}${font SansMono:Bold:size=11}%

${image /home/luke/Conky/Storage.png -s 225x90 -p 29,453}


${goto 5}${font Pseudo APL:Bold:size=14} / ${goto 120}${fs_used /}${goto 205}/15G
${lua gradbar {15,555,"${fs_used_perc /}",100,63,2,15,2,0x666666,.25,0x666666,1,0x000099,.75,0x000033,1}}
${goto 5}${font Pseudo APL:Bold:size=14} /home ${goto 120}${fs_used /home}${goto 205}/37G
${lua gradbar {15,595,"${fs_used_perc /home}",100,63,2,15,2,0x666666,.25,0x666666,1,0x000099,.75,0x000033,1}}
${goto 5}${font Pseudo APL:Bold:size=14} Storage ${goto 120}${fs_used /media/storage}${goto 205}/${fs_size /media/storage}
${lua gradbar {15,635,"${fs_used_perc /media/storage}",100,63,2,15,2,0x666666,.25,0x666666,1,0x000099,.75,0x000033,1}}
${goto 5}${font Pseudo APL:Bold:size=14} Music ${goto 120}${fs_used /media/sde6}${goto 205}/${fs_size /media/sde6}
${lua gradbar {15,675,"${fs_used_perc /media/sde6}",100,63,2,15,2,0x666666,.25,0x666666,1,0x000099,.75,0x000033,1}}
${goto 5}${font Pseudo APL:Bold:size=14} External ${goto 120}${fs_used /media/sde5}${goto 205}/${fs_size /media/sde5}
${lua gradbar {15,715,"${fs_used_perc /media/sde5}",100,63,2,15,2,0x666666,.25,0x666666,1,0x000099,.75,0x000033,1}}
${goto 5}${font Pseudo APL:Bold:size=14} Videos ${goto 120}${fs_used /media/sdc1}${goto 205}/${fs_size /media/sdc1}
${lua gradbar {15,755,"${fs_used_perc /media/sdc1}",100,63,2,15,2,0x666666,.25,0x666666,1,0x000099,.75,0x000033,1}}
${goto 5}${font Pseudo APL:Bold:size=14} Software ${goto 120}${fs_used /media/sdb1}${goto 205}/${fs_size /media/sdb1}
${lua gradbar {15,795,"${fs_used_perc /media/sdb1}",100,63,2,15,2,0x666666,.25,0x666666,1,0x000099,.75,0x000033,1}}

${image /home/luke/Conky/temps.png -s 225x90 -p 23,798}

${goto 5}${font Pseudo APL:Bold:size=14} CPU ${goto 225}${platform it87.656 temp 1}F
${lua gradbar {15,893,"${platform it87.656 temp 1}",195,63,2,15,2,0x666666,.25,0x666666,1,0x000099,.75,0x000033,1}}
${goto 5}${font Pseudo APL:Bold:size=14} Motherboard ${goto 225}${platform it87.656 temp 2}F
${lua gradbar {15,935,"${platform it87.656 temp 2}",200,63,2,15,2,0x666666,.25,0x666666,1,0x000099,.75,0x000033,1}}
${goto 5}${font Pseudo APL:Bold:size=14} GPU ${goto 225}${nvidia temp}F
${lua gradbar {15,975,"${platform it87.656 temp 2}",200,63,2,15,2,0x666666,.25,0x666666,1,0x000099,.75,0x000033,1}}

Offline

#4969 2013-03-22 08:27:36

chepioq
#! Member
Registered: 2013-01-09
Posts: 79

Re: Conky v1.9 Thread

${color 33001A}${font StyleBats:size=35}G${font} Lacie${color FFFFFF}
${if_mounted /media/nili/Lacie Disk}
${color 1C1C1C}Size: ${alignr}${fs_size /media/nili/Lacie Disk}
${color 33001A}${fs_bar 3,83 /media/nili/Lacie Disk}${color}
${color 1C1C1C}Free: ${alignc}${fs_free /media/nili/Lacie Disk} ${alignr}${color 33001A}(${fs_free_perc /media/nili/Lacie Disk}%)${color}
${color 1C1C1C}Used: ${alignc}${fs_used /media/nili/Lacie Disk} ${alignr}${color 33001A}(${fs_used_perc /media/nili/Lacie Disk}%)${color}
${else}${color 1C1C1C}Disk: Not mounted${color}
${endif}

Last edited by chepioq (2013-03-22 08:30:35)

Offline

#4970 2013-03-22 11:18:44

Naik
#! Die Hard
From: Leipzig
Registered: 2012-11-16
Posts: 595

Re: Conky v1.9 Thread

#! /bin/bash

wget -m --accept=jpg http://apod.nasa.gov/apod/astropix.html -O ~/images/space.jpg &&
convert ~/images/space.jpg -scale 123x123 ~/images/space_conky.jpg

end

Last edited by Naik (2013-03-22 22:12:47)


*kaum macht man es richtig, funktioniert es sofort*

Offline

#4971 2013-03-22 13:48:37

Nili
#! Die Hard
From: 127.0.0.1
Registered: 2013-03-20
Posts: 811
Website

Re: Conky v1.9 Thread

Offline

#4972 2013-03-22 16:14:32

chepioq
#! Member
Registered: 2013-01-09
Posts: 79

Re: Conky v1.9 Thread

${fs_used /media/nili/Lacie Disk}

Offline

#4973 2013-03-22 16:48:13

xaos52
The Good Doctor
From: Planet of the @s
Registered: 2011-06-24
Posts: 4,602

Re: Conky v1.9 Thread

Or perhaps putting a \ before the space works? It does in bash/zsh scripting. Dunno about conky/lua - I don't use it.
Blimey, should not have said that in a thread dedicated to conky and reaching 200 pages...  smile

Offline

#4974 2013-03-22 16:49:15

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

Re: Conky v1.9 Thread

smile   No worries Doc, it will provide another look at doing it in any format

Offline

Help fund CrunchBang, donate to the project!

#4975 2013-03-22 18:13:22

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

Last edited by Sector11 (2013-03-22 18:14:00)

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.
Server: bleh

Debian Logo