You are not logged in.

#1 2011-09-19 04:32:22

mtrokic
Member
From: Montreal
Registered: 2009-10-24
Posts: 56
Website

Awesome WM and Tag-Specific Wallpaper

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

#2 2011-09-19 21:41:55

Stebalien
Member
Registered: 2010-04-27
Posts: 1,238
Website

Re: Awesome WM and Tag-Specific Wallpaper

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.


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C

Offline

#3 2011-09-20 22:07:27

mtrokic
Member
From: Montreal
Registered: 2009-10-24
Posts: 56
Website

Re: Awesome WM and Tag-Specific Wallpaper

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

Board footer

Powered by FluxBB