Originally Posted by
AndyOpie150
arclance: Is there a way to just have the weather radar, apart from the rest of of your conkyWeather. Same size as in your conkyWeather?
Yes it can be moved fairly easily by editing some lines in the function that draws them.
Code:
function drawRad_Sat_Small(cr, blx, bly, localx, localy)
local button_name = "small_Close/Wide"
if (localx >= buttons[button_name]["bl_x"]) and (localx <= (buttons[button_name]["bl_x"] + buttons[button_name]["width"])) and (localy <= buttons[button_name]["bl_y"]) and (localy >= (buttons[button_name]["bl_y"] - buttons[button_name]["height"])) then
if buttons[button_name]["state"] == 0 then
buttons[button_name]["state"] = 1
elseif buttons[button_name]["state"] == 1 then
buttons[button_name]["state"] = 0
end --# if buttons[button_name]["state"] == 0 then
elseif buttons[button_name]["state"] == nil then
buttons[button_name]["state"] = 0
end --# if (localx >= buttons[button_name]["bl_x"]) and (localx <= (buttons[button_name]["bl_x"] + buttons[button_name]["width"])) and (localy <= buttons[button_name]["bl_y"]) and (localy >= (buttons[button_name]["bl_y"] - buttons[button_name]["height"])) then
--####
local radarImage_Path = nil
local satteliteImage_Path = nil
if buttons[button_name]["state"] == 0 then
radarImage_Path = logDirectory.."/Images/radarImage_temp.gif."..string.format("%03i",updateCheck)
satteliteImage_Path = logDirectory.."/Images/satelliteImage_temp.gif."..string.format("%03i",updateCheck)
else
radarImage_Path = logDirectory.."/Images/radarImage_Wide_temp.gif."..string.format("%03i",updateCheck)
satteliteImage_Path = logDirectory.."/Images/satelliteImage_Wide_temp.gif."..string.format("%03i",updateCheck)
end --# if buttons[button_name]["state"] == 0 then
image({x=(923),y=(1),w=136,h=136,file=radarImage_Path})
image({x=(923),y=(137),w=136,h=136,file=satteliteImage_Path})
--cairo_select_font_face (cr, font, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL)
--cairo_set_font_size (cr, fSize)
cr = draw_shaded_text(cr, (updateCheck + 1), 925, 12, {color1_R,color1_G,color1_B,color1_A}, {color3_R,color3_G,color3_B,color3_A})
cr = draw_shaded_text(cr, (updateCheck + 1), 925, 149, {color1_R,color1_G,color1_B,color1_A}, {color3_R,color3_G,color3_B,color3_A})
return cr,blx,bly
end --# function drawRad_Sat_Small(cr, blx, bly)
This is one of the functions that I need to unhardcode before I can make the script resizable.
These lines control the position of the images.
Code:
image({x=(923),y=(1),w=136,h=136,file=radarImage_Path})
image({x=(923),y=(137),w=136,h=136,file=satteliteImage_Path})
Change the x=() and y=() values to change their positions.
You can change the position of the index numbers by changing these lines.
Code:
cr = draw_shaded_text(cr, (updateCheck + 1), 925, 12, {color1_R,color1_G,color1_B,color1_A}, {color3_R,color3_G,color3_B,color3_A})
cr = draw_shaded_text(cr, (updateCheck + 1), 925, 149, {color1_R,color1_G,color1_B,color1_A}, {color3_R,color3_G,color3_B,color3_A})
The two settings after (updateCheck + 1) control their position.
You will probably need to change the size of the conky window in the .conkyrc when you do this.
When you do that you will need to change how far from the top of the conky window the script starts.
You can do that by editing the "local bly = 24" value in this section of the script.
Code:
--######### Line 1 (Scrolling Alert) ##############################
local blx = 0
local bly = 24
Bookmarks