awesome wm - Resizing Window Vertically -
i'm trying map awesome wm shortcuts similar tmux. tmux's alt+arrow combination resize pane in either dimension. i'm aware awesome's awful.tag.incmwfact()
function work vertically or horizontally depending on layout. however, i'd function resizes in other dimension under same layout well. useful maximizing 1 of smaller windows vertically without invading space of largest window on other half of screen:
+----------+----------+ | | | | | ^ | | +-----|----+ | | v | | | | +----------+----------+
i found awful.client.moveresize()
function well, seems work in floating layout. know doable since can resize windows mouse, in tiling layouts. don't know function mouse hooks into.
figured out, posting answer others need functionality well:
awful.key({ modkey, "mod1" }, "right", function () awful.tag.incmwfact( 0.01) end), awful.key({ modkey, "mod1" }, "left", function () awful.tag.incmwfact(-0.01) end), awful.key({ modkey, "mod1" }, "down", function () awful.client.incwfact( 0.01) end), awful.key({ modkey, "mod1" }, "up", function () awful.client.incwfact(-0.01) end),
basically, instead of tag's incmwfact
, use client's own incwfact
function. also, work in tiling layouts, in floating cause error bubble.
Comments
Post a Comment