On Thu, Dec 23, 2010 at 03:46:39PM -0800, Nate Anderson wrote:
> Can anyone tell me how to set my theme background with awsetbg using a
> relative path?  The background is in the theme folder, so I would like
> to do something like:
> theme.wallpaper_cmd = { " awsetbg ./theme-background.png" }

In my theme.lua:
    pwd = awful.util.pread("echo $HOME"):gsub("\n", "")
    theme.wallpaper_cmd = { 'awsetbg -f ' .. pwd .. 
'/misc/images/wallpapers/wallpaper-sample.jpg' }

It's not 'elegant', but at least it works for me.

Cheers.

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

Reply via email to