You are currently browsing the tag archive for the 'awesome' tag.

I can move to an empty tag, launch openoffice, go back to browser while it’s loading, and it’ll load on the tab I launched it on. Magic!

Add the following somewhere (pretty much anywhere, but after the inclusion of awful, and before the hook_manage function)

spawn = awful.util.spawn
move_to = {}
awful.util.spawn = function (spawnwhat, screen)
    screen = screen or mouse.screen
    local current_tag = awful.tag.selected(screen)
    move_to[#move_to+1] = {tag=current_tag, screen=screen}
    spawn(spawnwhat, screen)
end

Now add to hook_manage

if #move_to then
   c.screen = move_to[#move_to].screen
   awful.client.movetotag(move_to[#move_to].tag, c)
   move_to.remove()
end

Quite a change colour-wise, little change function wise (only a bit to randomly change active tag colour).
Obligatory screenshot:

Screenshot of awesome

Screenshot of awesome

This is what I added:
Added focus_choices to the bg table

 bg = {normal = "#e7e7e7", focus = "#d97600", focus_choices = {"#669bcb", "#d97600", "#6eb22c"}, urgent = "#ffaa88"}

Changed taglist.label

 function taglist.label(t)
                local bg_color
                local fg_color
                local background = ''
                if t.selected then
                        local choice = math.random(1,3)
                        bg_color = bg['focus_choices'][choice]
                        fg_color = fg['focus']
                end
...function continues

As always, the latest version of my config can be found here.

As my config file was a mess, I decided to rewrite from scratch, using the other one as a reference. It’s now much tidier.
As it’s likely to change frequently, I will create a ‘page’ for it. From now, my rc.lua will be found here.