lua: export AWESOME_RELEASE
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
85c85976c0
commit
c9b6fe9604
|
@ -116,7 +116,7 @@ mytasklist.label = awful.widget.tasklist.label.currenttags
|
||||||
-- Create a textbox widget
|
-- Create a textbox widget
|
||||||
mytextbox = widget({ type = "textbox", name = "mytextbox", align = "right" })
|
mytextbox = widget({ type = "textbox", name = "mytextbox", align = "right" })
|
||||||
-- Set the default text in textbox
|
-- Set the default text in textbox
|
||||||
mytextbox.text = "<b><small> awesome " .. AWESOME_VERSION .. " </small></b>"
|
mytextbox.text = "<b><small> " .. AWESOME_RELEASE .. " </small></b>"
|
||||||
mypromptbox = widget({ type = "textbox", name = "mypromptbox", align = "left" })
|
mypromptbox = widget({ type = "textbox", name = "mypromptbox", align = "left" })
|
||||||
|
|
||||||
-- Create a laucher widget
|
-- Create a laucher widget
|
||||||
|
|
4
lua.c
4
lua.c
|
@ -616,6 +616,10 @@ luaA_init(void)
|
||||||
lua_pushstring(L, AWESOME_VERSION);
|
lua_pushstring(L, AWESOME_VERSION);
|
||||||
lua_settable(L, LUA_GLOBALSINDEX);
|
lua_settable(L, LUA_GLOBALSINDEX);
|
||||||
|
|
||||||
|
lua_pushliteral(L, "AWESOME_RELEASE");
|
||||||
|
lua_pushstring(L, AWESOME_RELEASE);
|
||||||
|
lua_settable(L, LUA_GLOBALSINDEX);
|
||||||
|
|
||||||
luaA_dostring(L, "package.path = package.path .. \";" AWESOME_LUA_LIB_PATH "/?.lua\"");
|
luaA_dostring(L, "package.path = package.path .. \";" AWESOME_LUA_LIB_PATH "/?.lua\"");
|
||||||
luaA_dostring(L, "package.path = package.path .. \";" AWESOME_LUA_LIB_PATH "/?/init.lua\"");
|
luaA_dostring(L, "package.path = package.path .. \";" AWESOME_LUA_LIB_PATH "/?/init.lua\"");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue