summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Schodet2011-11-26 17:29:12 +0100
committerNicolas Schodet2011-11-26 17:29:12 +0100
commit99c544cb7635692de329deec126dc03d5f0584c5 (patch)
tree32fce563f80d38f967622e4abf27f9d64cc70066
parentcc362c6c4f9de80c153300547811fbf45db3ef4b (diff)
use getdir instead of getenv
-rw-r--r--ni/theme.lua3
-rw-r--r--rc.lua2
2 files changed, 2 insertions, 3 deletions
diff --git a/ni/theme.lua b/ni/theme.lua
index 06c73b0..c8dfc69 100644
--- a/ni/theme.lua
+++ b/ni/theme.lua
@@ -2,8 +2,7 @@
-- Default awesome theme --
---------------------------
-home_dir = os.getenv ("HOME")
-theme_dir = home_dir .. "/.config/awesome/ni"
+theme_dir = awful.util.getdir("config") .. "/ni"
theme = {}
diff --git a/rc.lua b/rc.lua
index 9c423fd..b1898b3 100644
--- a/rc.lua
+++ b/rc.lua
@@ -15,7 +15,7 @@ require("widgets.volume")
-- {{{ Variable definitions
-- Themes define colours, icons, and wallpapers
-beautiful.init(os.getenv ("HOME") .. "/.config/awesome/ni/theme.lua")
+beautiful.init(awful.util.getdir("config") .. "/ni/theme.lua")
-- This is used later as the default terminal and editor to run.
terminal = "x-terminal-emulator"