You are currently browsing the tag archive for the 'awesome-git' 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
The config here now works with awesome3-rc4
Screenshot of my desktop using the config:
Awesome-rc is out, so have upgraded and fixed my config accordingly.
Whilst doing so, I needed a lua function to add all the elements of one table to another, similar to python’s list.extend() method. There isn’t one built into lua, so I rolled my own (with some help from #lua).
function joinTables(t1, t2) for k,v in ipairs(t2) do table.insert(t1, v) end return t1 end
et voilĂ
My most recent awesome config can be found, as ever, 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.
So I finally took the plunge and upgraded to awesome3. As is the tradition with awesome releases, the config-file syntax has changed. Awesome3 sees the introduction of a lua config file, which although unpopular with some, I see as being quite exciting – I can fiddle and tweak to my heart’s content.
Here are some of the things I have achieved thus far:
- Tags being coloured yellow on an ‘urgent’ hint being set – e.g. when I get a new IM
- A keybinding to jump between current and last visited tab
- Marking those tags with clients in bold
- Launchboxen
- The obligatory ArchLinux logo, which upon clicking brings up a menu to hibernate or shutdown
- Some magic
Code for the above is below. Read the rest of this entry »

