On Fri, 03 Jun 2011 16:37:11 +0200, Nicolas Berthier <[email protected]> 
wrote:
> You wrote:
> 
> > On Fri, 03 Jun 2011 10:44:49 +0100, William Shackleton 
> > <[email protected]> wrote:
> > Non-text part: multipart/alternative
> >> Have you changed the theme location in your awesome config (rc.lua)?
> >> 
> >> There is a line in rc.lua which sets the theme location:
> >> 
> >> beautiful.init("/usr/share/awesome/themes/default/theme.lua")
> >> 
> >> change it to the location of your theme:
> >> 
> >> beautiful.init("/home/username/.config/awesome/mytheme/theme.lua")
> >
> > Also, for portability's sake, it's advisable to use relative paths.
> >
> > My rc.lua contains something like this:
> >   local xdg_config_home = os.getenv("XDG_CONFIG_HOME") or os.getenv("HOME") 
> > .. "/.config"
> >   beautiful.init(xdg_config_home .. "/awesome" .. "/theme.lua")
> 
> Hi,
> 
> I'd recommend using the `awful.util.getdir' function for that purpose,
> as follows:
> 
> local configdir = awful.util.getdir ("config")
> beautiful.init (configdir .. "/theme.lua")
> 
> This function is documented here:
> 
> - http://awesome.naquadah.org/doc/api/modules/awful.util.html#getdir

Very nice, greatly appreciated Nicolas!

Deduplication FTW !

> >
> > ... SNIP...
> >
> 
> Cheers
> 
> -- 
> Nicolas BERTHIER

Peace

-- 
Pieter

-- 
To unsubscribe, send mail to [email protected].

Reply via email to