Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 1.46 KB

README.org

File metadata and controls

42 lines (29 loc) · 1.46 KB

Awesome WM manual tiling

Awesome WM manual tiling extension. It’s simular to Aero Snap in windows and Grid plugin in Compiz. Works only when “float” layout is active.

Install

Download module to awesome wm configuration directory:

cd ~/.config/awesome/
git clone [email protected]:zarkone/hand-tiler.git
$EDITOR rc.lua

Edit rc.lua as follows:

-- Load module 
handTiler = require("hand-tiler")

-- Add key definitions in client keys array
clientkeys = awful.util.table.join(

    -- ...
    awful.key({ modkey,           },  "[",     function (c) handTiler.tileTo(c, 'left')         end),
    awful.key({ modkey,           },  "]",     function (c) handTiler.tileTo(c, 'right')        end),
    awful.key({ modkey, "Control" },  "[",     function (c) handTiler.tileTo(c, 'left-top')     end),
    awful.key({ modkey, "Shift"   },  "[",     function (c) handTiler.tileTo(c, 'left-bottom')  end),
    awful.key({ modkey, "Control" },  "]",     function (c) handTiler.tileTo(c, 'right-top')    end),
    awful.key({ modkey,  "Shift"  },  "]",     function (c) handTiler.tileTo(c, 'right-bottom') end),
    
    awful.key({ modkey, "Control", "Shift" },   "[",     function (c) handTiler.tileTo(c, 'top')    end),
    awful.key({ modkey, "Control", "Shift"  },  "]",     function (c) handTiler.tileTo(c, 'bottom') end),

    awful.key({ modkey,           },  "'",     function (c) handTiler.tileTo(c, 'full')         end),
    -- ...

)