summaryrefslogtreecommitdiffstats
path: root/.config/awesome/rc.lua
diff options
context:
space:
mode:
authorJonathan McCrohan <jmccrohan@gmail.com>2017-07-12 23:36:38 +0100
committerJonathan McCrohan <jmccrohan@gmail.com>2017-07-12 23:36:38 +0100
commit020a6ec167dab9641ecebcf79af104cb06b13a0d (patch)
tree4985ef22032237d88cbeff985649e66983508920 /.config/awesome/rc.lua
parentbe3296d9bde06b9abe89b5f4685e94ded324834f (diff)
downloadawesome-020a6ec167dab9641ecebcf79af104cb06b13a0d.tar.gz
s/configpath/configdir/
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)
)