You are not logged in.
Hello everyone. I've be a long-time fan of Awesome WM. It's running on my desktop as well as on my netbook, and it's well... Awesome! However, I was doing some snooping on the net for how to have a tag-specific wallpaper and unfortunately I've come up short.
Does anyone know how this may be done?
Thanks in advance!
Offline
As Awesome WM has tags, not workspaces, you can view multiple tags at the same time. If you want the last selected tag to determine the wallpaper, you can add something like this to your rc.lua.
wallpapers = {
["my_first_tag_name"] = "/path/to/first-wallpaper.png",
["my_second_tag_name"] = "/path/to/second-wallpaper.png",
}
setmetatable(wallpapers, {__index = function() return "/path/to/default-wallpaper.png" end})
tag.add_signal("property::selected", function(t)
if t.selected then
awful.util.spawn(SET_WALLPAPER_CMD .. " " .. wallpapers[t.name]
end
end)
This code is just to get you started. I haven't actually tested it so I would be shocked if it worked without any changes.
Offline
Thanks for your suggestion. I will try and implement this very soon and I will let you know if it works out. I'm not a lua expert by any means but it seems like this is a good a time as any to delve into something more than just a basic awesome config file.
Last edited by mtrokic (2011-09-20 22:07:39)
Offline