You are not logged in.
COOL! Will take a look tomorrow.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
Sector11 wrote:No I didn't combine them, I edited their positions in the script itself:
That's what I meant :8
Script edited to allow either separate or concentric dials, with date/time/location text outside. I've put that text formatting in a separate function:
https://cdn.scrot.moe/images/2016/07/04 … _scrot.pngEdit the section just after "update_num=tonumber(updates)", and adjust x,y according to where you want the text:
--[[ lua-weather.lua, written by <damo>, July 2016 --------------------------------------------- Use this in a conky with lua_load /path/to/lua-weather.lua lua_draw_hook_pre conky_main In the conky, get the weather data from lua-weather.sh with TEXT ${execi <interval> /path/to/lua-weather.sh} ---------------------------------------------]] require 'cairo' -- set default font --fontface="Dustismo" fontface="Liberation" function conky_main() if conky_window==nil then return end cs=cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height) cr=cairo_create(cs) xW=160 -- x pos wind dial centre yW=90 -- y pos wind dial centre radiusW=60 -- radiusW wind dial xT=30 -- x pos temp bar (top) yT=10 -- y pos temp bar (top) wT=6 -- width temp bar hT=150 -- height temp bar xSun=340 -- x pos sun dial centre ySun=90 -- y pos sun dial centre radiusSun=60-- radius sun dial datafile="/home/damo/tmp/weather.txt" -- textfile to hold lua-weather.sh output direction,windS,temperature,sunrise,sunset,loc,wx = get_vals() local updates=conky_parse('${updates}') update_num=tonumber(updates) -- Edit this for concentric dials --------------------------------- concentric = 0 --<-- Change to "1" to display concentric rings if ( concentric == 1 ) then xSun = 300 ySun = 100 radiusSun = 90 xW = xSun yW = ySun radiusW = 0.7*radiusSun end ------------------------------------------------------------------------ if update_num>1 then draw_widgets() end cairo_destroy(cr) cairo_surface_destroy(cs) cr=nil end -- Choose the widgets to be displayed: function draw_widgets() draw_thermometer(cr,xT,yT,wT,hT) draw_wind_rose() draw_sun_ring() end -- read values from datafile function get_vals() local path = datafile local file = io.open( path) local array = {} local i=0 if (file) then -- read all contents of file into array for line in file:lines() do i=i+1 array[i]=line end file:close() dir=tostring(array[1]) -- get wind direction, convert to value required winddir=-math.pi*(tonumber(dir))/180 wind_speed=tostring(array[2]) -- windspeed knots temperature=tonumber(array[5]) sunrise=array[3] sunset=array[4] location=array[6] weather=array[7] return winddir,wind_speed,temperature,sunrise,sunset,location,weather else print("datafile " .. datafile .. " not found") end end -- convert degree to rad function angle_to_position(start_angle, current_angle) local pos = start_angle + current_angle return pos * math.pi/180 end function draw_sun_ring() -- local hours=20 -- local mins=0 local hours=os.date("%H") local mins=os.date("%M") current_time=(hours .. mins) mins_arc = 360/60*mins hours_arc = (360/24*hours + mins_arc/24) + 90 start_angle = 90 -- south end_angle = 360 start_arc = 0 stop_arc = 0 -- get times and angle position from function sun_rise_set() sunrise,sunset,sun_rise,sun_set = sun_rise_set() local border_pat=cairo_pattern_create_linear(xSun,ySun-radiusSun*1.25,xSun,ySun+radiusSun*1.25) cairo_pattern_add_color_stop_rgba(border_pat,0,1,1,0,0.3) cairo_pattern_add_color_stop_rgba(border_pat,0.4,0.9,0.9,0.2,0.2) cairo_pattern_add_color_stop_rgba(border_pat,0.55,0.9,0.2,0,0.2) cairo_pattern_add_color_stop_rgba(border_pat,0.7,0,0.1,1,0.3) cairo_set_source(cr,border_pat) -- draw ring, starting at south position ( = midnight/00hrs) cairo_arc(cr, xSun, ySun, radiusSun, angle_to_position(start_angle, 0), angle_to_position(start_angle, end_angle)) -- set width of ring cairo_set_line_width(cr,radiusSun*0.06) cairo_stroke(cr) cairo_pattern_destroy (pat) -- draw sun -- get position on circumference ( = time from midnight (south), 24hr clock) sun_pos=angle_to_position(start_angle,hours_arc) local sunx=xSun - (math.sin(-sun_pos)*radiusSun) local suny=ySun - (math.cos(-sun_pos)*radiusSun) -- set colour & alpha, for day/night if ( tonumber(current_time) > tonumber(sunrise) ) and ( tonumber(current_time) < tonumber(sunset) ) then r,g,b,a = 1,1,0,0.4 --day else r,g,b,a = 0.5,0.5,0.5,0.4 --night end cairo_set_source_rgba (cr,r,g,b,a) cairo_arc(cr,sunx,suny,radiusSun*0.09,0,360) cairo_fill(cr) local r,g,b,a = 1,1,0,0.5 cairo_set_source_rgba (cr,r,g,b,a) cairo_set_line_width(cr,2) cairo_set_line_cap(cr, CAIRO_LINE_CAP_ROUND) -- draw sunrise mark local sunrise_x=xSun - (math.sin(-sun_rise)*radiusSun*1.05) local sunrise_y=ySun - (math.cos(-sun_rise)*radiusSun*1.05) local sunrise_xc=xSun - (math.sin(-sun_rise)*radiusSun*0.95) local sunrise_yc=ySun - (math.cos(-sun_rise)*radiusSun*0.95) cairo_move_to(cr,sunrise_x,sunrise_y) cairo_line_to(cr,sunrise_xc,sunrise_yc) cairo_stroke(cr) -- draw sunset mark local sunset_x=xSun - (math.sin(-sun_set)*radiusSun*1.05) local sunset_y=ySun - (math.cos(-sun_set)*radiusSun*1.05) local sunset_xc=xSun - (math.sin(-sun_set)*radiusSun*0.95) local sunset_yc=ySun - (math.cos(-sun_set)*radiusSun*0.95) local r,g,b,a = 1,0,0,0.5 cairo_set_source_rgba (cr,r,g,b,a) cairo_move_to(cr,sunset_x,sunset_y) cairo_line_to(cr,sunset_xc,sunset_yc) cairo_stroke(cr) -- print sunrise/sunset text sun_text(sunrise_x,sunrise_y,sunset_x,sunset_y) end function sun_text(xr,yr,xs,ys) -- display sunrise time local r,g,b,a = 1,1,0,0.5 cairo_set_source_rgba (cr,r,g,b,a) print_text(cr,sunrise,xr-4,yr,4,10) print_text(cr,"sunrise",xr-4,yr+8,4,8) -- display sunset time local r,g,b,a = 1,0,0,0.5 cairo_set_source_rgba (cr,r,g,b,a) print_text(cr,sunset,xs,ys+10,0,10) print_text(cr,"sunset",xs,ys+18,0,8) -- print("concentric= " .. concentric) if ( concentric == 0 ) then -- display time local current_time = os.date("%H%M") local fontface="Dustismo" local r,g,b,a = 1,1,1,0.3 cairo_set_source_rgba (cr,r,g,b,a) cairo_select_font_face(cr,fontface,CAIRO_FONT_SLANT_NORMAL,CAIRO_FONT_WEIGHT_BOLD) cairo_set_font_size (cr,24) local xt,yt = position_text(cr,current_time,xSun,ySun-6,2) cairo_move_to (cr,xt,yt) cairo_show_text (cr,current_time) cairo_stroke (cr) -- display date local cal = os.date("%a %d %b") local fontface="Dustismo" local r,g,b,a = 1,1,1,0.3 cairo_set_source_rgba (cr,r,g,b,a) cairo_select_font_face(cr,fontface,CAIRO_FONT_SLANT_NORMAL,CAIRO_FONT_WEIGHT_BOLD) cairo_set_font_size (cr,12) local xt,yt = position_text(cr,cal,xSun,ySun+10,1) cairo_move_to (cr,xt,yt) cairo_show_text (cr,cal) cairo_stroke (cr) -- print location local fontface="Dustismo" local r,g,b,a = 1,1,1,0.4 cairo_set_source_rgba (cr,r,g,b,a) cairo_select_font_face(cr,fontface,CAIRO_FONT_SLANT_NORMAL,CAIRO_FONT_WEIGHT_NORMAL) cairo_set_font_size (cr,10) local xt,yt = position_text(cr,loc,xSun,ySun+25,1) cairo_move_to (cr,xt,yt) cairo_show_text (cr,loc) cairo_stroke (cr) else print_location_text(xSun,ySun+1.4*radiusSun) end end function print_location_text(x,y) -- display time local current_time = os.date("%H%M") local fontface="Dustismo" local r,g,b,a = 1,1,1,0.3 cairo_set_source_rgba (cr,r,g,b,a) cairo_select_font_face(cr,fontface,CAIRO_FONT_SLANT_NORMAL,CAIRO_FONT_WEIGHT_BOLD) cairo_set_font_size (cr,24) local xt,yt = position_text(cr,current_time,x,y,2) cairo_move_to (cr,xt,yt) cairo_show_text (cr,current_time) cairo_stroke (cr) -- display date local cal = os.date("%a %d %b") local fontface="Dustismo" local r,g,b,a = 1,1,1,0.3 cairo_set_source_rgba (cr,r,g,b,a) cairo_select_font_face(cr,fontface,CAIRO_FONT_SLANT_NORMAL,CAIRO_FONT_WEIGHT_BOLD) cairo_set_font_size (cr,12) local xt,yt = position_text(cr,cal,x,y+10,1) cairo_move_to (cr,xt,yt) cairo_show_text (cr,cal) cairo_stroke (cr) -- print location local fontface="Dustismo" local r,g,b,a = 1,1,1,0.4 cairo_set_source_rgba (cr,r,g,b,a) cairo_select_font_face(cr,fontface,CAIRO_FONT_SLANT_NORMAL,CAIRO_FONT_WEIGHT_NORMAL) cairo_set_font_size (cr,10) local xt,yt = position_text(cr,loc,x,y+25,1) cairo_move_to (cr,xt,yt) cairo_show_text (cr,loc) cairo_stroke (cr) end function sun_rise_set() sunupH = string.sub(sunrise,1,2) sunupM = string.sub(sunrise,3,4) sundownH = string.sub(sunset,1,2) sundownM = string.sub(sunset,3,4) minSR_arc = 360/60*sunupM hourSR_arc = (360/24*sunupH + minSR_arc/24) + 90 pos_SR = angle_to_position(start_angle,hourSR_arc) minSS_arc = 360/60*sundownM hourSS_arc = (360/24*sundownH + minSS_arc/24) + 90 pos_SS = angle_to_position(start_angle,hourSS_arc) return sunrise,sunset,pos_SR,pos_SS end function draw_thermometer(cr,x,y,wT,hT) local alpha=0.5 HT = y+hT pat = cairo_pattern_create_linear (x,y,wT,HT) cairo_pattern_add_color_stop_rgba (pat, 1, 0, 0, 1, alpha) cairo_pattern_add_color_stop_rgba (pat, 0.4, 1,0.8, 0, alpha) cairo_pattern_add_color_stop_rgba (pat, 0.3, 1,0.3, 0, alpha) cairo_pattern_add_color_stop_rgba (pat, 0, 1,0, 0, alpha) cairo_rectangle (cr, x,y,wT,HT) cairo_set_source (cr, pat) cairo_fill (cr) cairo_pattern_destroy (pat) draw_temperature(cr,x,y,hT,temperature) end function draw_temperature(cr,x,y,hT,Tdegrees) local range=hT/100 local zero = y + range*60 local T = Tdegrees*range t = tostring(Tdegrees) t = ( t .. "°C" ) cairo_set_source_rgba (cr,1,1,1,0.5) cairo_set_line_width(cr,1) for i = 0,100,10 do -- draw 10 degree marks local l = 3 local xT = x-1 if ( i == 60 ) then -- longer mark for freezing point xT = x-6 l = -12 end cairo_move_to (cr,xT,y) cairo_rel_line_to (cr,-l,0) cairo_stroke (cr) y = y + range*10 end cairo_set_source_rgba (cr,1,1,1,0.5) cairo_set_line_width(cr,3) cairo_set_line_cap(cr, CAIRO_LINE_CAP_ROUND) cairo_move_to(cr,x-1,zero-T) -- temperature indicator cairo_rel_line_to(cr,10,0) -- temperature text print_text(cr,t,x+28,zero-T,1,10) -- zero degrees text print_text(cr,"0",x-12,zero,1,12) end function draw_wind_rose() draw_marks(cr,xW,yW,radiusW) draw_WindArrow(cr,xW,yW,50,direction,radiusW-8) draw_NESW(cr,xW,yW,radiusW,10) -- print windspeed local fontface="Dustismo" local r,g,b,a = 1,1,1,0.4 cairo_set_source_rgba (cr,r,g,b,a) cairo_select_font_face(cr,fontface,CAIRO_FONT_SLANT_NORMAL,CAIRO_FONT_WEIGHT_BOLD) cairo_set_font_size (cr,16) local xt,yt = position_text(cr,windS,xW,yW,2) cairo_move_to (cr,xt,yt) cairo_show_text (cr,windS) cairo_stroke (cr) -- print weather conditions local fontface="Dustismo" local r,g,b,a = 1,1,1,0.4 cairo_set_source_rgba (cr,r,g,b,a) cairo_select_font_face(cr,fontface,CAIRO_FONT_SLANT_NORMAL,CAIRO_FONT_WEIGHT_NORMAL) cairo_set_font_size (cr,10) local xt,yt = position_text(cr,wx,xW,yW+10,1) cairo_move_to (cr,xt,yt) cairo_show_text (cr,wx) cairo_stroke (cr) end function draw_WindArrow(cr,x, y, length, bearing,radiusW) -- startpoint x, startpoint y, length of side, compass bearing local head_ratio = 1.05 -- ratio of side to overall length local head_angle = 0.02 -- proportion 0 - 0.5 (straight, at right angle to direction) local x1=x- (math.sin(bearing)*radiusW) local y1=y- (math.cos(bearing)*radiusW) --arrow body local angle = bearing local x0 = x1 + (math.sin(angle) * length) local y0 = y1 + (math.cos(angle) * length) local xtext = x1 + (math.sin(angle) * 0.25*length) local ytext = y1 + (math.cos(angle) * 0.25*length) --arrow head left angle = bearing - (head_angle * math.pi) x2 = x0 - (math.sin(angle) * length * head_ratio) y2 = y0 - (math.cos(angle) * length * head_ratio) --arrow head right angle = bearing + (head_angle * math.pi) x3 = x0 - (math.sin(angle) * length * head_ratio) y3 = y0 - (math.cos(angle) * length * head_ratio) start_x=(x0+x2+x3)/3 start_y=(y0+y2+y3)/3 cairo_set_source_rgba (cr,1,1,1,0.5) cairo_move_to (cr,start_x,start_y) cairo_line_to (cr,x2,y2) cairo_line_to (cr,x1,y1) cairo_line_to (cr,x3,y3) cairo_close_path (cr) cairo_fill(cr) cairo_stroke (cr) return true end -- display compass points function draw_NESW(cr,x,y,rt,font_size) local compass={0,90,180,270} local cpoints={"N","E","S","W"} radiusW=rt+12 for i = 1,4,1 do compass_point=-math.pi*(tonumber(compass[i]))/180 local x1=x - (math.sin(compass_point)*radiusW) local y1=y - (math.cos(compass_point)*radiusW) local t = cpoints[i] print_text(cr,t,x1,y1,1,font_size) end end -- draw compass rose graduations function draw_marks(cr,x,y,r) local angle=0 local inner=r-2 local outer=r+2 local r,g,b,a=1,1,1,0.5 cairo_set_source_rgba (cr,r,g,b,a) cairo_set_line_width(cr, 1) for i = 0,36,1 do -- draw small ticks, every 10 deg compass_arc=(-2*math.pi/360)*angle local x0 = x - (math.sin(compass_arc) * inner) local y0 = y - (math.cos(compass_arc) * inner) local endx = x - (math.sin(compass_arc) * outer) local endy = y - (math.cos(compass_arc) * outer) if ( (i/3) - math.floor(i/3) ~= 0 ) then -- don't draw every third tick cairo_move_to (cr,x0,y0) cairo_line_to(cr,endx,endy) cairo_stroke(cr) end angle=angle+10 end angle=0 -- re-set angle for i = 0,12,1 do -- draw large ticks, every 30 deg compass_arc=(-2*math.pi/360)*angle x0 = x - (math.sin(compass_arc) * (inner-5)) y0 = y - (math.cos(compass_arc) * (inner-5)) endx = x - (math.sin(compass_arc) * outer) endy = y - (math.cos(compass_arc) * outer) cairo_move_to (cr,x0,y0) cairo_line_to(cr,endx,endy) cairo_stroke(cr) angle=angle+30 end end function print_text(cr,t,xT,yT,posT,font_size) -- align text, using text area extents -- posT: 0 = none -- 1 = align both -- 2 = horizontal -- 3 = vertical -- 4 = left cairo_set_font_size (cr,font_size) if ( posT == 0 ) then xt = xT yt = yT else xt,yt = position_text(cr,t,xT,yT,posT) end cairo_move_to (cr,xt,yt) cairo_show_text (cr,t) cairo_stroke (cr) end function position_text(cr,t,text_x,text_y,pos) -- adjust text position -- get text area (x_bearing,y_bearing,width,height,x_advance,y_advance) te=cairo_text_extents_t:create() cairo_text_extents(cr,t,te) xtext = text_x ytext = text_y if ( pos == 1 ) then -- centre text xtext = text_x - te.width/2 ytext = text_y + te.height/2 elseif ( pos == 2 ) then -- horizontal align xtext = text_x - te.width/2 elseif ( pos == 3 ) then -- vertical align ytext = text_y + te.height/2 elseif ( pos == 4 ) then -- set right edge of text to pos xtext = text_x - te.width end return xtext,ytext end
EDIT: some code corrections
HI!
Congratulations for this awesome lua script
I don't have wind now and the lua script doesn't like it ... I got an error about the wind in the lua script, I can't code in lua I'm doing the same as Sector11 copy&paste 8o In advance thanks for help :
/home/raphix/.config/conky/scripts/lua-weather.sh: ligne 110 : printf: null: nombre non valable
Conky: llua_do_call: function conky_main execution failed: /home/raphix/.config/conky/scripts/lua-weather.lua:95: attempt to perform arithmetic on a nil value
Conky: llua_do_call: function conky_main execution failed: /home/raphix/.config/conky/scripts/lua-weather.lua:95: attempt to perform arithmetic on a nil value
Conky: llua_do_call: function conky_main execution failed: /home/raphix/.config/conky/scripts/lua-weather.lua:95: attempt to perform arithmetic on a nil value
Conky: llua_do_call: function conky_main execution failed: /home/raphix/.config/conky/scripts/lua-weather.lua:95: attempt to perform arithmetic on a nil value
Conky: llua_do_call: function conky_main execution failed: /home/raphix/.config/conky/scripts/lua-weather.lua:95: attempt to perform arithmetic on a nil value
Conky: llua_do_call: function conky_main execution failed: /home/raphix/.config/conky/scripts/lua-weather.lua:95: attempt to perform arithmetic on a nil value
Conky: llua_do_call: function conky_main execution failed: /home/raphix/.config/conky/scripts/lua-weather.lua:95: attempt to perform arithmetic on a nil value
Conky: llua_do_call: function conky_main execution failed: /home/raphix/.config/conky/scripts/lua-weather.lua:95: attempt to perform arithmetic on a nil value
Conky: llua_do_call: function conky_main execution failed: /home/raphix/.config/conky/scripts/lua-weather.lua:95: attempt to perform arithmetic on a nil value
Conky: received SIGINT or SIGTERM to terminate. bye!
Last edited by ragamatrix (2016-07-06 14:09:31)
Offline
^ I am getting the same for some locations ATM (my current location for example current location is working again ) - I think openweather must be having issues with many stations. Others are working though, so perhaps test if this is the problem by using eg:
${execi <interval> /path/to/lua-weather.sh glasgow,uk}
TODO: I don't have much error-checking in the script yet!
EDIT: Try this code for the 'get_vals( )' function:
-- read values from datafile
function get_vals()
local path = datafile
local file = io.open( path)
local array = {}
local i=0
if (file) then
-- read all contents of file into array
for line in file:lines() do
i=i+1
array[i]=line
end
file:close()
dir=tostring(array[1]) -- get wind direction, convert to value required
if ( dir == "null" ) then
winddir=-math.pi*(tonumber(0))/180
wind_speed="No wind data"
else
winddir=-math.pi*(tonumber(dir))/180
wind_speed=tostring(array[2]) -- windspeed knots
end
temperature=tonumber(array[5])
sunrise=array[3]
sunset=array[4]
location=array[6]
weather=array[7]
return winddir,wind_speed,temperature,sunrise,sunset,location,weather
else
print("datafile " .. datafile .. " not found")
end
end
Last edited by damo (2016-07-06 15:19:46)
Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt «» BunsenLabs on DeviantArt
Offline
^Hey Damo, I tried it:
${execi <interval> /path/to/lua-weather.sh horgen,ch}
and it works fine. Thanks for the tipp.
I'll try the second code when I'll have more time.
Offline
conky-cli
out_to_console yes
background no
update_interval 2
total_run_times 0
use_spacer none
TEXT
^fg(\#453C49)^i($HOME/.config/dzcon/arr.xbm)^bg(\#453C49)^fg(\#B5B5BA)^i($HOME/.config/dzcon/cat.xbm) ${uptime_short}^ca()^fg(\#2A242D)^i($HOME/.config/dzcon/arr.xbm)^bg(\#2A242D)#/
^fg(\#453C49)^i($HOME/.config/dzcon/arr.xbm)^bg(\#453C49)^fg(\#B5B5BA)^i($HOME/.config/dzcon/diskette.xbm) ${fs_used_perc /}%^ca()^fg(\#2A242D)^i($HOME/.config/dzcon/arr.xbm)^bg(\#2A242D)#/
^fg(\#453C49)^i($HOME/.config/dzcon/arr.xbm)^bg(\#453C49)^fg(\#B5B5BA)^i($HOME/.config/dzcon/cpu.xbm) ^ca(1,urxvt -e top -u ${exec whoami})${cpu cpu1}% ${cpu cpu2}%^ca()^fg(\#2A242D)^i($HOME/.config/dzcon/arr.xbm)^bg(\#2A242D)#/
^fg(\#453C49)^i($HOME/.config/dzcon/arr.xbm)^bg(\#453C49)^fg(\#B5B5BA)^i($HOME/.config/dzcon/mem.xbm) ${memperc}%^ca()^fg(\#2A242D)^i($HOME/.config/dzcon/arr.xbm)^bg(\#2A242D)#/
^fg(\#6e8c6e) ^i($HOME/.config/dzcon/net_up_02.xbm) ^fg(\#6e8c6e)${upspeed eth0} ${totalup eth0} #/
^fg(\#5C5C61) / #/
^fg(\#a7664a) ^i($HOME/.config/dzcon/net_down_02.xbm) ^fg(\#a7664a)${downspeed eth0} ${totaldown eth0} #/
^fg(\#453C49)^i($HOME/.config/dzcon/arr.xbm)^bg(\#453C49)^fg(\#B5B5BA)^ca(1,amixer set Master 1+)+^ca() ^i($HOME/.config/dzcon/spkr_01.xbm)^ca(1,urxvt -e alsamixer) ${exec amixer get Master -M | grep -oE "[[:digit:]]*%"}^ca()^ca(1,amixer set Master 1-) -^ca()^fg(\#2A242D)^i($HOME/.config/dzcon/arr.xbm)^bg(\#2A242D)#/
^fg(\#453C49)^i($HOME/.config/dzcon/arr.xbm)^bg(\#453C49)^fg(\#B5B5BA)^i($HOME/.config/dzcon/clock.xbm) ^ca(1,urxvt -geometry 56x10-8+855 -e bash -c "ncal -3 && sleep 5")${time %a %d, %I:%M %p}^ca()^fg(\#2A242D)^i($HOME/.config/dzcon/arr.xbm)^bg(\#2A242D) #/
^fg(\#4b4b56)^i($HOME/.config/dzcon/arr.xbm)^bg(\#4b4b56)^ca(1,urxvt -e tmux)^fg(\#c3c3c6)^i($HOME/.config/dzcon/term.xbm) Term^ca()#/
^fg(\#6e8c6e)^i($HOME/.config/dzcon/arr.xbm)^bg(\#6e8c6e)^ca(1,$HOME/.config/palemoon/palemoon)^fg(\#464F53)^i($HOME/.config/dzcon/fox.xbm) Web^ca()#/
^fg(\#cba264)^i($HOME/.config/dzcon/arr.xbm)^bg(\#cba264)^ca(1,spacefm)^fg(\#464F53)^i($HOME/.config/dzcon/pacman.xbm) File^ca()#/
^fg(\#a7664a)^i($HOME/.config/dzcon/arr.xbm)^bg(\#a7664a)^ca(1,$HOME/.dbeef/deadbeef)^fg(\#464F53)^i($HOME/.config/dzcon/phones.xbm) Music^ca()#/
^fg(\#4b4b56)^i($HOME/.config/dzcon/arr.xbm)^bg(\#4b4b56)^fg(\#c3c3c6)^i($HOME/.config/dzcon/shroom.xbm) ^ca(1,xdotool key Insert)${exec whoami}@$nodename^ca()^fg(\#2A242D)^i($HOME/.config/dzcon/arr.xbm)^bg(\#2A242D)^fg(\#B5B5BA)^ca(1,xdotool key alt+4)4^ca() ^ca(1,xdotool key alt+5)5^ca() ^ca(1,xdotool key alt+6)6^ca() ^ca(1,xdotool key alt+7)7^ca()#/
dzen2
#!/bin/sh
FONT='Ohsnap-9'
exec conky -d -c "./.config/dzcon/conky" | dzen2 -e 'button2=;' -bg "#2A242D" -ta right -w 2000 -h 14 -x 0 -y 1 -fn $FONT &
exit 0
arrow (rename to whatever.xbm) to make <arrow<. I made it "arr.xbm".
#define r_arr_width 10
#define r_arr_height 16
static unsigned char r_arr_bits[] = {
0x00, 0x02, 0x00, 0x03, 0x80, 0x03, 0xc0, 0x03, 0xe0, 0x03, 0xf0, 0x03,
0xf8, 0x03, 0xfc, 0x03, 0xfc, 0x03, 0xf8, 0x03, 0xf0, 0x03, 0xe0, 0x03,
0xc0, 0x03, 0x80, 0x03, 0x00, 0x03, 0x00, 0x02 };
credit:
PackRat, for clickable dzen2
baoquocphan, for r_arr.xbm
dkeg, for awesome soft colors palette.
ohsnap font.
-Revised-
Edited
Added:
1) click-able workspaces 4/5/6/7 - I have busy 1/2/3/4 with apps that auto-start from spectrwm. 4/5/6/7 are free
2) click-able top with "-u" feature like top -u Nili @ cpu usage
3) click-able alsamixer as well vol +/- as up/down
4) click-able calendar using "ncal -3" with auto hide after 5sec.
I tried to put in work existing features without any external code.
Requires: conky-cli/dzen2 / xdotool, urxvt, window manager (wm) & xbm icons
Last edited by Nili (2016-07-13 13:12:53)
Tumbleweed | KDE Plasma
Offline
Conky/LUA Weather Widgets Update
....
I must admit to a childish glee at sunset a few minutes ago, and seeing the sun go dim in the conkyMaybe I can get it to fade the colour change, like a real sunset......
Colour change for sunrise+10mins, and sunset-10mins can be achieved by changing
-- set colour & alpha, for day/night
if ( tonumber(current_time) > tonumber(sunrise) ) and ( tonumber(current_time) < tonumber(sunset) ) then
r,g,b,a = 1,1,0,0.4 --day
else
r,g,b,a = 0.5,0.5,0.5,0.4 --night
end
to
-- set colour & alpha, for day/night
local r,g,b,a = sun_colour()
and adding a "sun_colour( )" function...
function sun_colour() -- get dawn/day/evening/night colour (depending on current time)
-- date/time math needs values from date object
local r,g,b,a = 1,1,1,1
t_obj = os.date('*t') -- get date object
t_now = t_obj
--t_now.hour = 5 -- for testing
--t_now.min = 14
time_now = os.date("%H%M", os.time(t_now)) -- get time now, hours(24),mins
t_sunrise = t_obj
t_sunrise.hour = sunupH
t_sunrise.min = sunupM
time_sunrise = os.date("%H%M", os.time(t_sunrise))
t_sunrise10 = t_obj
t_sunrise10.min = sunupM + 10
time_sunrise10 = os.date("%H%M", os.time(t_sunrise10))
t_sunset = t_obj
t_sunset.hour = sundownH
t_sunset.min = sundownM
time_sunset = os.date("%H%M", os.time(t_sunset))
t_sunset10 = t_obj
t_sunset.hour = sundownH
t_sunset10.min = sundownM - 10
time_sunset10 = os.date("%H%M", os.time(t_sunset10))
if ( time_now >= time_sunrise ) and ( time_now <= time_sunrise10 ) then
r,g,b,a = 1,0.6,0,0.4 --dawn
elseif ( time_now > time_sunrise10 ) and ( time_now < time_sunset10 ) then
r,g,b,a = 1,1,0,0.4 --day
elseif ( time_now <= time_sunset ) and ( time_now >= time_sunset10 ) then
r,g,b,a = 1,0.2,0,0.4 --evening
elseif ( time_now < time_sunrise ) or ( time_now > time_sunset ) then
r,g,b,a = 0.5,0.5,0.5,0.4 --night
end
return r,g,b,a
end
Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt «» BunsenLabs on DeviantArt
Offline
@damo
I'm waiting for the sunset with your changings.
Thanks again for your lua artistic drawings
I'll check later how to change opacity to make it more contrasted...
Look for the "r,g,b,a" values. "a" is alpha transparency. For example, change the last number in
cairo_set_source_rgba (cr,1,1,1,0.5)
or
cairo_pattern_add_color_stop_rgba(border_pat,0,1,1,0,0.3)
etc
At some point I intend to try with a Settings table at the start, but meanwhile positions, colours etc need to be set individually in the functions.
Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt «» BunsenLabs on DeviantArt
Offline
Offline
...
But I didn't find how to display ":" for the sunrise and sunset time ?
Add these lines at the beginning of "function sun_text(xr,yr,xs,ys)"
-- display sunrise time
sunrise1 = string.sub(sunrise,1,2)
sunrise2 = string.sub(sunrise,3,4)
sunset1 = string.sub(sunset,1,2)
sunset2 = string.sub(sunset,3,4)
local sunrise = ( sunrise1 .. ":" .. sunrise2 )
local sunset = ( sunset1 .. ":" .. sunset2 )
Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt «» BunsenLabs on DeviantArt
Offline
ragamatrix wrote:...
But I didn't find how to display ":" for the sunrise and sunset time ?Add these lines at the beginning of "function sun_text(xr,yr,xs,ys)"
-- display sunrise time sunrise1 = string.sub(sunrise,1,2) sunrise2 = string.sub(sunrise,3,4) sunset1 = string.sub(sunset,1,2) sunset2 = string.sub(sunset,3,4) local sunrise = ( sunrise1 .. ":" .. sunrise2 ) local sunset = ( sunset1 .. ":" .. sunset2 )
Perfect!
You're good thanks
Offline
Hello BunsenLabs Conkystadors !
Here are a couple of recent screenies (different 1.10.x 'conky-all' versions) ...
I'm not going post everything in this showcase thread, but here's my latest '.conkyrc' file.
--##################################################
--## VinDSL | rev 16-08-22 01:19 | v.1.10.3-1-P7 ##
--##################################################
--## August 2016 Series ##
--##################################################
--## ¡PLEASE READ THE FINE PRINT! ##
--####
--## Development Platforms (current)
--#
--# Peppermint Linux OS Seven (GNOME 3.18 - Conky 1.10.3-1)
--# Ubuntu 16.10 'Yakkety Yak' (GNOME-SHELL - UNITY - Conky 1.10.3-1)
--# Screen Resolution: 1280x1024x24 (DELL UltraSharp 1907FP)
--#
--## Tips n' Tricks: Conky 1.8.x - 1.9.x will no longer be supported. RIP :)
--####
--## Prerequisites (required)
--#
--# conky-all 1.10.3-1 backport
--# Conkywx 5.0.0-x (Paramvir Likhari)
--# UTF-8 Compatible Text Editor
--# mesa-utils - Basic GL Utilities
--## DBus toolsets (required for experimental music players below)
--## Install one PAIR or the other PAIR (but NOT both pair) depending on your distro,
--## Examples from Ubuntu PPA - package names are in ('parenthesis'):
--#
--# Qt 4 D-Bus tool ('qdbus') & Qt 4 development tools ('qt4-dev-tools')
--# Qt 5 D-Bus tool ('qdbus-qt5') & Qt 5 base development programs ('qtbase5-dev-tools')
--####
--## Installed fonts (required)
--#
--# Arrows (JLH Fonts - not included in link below)
--# ConkyWeather (Stanko Metodiev)
--# Cut Outs for 3D FX (Fonts & Things)
--# Droid Font Family (Google Android SDK)
--# KR A Round (Kat's Fun Fonts)
--# Moon Phases (Curtis Clark)
--# OpenLogos (Icoma)
--# PizzaDude Bullets (Jakob Fischer)
--# Radio Space (Iconian Fonts)
--# StyleBats (Vinterstille)
--# Ubuntu Font Family (Canonical Ltd)
--# Ubuntu Title Bold (Paulo Silva - not included in link below)
--# Weather (Jonathan Macagba)
--#
--## Tips n' Tricks from: Mr. Peachy, djyoung4, and 42dorian (Thanks!)
--## Most of the necessary fonts can be downloaded here: http://goo.gl/QPBcPm
--## Unzip the fonts into your font folder, for example: /home/username/.fonts
--## Run this command in a terminal (rebuilds font cache file): sudo fc-cache -fv
conky.config = {
--####
--## Use XFT? Required to Force UTF8 (see below)
--#
use_xft = true,
font = 'DroidSansFallback:size=9.55',
xftalpha = 0.1,
--####
--## Force UTF8? Requires XFT (see above)
--## Displays degree symbol, instead of °, etc.
--#
override_utf8_locale = true,
--####
--## This buffer is used for single lines, text, output from $exec, and other variables.
--## Increasing the 'text_buffer_size' (too high) will drastically reduce Conky's performance.
--## Decreasing the buffer size (too low) will truncate content and cause strange display output.
--## Standard text buffer size is 256 bytes (cannot be less). Adjust YOUR buffer wisely!
--## Tips n' Tricks from dk75:"You don't need to create a 12KiB buffer for every Conky config line."
--#
text_buffer_size = 4352,
--####
--## Maximum number of special things, e.g. fonts, offsets, aligns, etc. (default is 512)
--## Tips n' Tricks from: sparker256 (Thanks, Bill!)
--## (Currently not working in Conky 1.10.3-1 - Disabled)
--#
--max_specials 600,
--####
--## Maximum size of user text buffer, e.g. for layout below TEXT line (default is 16384)
--## Increase this, as needed, to accommodate large config files with a great deal of text.
--## Tips n' Tricks from: Cavsfan
--#
max_user_text = 32768,
--####
--## Daemonize Conky, aka 'fork to background'.
--#
background = true,
--####
--## Update interval in seconds.
--#
update_interval = 2.0,
--####
--## The number of times Conky will update before quitting.
--## Zero makes Conky run forever.
--#
total_run_times = 0,
--####
--## Create 'own_window' type. Makes Conky behave like other panels.
--#
own_window = true,
own_window_transparent = true,
own_window_type = 'normal',
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
--####
--## Some distros require the following lines for TRUE transparency.
--## BOTH of these lines need to be Commented/Uncommented in tandem.
--#
--own_window_argb_visual = true,
--own_window_argb_value = 255,
--####
--## Don't want TRUE transparency? (icons look janky on certain walls)
--## Comment BOTH of the lines above and Uncomment the line below.
--#
own_window_argb_visual = false,
--####
--## Force images to redraw when they change.
--#
imlib_cache_size = 1,
--####
--## Use double buffering? Reduces flicker.
--#
double_buffer = true,
--####
--## Draw shades?
--#
draw_shades = false,
default_shade_color = '333300',
--# default_shade_color = '3c3c3c',
--# default_shade_color = '494949',
--# default_shade_color = '565656',
--# default_shade_color = '626262',
--####
--## Draw outlines?
--#
draw_outline = false,
--####
--## Draw borders around text?
--#
draw_borders = false,
--####
--## Draw borders around graphs?
--#
draw_graph_borders = false,
--####
--## Print text in X?
--## Print text in console?
--## Print text to stdout?
--#
out_to_x = true,
out_to_console = false,
out_to_ncurses = false,
--####
--## Text alignment.
--#
alignment = 'top_right',
--####
--## Minimum size of the text area.
--#
minimum_width = 245,
minimum_height = 1394,
--####
--## Maximum width of the text area.
--#
maximum_width = 245,
--####
--## Gap between text and screen borders.
--#
gap_x = 6, --# Left/Right
gap_y = 32, --# Top/Bottom
--####
--## Shorten MiB/GiB to M/G in stats.
--#
short_units = true,
--####
--## Pad % symbol spacing after numbers.
--#
pad_percents = 0,
--####
--## Pad spacing between text and borders.
--#
border_inner_margin = 4,
--####
--## Limit the length of names in "Top Processes".
--#
top_name_width = 10,
--####
--## Subtract file system -/+buffers/cache from used memory?
--## Set to true, to produce meaningful physical memory stats.
--#
no_buffers = true,
--####
--## Set to true, if you want all text to be in UPPERCASE.
--#
uppercase = false,
--####
--## Number of cpu samples to average.
--## Set to 1 to disable averaging.
--#
cpu_avg_samples = 2,
--####
--## Number of net samples to average.
--## Set to 1 to disable averaging.
--#
net_avg_samples = 2,
--####
--## Add spaces to keep things from moving around?
--## Only affects certain objects.
--#
use_spacer = 'right',
--####
--## My colors (suit yourself)
--#
color0 = 'white', --#FFFFFF
color1 = 'ivory', --#FFFFF0
color2 = 'ivory2', --#EEEEE0
color3 = 'ivory3', --#CDCDC1
color4 = 'ffcc66', --#FFCC66
color5 = 'ivory3', --#CDCDC1
color6 = 'gray', --#BEBEBE
color7 = 'antiquewhite4', --#8B8378
color8 = 'dimgray', --#696969
color9 = 'tomato', --#FF6347
--#####
--## Load Lua for shading (optional)
--## Set the path to your script here.
--## (Currently not working in Conky 1.10.3-1 - Disabled)
--#
-- lua_load = '~/.conky/draw_bg.lua',
-- lua_draw_hook_pre = 'draw_bg',
--####
--## Load Lua for bargraphs (required)
--## Set the path to your script here.
--#
lua_load = '~/.conky/bargraph_small.lua',
lua_draw_hook_post = 'main_bars',
--####
--## Define the locations of Conkywx files (required)
--## Set the path to your .confs and templates here.
--#
template0 = '/usr/share/conkywx/conkywx.sh',
template1 = '/home/vindsl/.config/conkywx/vindsl-imperial-conkywx.conf',
template2 = '/home/vindsl/.config/conkywx/vindsl-metric-conkywx.conf',
template3 = '/home/vindsl/.config/conkywx/wx-wu-vindsl-imperial-weather-dingbat-template.sh',
template4 = '/home/vindsl/.config/conkywx/wx-wu-vindsl-imperial-weather-graphic-template.sh',
template5 = '/home/vindsl/.config/conkywx/wx-wu-vindsl-metric-weather-dingbat-template.sh',
template6 = '/home/vindsl/.config/conkywx/wx-wu-vindsl-metric-weather-graphic-template.sh',
--##
--## Tips n' Tricks: type 'route' in CLI and check for interface names in the 'Iface' column .
--## Define the Wireless interface here - wlan0, wlan1, etc. (required)
--##
template7 = 'wlan0',
--##
--## Define the Wired interface name here - eth0, eth1, etc. (required)
--#
template8 = 'eno1'
} --end conky.config
conky.text = [[
##################################
## LOGO ##
##################################
## Uncomment for hard-coded ID (static)
# ${offset -3}${voffset -34}${font OpenLogos:size=106}${color2}v${font}${voffset -78}${goto 180}${font UbuntuTitleBold:size=19.55}${color2}${offset 4}1${offset 2}6${offset 1}.${offset 0}1${offset 1}0${font}
####
## Uncomment for soft-coded ID (dynamic)
# ${voffset -30}${font OpenLogos:size=103}${color2}v${font}${voffset -75}${goto 179}${font UbuntuTitleBold:size=19.6}${color4}${execpi 1800 cat /etc/*release | grep 'RELEASE' | awk -F'=' '{print $2}'}${font}
## Additional ID (branch version, code name, release date, etc.)
# ${voffset 0}${goto 185}${font Ubuntu-B:bold:size=7.55}${color5}${execpi 1800 conky --version | sed -n 1p | cut -b1-13}${font}
# ${voffset 0}${goto 182}${font Ubuntu-B:bold:size=7.55}${color5}Conky ${conky_version}${font}
# ${voffset 0}${goto 182}${font Ubuntu-B:size=8}${color4}Pre-Alpha${font}
####
## Uncomment to display YOUR custom graphic image (upper-right corner)
# ${voffset -30}${font OpenLogos:size=103}${color2}v${font}${voffset -52}${image /home/vindsl/Pictures/BDC/Avatar(Transparent-50)55x55.png -p 180,0 -s 52x52 -n}
${voffset -1}${image /home/vindsl/.conky/logos/peppermint_logo_small.png -n}${voffset 18}${goto 45}${font Ubuntu-B:bold:size=7.55}${color5}${font Ubuntu-B:bold:size=7.55}${color5}Conkywx ${execpi 1800 conkywx -v}${goto 180}Conky ${conky_version}${font}${voffset -5}
##################################
## SYSTEM ##
##################################
${voffset 4}${font DroidSans:bold:size=8.25}${color4}SYSTEM${offset 8}${color6}${voffset -2}${hr 1}${font}
${voffset 4}${font OpenLogos:size=10}${color2}u${voffset -2}${font DroidSans:size=8.55}${color3}${offset 5}${execpi 1800 lsb_release -sd | sed -e 's/Ubuntu/Ubuntu/g' -e 's/development/dev/g'}${alignr}${execpi 1800 lsb_release -sr}${font}
# ${voffset 4}${font OpenLogos:size=10}${color2}u${voffset -4}${font DroidSans:size=8.55}${color3}${offset 5}${execpi 1800 lsb_release -sd}${alignr}32 Bit${font}
${voffset 0}${offset -2}${font OpenLogos:size=12}${color2}Z${voffset -4}${font DroidSans:size=8.55}${color3}${offset 3}${sysname}${offset 3}${kernel}${alignr}${font DroidSans:size=8.3}${machine}${font}
####
## Uncomment for nVidia ID (nvidia-smi version - dynamic)
# ${voffset 2}${font StyleBats:size=10}${color2}d${voffset -2}${font DroidSans:size=8.55}${color3}${offset 5}${execpi 1800 nvidia-smi -q | grep "Product Name" | sed -e 's/.*: /nVidia /'}${alignr}${execpi 1800 nvidia-smi -q | grep "Driver Version" | awk '{print $4}'}${font}
####
## Uncomment for 'nvidia-current' driver ID (DPKG version - hybrid)
# ${voffset 2}${font StyleBats:size=10}${color2}d${voffset -2}${font DroidSans:size=8.55}${color3}${offset 5}nVidia GeForce 7600 GT${alignr}${font DroidSans:size=8.3}${execpi 1800 dpkg --status nvidia-current | grep Version | cut -f 1 -d '-' | sed 's/[^.,0-9]//g'}${font}
####
## Uncomment for nvidia driver ID (OpenGL version - hydrid)
# ${voffset 2}${font StyleBats:size=10}${color2}d${voffset -2}${font DroidSans:size=8.55}${color3}${offset 5}nVidia GeForce 7600 GT${offset 3}(${offset 2}${execpi 2 nvidia-settings -q gpucoretemp -t --verbose=none | awk '{s+=$1}END{print s/NR}' RS=" "}°${offset 1})${alignr}${font DroidSans:size=8.3}${execpi 1800 glxinfo | grep 'OpenGL version string' | sed -e 's/OpenGL.*: //' | cut -c '14-20'}${font}
## Uncomment when running Nouveau drivers
# ${voffset 1}${font StyleBats:size=10}${color2}d${voffset -1}${font DroidSans:size=8.55}${color3}${offset 5}nVidia GeForce GT 710${voffset -2}${alignr}nouveau${font}
## Uncomment when running nVidia drivers with GPU temp
${voffset 1}${font StyleBats:size=10}${color2}d${voffset -2}${font DroidSans:size=8.55}${color3}${offset 5}nVidia GeForce GT 710${offset 3}(${offset 2}${execpi 2 nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader,nounits}°${offset 1})${alignr}${font DroidSans:size=8.3}${execpi 1800 nvidia-smi -q | grep "Driver Version" | awk '{print $4}'}${font}
####
## Uncomment for hard-coded video ID (Nouveau version - static)
# ${voffset 2}${font StyleBats:size=10}${color2}d${voffset -2}${font DroidSans:size=8.55}${color3}${offset 5}nVidia GeForce 7600 GT${offset 2}${alignr}nouveau${font DroidSans:size=8.3}${font}
####
## Uncomment for hard-coded video ID (Generic version / any card / any driver - static)
# ${voffset 2}${font StyleBats:size=10}${color2}d${voffset -2}${font DroidSans:size=8.55}${color3}${offset 5}Video Card Product Name${alignr}Driver Version${font DroidSans:size=8.3}${font}
####
## Uncomment for CPU ID / CPU Temp / CPU frequency (hybrid)
# ${voffset 2}${font StyleBats:size=10}${color2}A${voffset 0}${font DroidSans:size=8.55}${color3}${offset 5}Intel${offset 3}P4${offset 3}Extreme${offset 3}Edition${offset 3}(${offset 2}${execpi 2 sensors | grep 'temp1' | cut -c16-17}°${offset 1})${alignr 1}${font DroidSans:size=8.3}${freq_g cpu0}${offset 1}GHz${font}
## Uncomment for CPU ID / CPU Temp / CPU frequency (hybrid)
${voffset 1}${font StyleBats:size=10}${color2}A${voffset -2}${font DroidSans:size=8.55}${color3}${offset 5}Intel${offset 3}Core${offset 3}i5-3470${offset 4}(${offset 2}${execpi 2 sensors | grep 'Core 0' | sed -n 1p | cut -b18-19}°${voffset -1}${offset 1})${alignr -3}${font DroidSans:size=8.3}${freq_g cpu0}${voffset -1}${offset 2}GHz${font}
####
## Uncomment for System Uptime (hybdid)
${voffset 2}${font StyleBats:size=10}${color2}q${voffset -2}${font DroidSans:size=8.55}${color3}${offset 5}System${offset 3}Uptime${voffset -1}${alignr}${font DroidSans:size=8.3}${uptime_short}${font}
##################################
## PROCESSORS ##
##################################
${voffset 4}${font DroidSans:bold:size=8}${color4}PROCESSORS${offset 8}${color6}${voffset -2}${hr 1}${font}
${voffset 5}${font StyleBats:size=9.9}${color2}k${voffset -1}${font DroidSansFallback:size=8}${color3}${offset 2}CPU1${offset 5}${font DroidSans:size=8}${cpu cpu1}%${font DroidSansFallback:size=8}${goto 137}${voffset -1}CPU2${offset 5}${font DroidSans:size=8}${cpu cpu2}%${font}
${voffset 1}${font StyleBats:size=9.9}${color2}k${voffset -1}${font DroidSansFallback:size=8}${color3}${offset 2}CPU3${offset 5}${font DroidSans:size=8}${cpu cpu3}%${font DroidSansFallback:size=8}${goto 137}${voffset -1}CPU4${offset 5}${font DroidSans:size=8}${cpu cpu4}%${font}
##################################
## MEMORY ##
##################################
${voffset 4}${font DroidSans:bold:size=8}${color4}MEMORY${offset 8}${color6}${voffset -2}${hr 1}${font}
${voffset 6}${font StyleBats:size=10}${color2}l${voffset -2}${font DroidSansFallback:size=8}${color3}${offset 3}RAM${goto 97}${font DroidSans:size=8.2}${mem}${goto 133}/${offset 5}${memmax}${alignr}${memperc}%${font}
##################################
## HDD ##
##################################
${voffset 14}${font DroidSans:bold:size=8}${color4}HDD${offset 8}${color6}${voffset -2}${hr 1}${font}
${voffset 7}${font StyleBats:size=9.9}${color2}x${voffset -2}${font DroidSansFallback:size=8}${color3}${offset 4}ROOT${goto 95}${font DroidSans:size=8.2}${fs_used /}${goto 133}/${offset 5}${fs_size /}${alignr}${fs_free_perc /}%${font}
${voffset 16}${font StyleBats:size=9.9}${color2}x${voffset -2}${font DroidSansFallback:size=8}${color3}${offset 4}HOME${goto 95}${font DroidSans:size=8.2}${fs_used /home}${goto 133}/${offset 5}${fs_size /home}${alignr}${fs_free_perc /home}%${font}
${voffset 16}${font StyleBats:size=9.9}${color2}4${voffset -2}${font DroidSansFallback:size=8}${color3}${offset 4}SWAP${goto 95}${font DroidSans:size=8.2}${swap}${goto 133}/${offset 5}${swapmax}${alignr}${swapperc}%${font}
##################################
## TOP PROCESSES ##
##################################
${voffset 15}${font DroidSans:bold:size=8}${color4}TOP PROCESSES${offset 8}${color6}${voffset -2}${hr 1}${font}
${voffset 4}${font StyleBats:size=10}${color1}h${voffset -1}${font DroidSansFallback:size=8.65}${color3}${offset 2}${top_mem name 1}${goto 120}${font DroidSans:size=8.2}${top_mem mem_res 1}${alignr}${top_mem mem 1}%${font}
${voffset 0}${font StyleBats:size=10}${color1}h${voffset -1}${font DroidSansFallback:size=8.65}${color3}${offset 2}${top_mem name 2}${goto 120}${font DroidSans:size=8.2}${top_mem mem_res 2}${alignr}${top_mem mem 2}%${font}
${voffset 0}${font StyleBats:size=10}${color1}h${voffset -1}${font DroidSansFallback:size=8.65}${color3}${offset 2}${top_mem name 3}${goto 120}${font DroidSans:size=8.2}${top_mem mem_res 3}${alignr}${top_mem mem 3}%${font}
# ${voffset 0}${font StyleBats:size=10}${color1}h${voffset -1}${font DroidSansFallback:size=8.65}${color3}${offset 2}${top_mem name 4}${goto 120}${font DroidSans:size=8.2}${top_mem mem_res 4}${alignr}${top_mem mem 4}%${font}
# ${voffset 0}${font StyleBats:size=10}${color1}h${voffset -1}${font DroidSansFallback:size=8.65}${color3}${offset 2}${top_mem name 5}${goto 120}${font DroidSans:size=8.2}${top_mem mem_res 5}${alignr}${top_mem mem 5}%${font}
# ${voffset 0}${font StyleBats:size=10}${color1}h${voffset -1}${font DroidSansFallback:size=8.65}${color3}${offset 2}${top_mem name 6}${goto 120}${font DroidSans:size=8.2}${top_mem mem_res 6}${alignr}${top_mem mem 6}%${font}
##################################
## NETWORK - AUTO DETECTION ##
##################################
## WIRELESS/WIFI SECTION ##
${if_existing /proc/net/route ${template7}}
${voffset -11}${font DroidSans:bold:size=8}${color4}WIFI NET${offset 8}${color6}${voffset -2}${hr 1}${font}
${voffset 4}${font PizzaDudeBullets:size=9.5}${color6}T${font DroidSans:size=8.65}${color3}${offset 5}Download${goto 120}${font DroidSans:size=8.3}${totaldown ${template7}}${alignr}${font DroidSans:size=8.3}${downspeed ${template7}}${font}
${voffset 0}${font PizzaDudeBullets:size=9.5}${color6}N${font DroidSans:size=8.65}${color3}${offset 5}Upload${goto 120}${font DroidSans:size=8.3}${totalup ${template7}}${alignr}${font DroidSans:size=8.3}${upspeed ${template7}}${font}
${voffset 4}${font PizzaDudeBullets:size=9.5}${color6}a${font DroidSans:size=8.65}${color3}${offset 5}Private${offset 3}IP${goto 123}${font DroidSansFallback:size=8.5}LAN${alignr}${font DroidSans:size=8.3}${addr ${template7}}${font}
#
## Uncomment [THIS] to display your Public/WAN URL (WIFI) - via checkip.dyndns.org
${voffset 0}${font PizzaDudeBullets:size=9.5}${color6}a${font DroidSans:size=8.65}${color3}${offset 5}Public${offset 7}IP${goto 121}${font DroidSansFallback:size=8.5}WAN${font DroidSans:size=8.3}${alignr}${execi 1800 wget -q -O - checkip.dyndns.org | sed -e 's/[^[:digit:]\|.]//g'}${font}${else}
#
## Uncomment [OR THIS] to obscure your Public/WAN URL (WIFI) - for privacy, screenshots, etc
# ${voffset 0}${font PizzaDudeBullets:size=9.5}${color6}a${font DroidSans:size=8.65}${color3}${offset 5}Public${offset 7}IP${goto 121}${font DroidSansFallback:size=8.5}WAN${font DroidSans:size=8.3}${alignr}Demo Mode${font}${else}
#
## WIRED/ETHERNET SECTION ##
${if_existing /proc/net/route ${template8}}
${voffset -23}${font DroidSans:bold:size=8}${color4}WIRED NET${offset 8}${color6}${voffset -2}${hr 1}${font}
${voffset 4}${font PizzaDudeBullets:size=9.5}${color6}T${voffset 1}${font DroidSansFallback:size=8.2}${color3}${offset 5}Download${goto 120}${font DroidSans:size=8.3}${totaldown ${template8}}${alignr}${font DroidSans:size=8.2}${downspeed ${template8}}${font}
${voffset -3}${font PizzaDudeBullets:size=9.5}${color6}N${voffset 1}${font DroidSansFallback:size=8.2}${color3}${offset 5}Upload${goto 120}${font DroidSans:size=8.3}${totalup ${template8}}${alignr}${font DroidSans:size=8.2}${upspeed ${template8}}${font}
${voffset 0}${font PizzaDudeBullets:size=9.5}${color6}a${voffset 1}${font DroidSansFallback:size=8.2}${color3}${offset 5}Private${offset 3}IP${goto 123}${font DroidSansFallback:size=8.3}LAN${alignr}${font DroidSans:size=8.2}${addr ${template8}}${font}
#
## Uncomment [THIS] to display your Public/WAN URL (WIRED) - via checkip.dyndns.org
# ${voffset -3}${font PizzaDudeBullets:size=9.5}${color6}a${voffset 1}${font DroidSans:size=8.2}${color3}${offset 5}Public${offset 7}IP${goto 121}${font DroidSansFallback:size=8.3}WAN${font DroidSans:size=8.3}${voffset -1}${alignr}${execi 1800 wget -q -O - checkip.dyndns.org | sed -e 's/[^[:digit:]\|.]//g'}${font}${else}
#
## Uncomment [OR THIS] to obscure your Public/WAN URL (WIRED) - for privacy, screenshots, etc
${voffset -3}${font PizzaDudeBullets:size=9.5}${color6}a${voffset 1}${font DroidSans:size=8.2}${color3}${offset 5}Public${offset 7}IP${goto 121}${font DroidSansFallback:size=8.5}WAN${font DroidSans:size=8.3}${voffset -1}${alignr}Demo Mode${font}${else}
#
## COMMON DISCONNECTED/OFFLINE SECTION ##
${voffset -22}${font DroidSans:bold:size=8}${color4}NETWORK${offset 8}${color6}${voffset -2}${hr 1}${font}
${voffset 25}${goto 77}${font DroidSans:bold:size=8}NO CONNECTION${voffset 23}${font}${endif}${endif}
##################################
## CONKYWX WEATHER ##
##################################
${voffset 4}${font DroidSans:bold:size=8.25}${color4}CONKYWX${offset 8}${color6}${voffset -2}${hr 1}${font}
####
## Uncomment for IMPERIAL Weather Stats (DINGBAT font set).
# ${execpi 900 ${template0} -c "${template1}" -t "${template3}"}${font}
####
## Uncomment for IMPERIAL Weather Stats (GRAPHIC icon set).
${execpi 900 ${template0} -c "${template1}" -t "${template4}"}${font}
####
## Uncomment for METRIC Weather Stats (DINGBAT font set).
# ${execpi 900 ${template0} -c "${template2}" -t "${template5}"}${font}
####
## Uncomment for METRIC Weather Stats (GRAPHIC icon set).
# ${execpi 900 ${template0} -c "${template2}" -t "${template6}"}${font}
##################################
## TIME ##
##################################
${voffset 5}${font DroidSans:bold:size=8}${color4}TIME${offset 8}${color6}${voffset -2}${hr 1}${font}
${voffset -6}${font RadioSpace:size=32}${color3}${if_match ${time %l}<=9}${alignc 7}${time %l:%M}${offset 3}${time %p}${else}${if_match ${time %l}>=10}${alignc -1}${time %l:%M}${offset 3}${time %p}${endif}${endif}${font}
##################################
## CALENDAR ##
##################################
${voffset 3}${font DroidSans:bold:size=8}${color4}DATE${offset 8}${color6}${voffset -2}${hr 1}${font}
${voffset 10}${font DroidSansMono:size=7.55}${color2}${alignc 60}${time %A}${font}
${voffset -4}${font DroidSansFallback:bold:size=18}${if_match ${time %e}<=9}${color3}${alignc 65}${time %e}${font}${else}${if_match ${time %e}>=10}${color3}${alignc 60}${time %e}${endif}${endif}${font}
${voffset 0}${font DroidSansMono:size=7.55}${color2}${alignc 60}${time %B}${font}
${voffset -2}${font DroidSansMono:size=7.6}${color2}${alignc 60}${time %Y}${font}
${voffset -78}${font CutOutsFor3DFX:size=67}${color6}${alignc 95}2${font}
####
## Uncomment for "SUNDAY = First Day-of-the-Week" valid Jan.2015 - Dec.2016 (use mono fonts only)
## Tweaked for proper alignment of annoying months with six calendar weeks.
${if_match "${time %b %G}"=="May 2015"}${voffset -66}${else}${if_match "${time %b %G}"=="Aug 2015"}${voffset -66}${else}${if_match "${time %b %G}"=="Jan 2016"}${voffset -66}${else}${if_match "${time %b %G}"=="Jul 2016"}${voffset -66}${else}${if_match "${time %b %G}"=="Oct 2016"}${voffset -82}${else}${voffset -60}${endif}${endif}${endif}${endif}${endif}${font DroidSansMono:size=7.55}${color3}${execpi 60 VinDSL_Cal_9=`date +%-d`; cal -h | sed -e 's/\r//g' -e 's/^/ /g' -e '1d' -e s/^/"\$\{offset 100"\}/ -e 's/\<'"$VinDSL_Cal_9"'\>/${color9}&${color3}/'}
####
## Uncomment for "MONDAY = First Day-of-the-Week" valid Jan.2015 - Dec.2016 (use mono fonts only)
## Tweaked for proper alignment of annoying months with six calendar weeks.
# ${if_match "${time %b %G}"=="Mar 2015"}${voffset -76}${else}${if_match "${time %b %G}"=="Aug 2015"}${voffset -76}${else}${if_match "${time %b %G}"=="Nov 2015"}${voffset -76}${else}${if_match "${time %b %G}"=="May 2016"}${voffset -76}${else}${if_match "${time %b %G}"=="Oct 2016"}${voffset -76}${else}${voffset -70}${endif}${endif}${endif}${endif}${endif}${font DroidSansMono:size=7.55}${color3}${execpi 60 VinDSL_Cal_9=`date +%-d`; ncal -M -C -h | sed -e 's/\r//g' -e 's/^/ /g' -e '1d' -e s/^/"\$\{offset 100"\}/ -e 's/\<'"$VinDSL_Cal_9"'\>/${color9}&${color3}/'}
##################################
## RHYTHMBOX 1 (Experimental) ##
##################################
# ${if_running rhythmbox}
# ${voffset -13}${font DroidSans:bold:size=8}${color4}RHYTHMBOX${offset 8}${color6}${voffset -2}${hr 1}${font}
# ${voffset 4}${font DroidSans:size=8.25}${color3}${if_match "${execpi 2 expr length "`/usr/bin/rhythmbox-client --print-playing-format %tt | head -n 1`"}" >= "48"}${alignr 15}${scroll 38 4* ${execi 2 rhythmbox-client --print-playing-format %tt --no-start}}${font}${else}${alignc}${execi 2 rhythmbox-client --print-playing-format %tt --no-start}${font}${endif}${endif}
##################################
## RHYTHMBOX 2 (Experimental) ##
##################################
# ${if_running rhythmbox}
# ${voffset -13}${font DroidSans:bold:size=8}${color4}RHYTHMBOX${offset 8}${color6}${voffset -2}${hr 1}${font}
# ${voffset 3}${font DroidSans:size=7.85}${color3}${if_match "${execpi 2 expr length "`qdbus org.mpris.MediaPlayer2.rhythmbox /\org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Metadata | grep title | cut -c 14-""`"}" >= "48"}${alignr 15}${scroll 38 4* ${execi 2 qdbus org.mpris.MediaPlayer2.rhythmbox /\org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Metadata | grep title | cut -c 14-""}}${font}${else}${alignc}${execi 2 qdbus org.mpris.MediaPlayer2.rhythmbox /\org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Metadata | grep title | cut -c 14-""}${font}${endif}${endif}
##################################
## BANSHEE (Experimental) ##
##################################
# ${if_running banshee}
# ${voffset -25}${font DroidSans:bold:size=8}${color4}BANSHEE${offset 8}${color6}${voffset -2}${hr 1}${font}
# ${voffset 3}${font DroidSans:size=7.85}${color3}${if_match "${execpi 2 expr length "`/usr/bin/banshee --query-title --no-present | cut -f1- -d" "`"}" >= "48"}${alignr 15}${scroll 38 4* ${execi 2 banshee --query-title --no-present | cut -f2- -d" "}}${font}${else}${alignc}${execi 2 banshee --query-title --no-present | cut -f2- -d" "}${font}${endif}${endif}
##################################
## GUAYADEQUE (Experimental) ##
##################################
${if_running guayadeque}${execpi 2 cat ~/.conky/guayadequetrack.txt}${else}${endif}
##################################
## VLC (Experimental) ##
##################################
${if_running vlc}${execpi 2 cat ~/.conky/vlctrack.txt}${else}${endif}
]] --end conky.text
Mod Note: Oversized images replaced with thumbnail links, please limit images to ~250x250px
-HoaS
Thx, HoaS ! Got it sorted (250x200px thumbs now).
~VinDSL
Last edited by VinDSL (2016-08-23 19:04:56)
Offline
@VinDSL, perfect.
I love this clearly structured configuration files!
Offline
That VinDSL conky was a dream for me once
Tumbleweed | KDE Plasma
Offline
Good morning VinDSL,
Welcome to BunsenLabs. Could spot that conky a mile away.
Coffee is down the hall.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
Offline
I've been working on getting my Conky working in Peppermint 7, and while I was at it decided to import my Google Calendar into it. I still need to figure out how to tweak the colors for what gcalcli pulls into Conky, but here is what I have so far:
http://imgur.com/Nli1vBG
Eventually, I would love to make the rss headlines wrap (I've been given a few things to try, but I haven't had a chance as yet) and perhaps even make the headlines clickable to open up the corresponding news story, but I think that is over my head. Anyway, here is my .conkyrc which I am sure could stand some cleanup:
conky.config = {
alignment = 'top_right',
background = false,
short_units = true,
pad_percents = 0,
cpu_avg_samples = 1,
net_avg_samples = 2,
out_to_console = false,
--#font = '8x12',
use_xft = true,
font = 'trebuchetms:bold:size=9',
xftalpha = 0.1,
override_utf8_locale = true,
text_buffer_size = 4352,
max_user_text = 32768,
own_window = true,
own_window_type = 'normal',
own_window_argb_visual = true,
own_window_argb_value = 255,
own_window_transparent = true,
own_window_class = 'conky-semi',
own_window_colour = '355656',
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
imlib_cache_size = 2,
update_interval = 1,
total_run_times = 0,
double_buffer = true,
minimum_width = 300,
minimum_height = 1200,
maximum_width = 350,
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = false,
border_inner_margin = 5,
out_to_x = true,
out_to_console = false,
out_to_ncurses = false,
--# default_color = 'white',
--# default_shade_color = 'white',
--# default_outline_color = 'white',
color1 = '370808',
color2 = 'ffffff',
color3 = 'b62424',
color4 = 'ffbc6a',
color5 = 'a18585',
color6 = '801919',
color7 = '660000',
color8 = 'D43D1A',
color9 = '2B4F81',
stippled_borders = 0,
gap_x = 5, --# Left/Right
gap_y = 10, --# Top/Bottom
top_name_width = 15,
use_spacer = 'right',
no_buffers = true,
if_up_strictness = 'address',
uppercase = false,
temperature_unit = 'fahrenheit',
}
--## boinc (seti) dir
--## seti_dir /opt/seti
--## Possible variables to be used:
--##
--## Variable Arguments Description
--## acpiacadapter ACPI ac adapter state.
--## acpifan ACPI fan state
--## acpitemp ACPI temperature.
--## adt746xcpu CPU temperature from therm_adt746x
--## adt746xfan Fan speed from therm_adt746x
--## battery (num) Remaining capasity in ACPI or APM
--## battery. ACPI battery number can be
--## given as argument (default is BAT0).
--## buffers Amount of memory buffered
--## cached Amount of memory cached
--## color (color) Change drawing color to color
--## cpu CPU usage in percents
--## cpubar (height) Bar that shows CPU usage, height is
--## bar's height in pixels
--## downspeed net Download speed in kilobytes
--## downspeedf net Download speed in kilobytes with one
--## decimal
--## exec shell command Executes a shell command and displays
--## the output in torsmo. warning: this
--## takes a lot more resources than other
--## variables. I'd recommend coding wanted
--## behaviour in C and posting a patch :-).
--## execi interval, shell Same as exec but with specific interval.
--## command Interval can't be less than
--## update_interval in configuration.
--## fs_bar (height), (fs) Bar that shows how much space is used on
--## a file system. height is the height in
--## pixels. fs is any file on that file
--## system.
--## fs_free (fs) Free space on a file system available
--## for users.
--## fs_free_perc (fs) Free percentage of space on a file
--## system available for users.
--## fs_size (fs) File system size
--## fs_used (fs) File system used space
--## hr (height) Horizontal line, height is the height in
--## pixels
--## i2c (dev), type, n I2C sensor from sysfs (Linux 2.6). dev
--## may be omitted if you have only one I2C
--## device. type is either in (or vol)
--## meaning voltage, fan meaning fan or temp
--## meaning temperature. n is number of the
--## sensor. See /sys/bus/i2c/devices/ on
--## your local computer.
--## kernel Kernel version
--## loadavg (1), (2), (3) System load average, 1 is for past 1
--## minute, 2 for past 5 minutes and 3 for
--## past 15 minutes.
--## machine Machine, i686 for example
--## mails Mail count in mail spool. You can use
--## program like fetchmail to get mails from
--## some server using your favourite
--## protocol. See also new_mails.
--## mem Amount of memory in use
--## membar (height) Bar that shows amount of memory in use
--## memmax Total amount of memory
--## memperc Percentage of memory in use
--## new_mails Unread mail count in mail spool.
--## nodename Hostname
--## outlinecolor (color) Change outline color
--## pre_exec shell command Executes a shell command one time before
--## torsmo displays anything and puts output
--## as text.
--## processes Total processes (sleeping and running)
--## running_processes Running processes (not sleeping),
--## requires Linux 2.6
--## shadecolor (color) Change shading color
--## stippled_hr (space), Stippled (dashed) horizontal line
--## (height)
--## swapbar (height) Bar that shows amount of swap in use
--## swap Amount of swap in use
--## swapmax Total amount of swap
--## swapperc Percentage of swap in use
--## sysname System name, Linux for example
--## time (format) Local time, see man strftime to get more
--## information about format
--## totaldown net Total download, overflows at 4 GB on
--## Linux with 32-bit arch and there doesn't
--## seem to be a way to know how many times
--## it has already done that before torsmo
--## has started.
--## totalup net Total upload, this one too, may overflow
--## updates Number of updates (for debugging)
--## upspeed net Upload speed in kilobytes
--## upspeedf net Upload speed in kilobytes with one
--## decimal
--## uptime Uptime
--## uptime_short Uptime in a shorter format
--##
--## seti_prog Seti@home current progress
--## seti_progbar (height) Seti@home current progress bar
--## seti_credit Seti@hoome total user credit
--## antiX additives examples. Add below Text ##
--## Battery examples ##
--# ${color}battery: ${color}$acpiacadapter, ${battery_percent BAT1}%
--# ${color}battery:${color} ${battery}
--# ${color}ACPI Battery: ${color}$battery
--# ${battery_bar 11,0}
--## Wireless example ##
--# ${color}Wireless:
--# ${color}essid: ${wireless_essid wlan0}
--# ${color}IP:${color} ${addr wlan0}
--# ${color}speed: ${color} ${wireless_bitrate wlan0}
--# ${color}link strength: ${color} ${wireless_link_bar 7,50 wlan0}
--## stuff after 'TEXT' will be formatted on screen
conky.text = [[
${execi 600 bash /home/walt/1a_accuweather_conkyweather_font/1a}
${image /home/walt/Walt_Wallpapers/peppermint7_logo_small_250w.png -p 0}
${color4}${font GeosansLight:size=18}${time %I:%M %p}
${color4}${font GeosansLight:size=12}${time %A, %B %d, %Y}
${color2}${font GeosansLight:Bold:size=8}${exec disp=${DISPLAY#:}; disp=${disp%.[0-9]}; cat /home/walt/.desktop-session/desktop-code.$disp 2>/dev/null}
${color2}${execi 60 xdpyinfo | sed -n -r "s/^\s*dimensions:.*\s([0-9]+x[0-9]+).*/\1/p"}
${color2}$kernel
${color2}Uptime: $uptime
${image /home/walt/1a_accuweather_conkyweather_font/Weather-Sun-icon2.png -p 0, 166}
${color1}${font Cantarell:Bold:size=11} Boise Weather ${hr 2}
${color2}${font conkyweather:Bold:size=24}${offset 10}${execi 600 sed -n '2p' /home/walt/1a_accuweather_conkyweather_font/curr_cond}${color4}${font Cantarell:Bold:size=9}${goto 75}${voffset -27}CURRENTLY: ${execpi 600 sed -n '4p' /home/walt/1a_accuweather_conkyweather_font/curr_cond}° F
${goto 75}${execpi 600 sed -n '3p' /home/walt/1a_accuweather_conkyweather_font/curr_cond|fold -w30}
${color2}${font conkyweather:Bold:size=24}${offset 10}${execi 600 sed -n '2p' /home/walt/1a_accuweather_conkyweather_font/tod_ton}${color4}${font Cantarell:Bold:size=9}${goto 75}${voffset -27}${execpi 600 sed -n '1p' /home/walt/1a_accuweather_conkyweather_font/tod_ton}: ${execpi 600 sed -n '4p' /home/walt/1a_accuweather_conkyweather_font/tod_ton}/${execpi 600 sed -n '5p' /home/walt/1a_accuweather_conkyweather_font/tod_ton}° F
${goto 75}${execpi 600 sed -n '3p' /home/walt/1a_accuweather_conkyweather_font/tod_ton|fold -w30}
${color2}${font conkyweather:Bold:size=24}${offset 10}${execi 600 sed -n '7p' /home/walt/1a_accuweather_conkyweather_font/tod_ton}${color4}${font Cantarell:Bold:size=9}${goto 75}${voffset -27}${execpi 600 sed -n '6p' /home/walt/1a_accuweather_conkyweather_font/tod_ton}: ${execpi 600 sed -n '9p' $HOME/1a_accuweather_conkyweather_font/tod_ton}/${execpi 600 sed -n '10p' /home/walt/1a_accuweather_conkyweather_font/tod_ton}° F
${goto 75}${execpi 600 sed -n '8p' /home/walt/1a_accuweather_conkyweather_font/tod_ton|fold -w30}
${color2}${font conkyweather:Bold:size=24}${offset 10}${execi 600 sed -n '12p' /home/walt/1a_accuweather_conkyweather_font/tod_ton}${color4}${font Cantarell:Bold:size=9}${goto 75}${voffset -27}${execpi 600 sed -n '11p' $HOME/1a_accuweather_conkyweather_font/tod_ton}: ${execpi 600 sed -n '14p' $HOME/1a_accuweather_conkyweather_font/tod_ton}/${execpi 600 sed -n '15p' $HOME/1a_accuweather_conkyweather_font/tod_ton}° F
${goto 75}${execpi 600 sed -n '13p' $HOME/1a_accuweather_conkyweather_font/tod_ton|fold -w30}
${image /home/walt/1a_accuweather_conkyweather_font/computer-skills-icon.png -p 0,365}${color1}${font Cantarell:Bold:size=11} System ${hr 2}
${color1}${font Cantarell:Bold:size=10}CPU:${alignr}${color2}${font Cantarell:Bold:size=10}${offset -10}${cpu}${color2}% ${color1}${font Cantarell:Bold:size=10}CPU Temp:${alignr}${color2}${font Cantarell:Bold:size=10}${offset -10}${hwmon 1 temp 1}°F
${color1}${font Cantarell:Bold:size=10}Freq:${alignr}${color2}${font Cantarell:Bold:size=10}${alignr}${offset -15}${freq_g} ${color}${alignr}${offset -10}${cpubar cpu0 15, 160 5599cc 5599cc}
${color1}${font Cantarell:Bold:size=10}Disk:${alignr}${color2}${font Cantarell:Bold:size=10}${alignr}${offset -12}${diskio} ${color}${alignr}${offset -10}${diskiograph 15,160 5599cc 5599cc}
## ${if_up eth0}${color}eth0 up: $alignr${color2} ${upspeed eth0}
## ${color}$alignr${upspeedgraph eth0 20,170 5599cc 5599cc}
## ${color}eth0 down: $alignr${color2} ${downspeed eth0}
## ${color2}$alignr${downspeedgraph eth0 20,170 5599cc 5599cc}${endif}
${color1}${font Cantarell:Bold:size=10}${wireless_essid wlp3s0}$alignr${color2}${font Cantarell:Bold:size=10}${offset -10}${wireless_link_qual_perc wlp3s0}%
${color1}${font Cantarell:Bold:size=10}wlp3s0 up: $alignr${color2}${font Cantarell:Bold:size=10}${offset -10}${upspeed wlp3s0} ${color1}${font Cantarell:Bold:size=10}wlp3s0 down: $alignr${color2}${font Cantarell:Bold:size=10}${offset -10}${downspeed wlp3s0}
${color}${color1}${font Cantarell:Bold:size=10}${voffset 10}${offset 50}Used / Total${alignr}${offset -5}Used / Total
${color1}${voffset 2}RAM:${offset 20}${color2}$mem${color2}/${color2}$memmax${color1}${alignr}${offset -20}SWAP: ${offset 10}${color2}$swap${color2}/${color2}$swapmax
${color1}DISK:${offset 20}${color2}${fs_used /}${color2}/${color2}${fs_size /}${color1}${alignr}${offset -20}HOME:${offset 15}${color2}${fs_used /home}${color2}/${color2}${fs_size /home}
${image /home/walt/1a_accuweather_conkyweather_font/bbc.png -p 0,588}${color1}${font Cantarell:Bold:size=11} Headlines ${hr 2}
${color1}${font Cantarell:Bold:size=9}${voffset 10}${rss http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/world/rss.xml 2 item_titles 5}
${image /usr/share/icons/Peppermix-7/32x32/apps/calendar.png -p 0,716}${color1}${font Cantarell:Bold:size=11} Calendar ${hr 2}
${voffset -10}${color4}${font Cantarell:Bold:size=9}${execpi 300 gcalcli --conky agenda}
]];
I may eventually play with using some different colors (or a different background) so I can go back to having a transparent Conky, but this is what I have for now. Certainly not as fancy as some of the efforts I've seen here and on the old CrunchBang forums.
Offline
@VinDSL, perfect.
I love this clearly structured configuration files!
Thx, unklar !
I picked up that habit, because I don't like to write docs & mans.
Offline
That VinDSL conky was a dream for me once
Still alive and kickin' six years later.
Who would have thought ?!?!?
Offline