Hello list, I recently switched to Awesome from XMonad and I wanted to share some parts of my config.
1) https://github.com/gvalkov/dotfiles-awesome/blob/master/ezconfig.lua This is a library modeled after XMonad's Util.EZConfig [1]. It lets you use emacs-style key bindings in Awesome. For example: globalkeys = ezconfig.keytable.join({ ['M-<Left>'] = awful.tag.viewprev, ['M-S-j'] = {awful.client.swap.byidx, 1}, ['M-C-k'] = {awful.screen.focus_relative, -1}, ['M-m'] = function () menus.main:show() end, }) clientbuttons = ezconfig.btntable.join({ ['1'] = function (c) client.focus = c; c:raise() end, ['M-1'] = awful.mouse.client.move, ['M-3'] = awful.mouse.client.resize }) This is all just shorthand for the regular a.u.table.join(awful.key({...}) syntax. 2) https://github.com/gvalkov/dotfiles-awesome/blob/master/sessionmenu.lua This is a general purpose session control menu with a few bells and whistles: 1) Timed actions (suspend after X seconds) 2) Wait for a process to finish before an action is taken 3) Select next boot option (uses grub2-restart) Screenshot: http://i.imgur.com/ss3HfMo.png Hope you find these useful. [1]: http://hackage.haskell.org/packages/archive/xmonad-contrib/0.8/doc/html/XMonad-Util-EZConfig.html -- To unsubscribe, send mail to [email protected].
