summaryrefslogtreecommitdiffstats
path: root/.config/awesome/rc.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/awesome/rc.lua')
-rw-r--r--.config/awesome/rc.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua
index a7cd86c..8b2fdc8 100644
--- a/.config/awesome/rc.lua
+++ b/.config/awesome/rc.lua
@@ -48,10 +48,11 @@ end
-- }}}
-- {{{ Variable definitions
-configpath="/home/"..os.getenv("USER").."/.config/awesome/"
+configdir="/home/"..os.getenv("USER").."/.config/awesome/"
+--configdir = gears.filesystem.get_configuration_dir() -- requires Awesome v4.1
-- Themes define colours, icons, font and wallpapers.
-beautiful.init(configpath .. "/theme.lua")
+beautiful.init(configdir .. "/theme.lua")
-- This is used later as the default terminal and editor to run.
terminal = "/usr/bin/urxvtcd"
@@ -363,7 +364,7 @@ quicklaunch_torbrowser:buttons(awful.util.table.join(
)
quicklaunch_chrome_gpm = wibox.widget.imagebox()
-quicklaunch_chrome_gpm:set_image("/home/jmccrohan/.config/awesome/icons/googleplaymusic.png")
+quicklaunch_chrome_gpm:set_image(configdir .. "/icons/googleplaymusic.png")
quicklaunch_chrome_gpm:buttons(awful.util.table.join(
awful.button({ }, 1, function() awful.spawn.with_shell("/usr/bin/google-chrome --app=https://play.google.com/music/listen") end)
)