diff --git a/config/keys.lua b/config/keys.lua index 7135a6f9..b0b6f84f 100644 --- a/config/keys.lua +++ b/config/keys.lua @@ -958,6 +958,14 @@ function keys.init(awesome_context) awful.tag.incmwfact(-0.05) elseif direction == "right" then awful.tag.incmwfact( 0.05) + elseif direction == "reset" then + local s = c.screen + local t = s.selected_tag + if t then + t.master_width_factor = 0.5 + t.windowfact = {} + awful.layout.arrange(s) + end end end end @@ -1069,6 +1077,10 @@ function keys.init(awesome_context) get_resize_function("up"), "column size+", LAYOUT_MANIPULATION ), + bind_key({ modkey, "Control" }, "End", + get_resize_function("reset"), + "reset layout", LAYOUT_MANIPULATION + ), -- Client resize (VIM style) bind_key({ modkey, "Control" }, "l",