On Fri, Nov 18, 2011 at 10:09 AM, Evgeny Sokolov <[email protected]> wrote:
> Hello everyone!
>
> I'm totally frustrated with the way macos manages windows and I want awesome 
> back (I was enjoying it while being linux user). Is there any (even 
> theoretical) way to get awesome working on macos?

I'm glad this came up.   I have awesome configured under the
XQuartz.app.   I found that X server to be easier to work with for
remapping keys on my Lion macbook pro than the stock X11.app

   http://xquartz.macosforge.org/trac/wiki

Once Xquartz was installed, set the following prefences:

     CHECK option key sends alt instead of mode_switch
     UNCHECK enable key equivelants

I installed the following ports from macports

     port install awesome
     port install xmodmap
     port install xev
     port install rxvt-unicode

Then, I made the following configuration file changes to get it
configured with the X server.  B

   .xinitrc

      cd /Users/<username>
     xmodmap .Xmodmap
     exec /opt/local/bin/awesome

   .xmodmap

     remove mod1 = Alt_L
     add mod4 = Alt_L

Now, create an rc.lua file based on the stock version from macports,
and make a few changes to set the keys up

     mkdir -p ~/.config/awesome
     cp /opt/local/etc/xdg/awesome/rc.lua ~/.config/awesome

Making it more Mac-like

    Define the commandkey as a variable.  Also set urxvt-unicode as
the default terminal:

        commandkey = "mod2"
        terminal = "/opt/local/bin/urxvt"

    Command-W to close a window, like the default MacOS shortcut

        awful.key({ commandkey }, "w", function (c) c:kill() end)

Fixing the Tag navigation

    The Mod4 + N key combination doesn't actually send you to tag N
    using the default rc.lua.  You must add the following

        tagkeys = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }

    and then change

        "#" .. i,

    to
        tagkeys[i],

    In the section where the awful.keys() functions switch tags

There are still some quirks with this setup, but overall I find it
better than having to resize and place terminal windows by hand.

I can attach my entire rc.lua file if that helps someone.

Regards,
Kelsey

-- 
To unsubscribe, send mail to [email protected].

Reply via email to