From b4899653c269a156a01c17c2acc03119b0aa4e4b Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Wed, 22 Oct 2008 17:57:03 +0200 Subject: [PATCH] awesomerc: use awful.util.getdir rather than env Signed-off-by: Julien Danjou --- awesomerc.lua.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/awesomerc.lua.in b/awesomerc.lua.in index 4a94e6cc..fafa6219 100644 --- a/awesomerc.lua.in +++ b/awesomerc.lua.in @@ -101,7 +101,7 @@ mytextbox.text = " " .. AWESOME_RELEASE .. " " -- Create a laucher widget and a main menu myawesomemenu = { {"manual", terminal .. " -e man awesome" }, - {"edit config", terminal .. " -e " .. os.getenv("EDITOR") .. " ~/.config/awesome/rc.lua" }, + {"edit config", terminal .. " -e " .. os.getenv("EDITOR") .. " " .. awful.util.getdir("config") .. "/rc.lua" }, {"restart", awesome.restart }, {"quit", awesome.quit } } @@ -261,10 +261,10 @@ keybinding({ modkey, "Shift" }, "space", function () awful.layout.inc(layouts, - -- Prompt keybinding({ modkey }, "F1", function () awful.prompt.run({ prompt = "Run: " }, mypromptbox[mouse.screen], awful.util.spawn, awful.completion.bash, -os.getenv("HOME") .. "/.cache/awesome/history") end):add() +awful.util.getdir("cache") .. "/history") end):add() keybinding({ modkey }, "F4", function () awful.prompt.run({ prompt = "Run Lua code: " }, mypromptbox[mouse.screen], awful.util.eval, awful.prompt.bash, -os.getenv("HOME") .. "/.cache/awesome/history_eval") end):add() +awful.util.getdir("cache") .. "/history_eval") end):add() keybinding({ modkey, "Ctrl" }, "i", function () local s = mouse.screen if mypromptbox[s].text then