Awesome

AwesomeWM: Alternative bindings setup

The default rc.lua from the Awesome window manager uses a lot of globalkeys = awful.util.table.join(...) code.

I disliked this because …

  • in Lua, the last field of a table cannot have a comma. So often when I moved an entry around, I ended up with a pointless syntax error because of a missing or trailing comma
  • adding elements by joining seems somewhat complex
  • adding logic, e.g. only adding a keybinding under specific circumstances is suddenly more difficult

So let’s change this …