diff --git a/.conkyrc b/conky.conf similarity index 91% rename from .conkyrc rename to conky.conf index 6a8aed4..4442305 100644 --- a/.conkyrc +++ b/conky.conf @@ -26,7 +26,7 @@ conky.config = { no_buffers = true, --Lua Load - lua_load = '/home/ndwar_9355/.local/share/conky/main.lua', + lua_load = '~/.local/share/conky/main.lua', lua_draw_hook_pre = 'main' } diff --git a/main.lua b/main.lua index 0f66cd5..d450e05 100644 --- a/main.lua +++ b/main.lua @@ -57,7 +57,6 @@ Var names: - CapCamalCase - var name is exactly the same as module name --]] - local UPDATE_FREQUENCY = 1 --Hz _G_INIT_DATA_ = { @@ -74,7 +73,8 @@ _G_INIT_DATA_ = { SIDE_HEIGHT = 1020, CENTER_HEIGHT = 220, - ABS_PATH = os.getenv('CONKY_LUA_HOME') + -- silly hack, the price of a litewait language + ABS_PATH = debug.getinfo(1).source:match("@?(.*/)") } _G_INIT_DATA_.CENTER_LEFT_X = _G_INIT_DATA_.LEFT_X + _G_INIT_DATA_.SECTION_WIDTH + _G_INIT_DATA_.PANEL_MARGIN_X * 2 + _G_INIT_DATA_.PANEL_HORZ_SPACING