You are currently browsing the tag archive for the 'awesome3' tag.
Quite a change colour-wise, little change function wise (only a bit to randomly change active tag colour).
Obligatory screenshot:
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.
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 »

